/* ==========================================================================
   Ocelot Fidelis v2 — Custom Styles for Native Gutenberg Blocks
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* ---------- Page module spacing (Gutenberg gap reset override) ---------- */
.entry-content.wp-block-post-content > * + * {
    margin-top: clamp(48px, 6vw, 84px);
}

/* Block themes often omit .entry-content on .wp-block-post-content — single posts were full-bleed */
body.single-post .wp-block-post-content > * + *,
body.page .wp-block-post-content > * + * {
    margin-top: clamp(24px, 4vw, 48px);
}

/* Single post / blog index: readable column (matches .of-container gutters) */
.of-single-wrap,
.of-blog-wrap {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* Fallback: if WP is using a customized Single template without .of-single-wrap,
   still constrain and style the post like the homepage. */
body.single-post .wp-block-post-title,
body.single-post h1.wp-block-post-title,
body.single-post .wp-block-post-content,
body.single-post .wp-block-post-content > *,
body.single-post .wp-site-blocks .wp-block-post-content {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    box-sizing: border-box;
}

/* Readable measure for actual prose */
body.single-post .wp-block-post-content {
    max-width: 72ch;
    /* Space above content so it never feels glued to the title/header */
    padding-top: clamp(0.75rem, 2vw, 1.25rem);
    /* Space below content so the last paragraph doesn't run into footer */
    padding-bottom: clamp(2.25rem, 6vw, 4rem);
}

body.single-post .wp-block-post-title,
body.single-post h1.wp-block-post-title {
    max-width: 1320px;
    /* Compensate for sticky header + give title breathing room */
    margin-top: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
}

body.single-post .wp-block-post-content p,
body.single-post .wp-block-post-content li {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--wp--preset--color--body-text, #374151);
}

body.single-post .wp-block-post-content h2,
body.single-post .wp-block-post-content h3 {
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.single-post .wp-block-post-content h2 {
    margin-top: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

body.single-post .wp-block-post-content h3 {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
}

/* Standard pages should read like single blog posts,
   but do NOT touch homepage or Woo pages. */
body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-title,
body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) h1.wp-block-post-title,
body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-content,
body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-content > *,
body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-site-blocks .wp-block-post-content {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    box-sizing: border-box;
}

body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-content {
    max-width: 72ch;
    padding-top: clamp(0.75rem, 2vw, 1.25rem);
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-title,
body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) h1.wp-block-post-title {
    max-width: 1320px;
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
}

body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-content p,
body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-content li {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--wp--preset--color--body-text, #374151);
}

body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-content h2,
body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-content h3 {
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-content h2 {
    margin-top: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

body.page:not(.home):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-block-post-content h3 {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
}

body.single-post .of-single-wrap .wp-block-post-content,
body.single-post .of-single-wrap .entry-content {
    max-width: 72ch;
}

body.single-post .of-single-wrap .wp-block-post-title,
body.single-post .of-single-wrap h1.wp-block-post-title {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

body.single-post .of-single-wrap .wp-block-post-content p,
body.single-post .of-single-wrap .wp-block-post-content li {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--wp--preset--color--body-text, #374151);
}

body.single-post .of-single-wrap .wp-block-post-content h2 {
    margin-top: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
}

.of-blog-wrap .of-blog-entry {
    border-bottom: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
}

.of-blog-wrap .of-blog-entry:last-of-type {
    border-bottom: 0;
}

/* Category / archive: post cards grid */
.of-archive-wrap {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    /* Space above footer so cards are not flush to the dark footer */
    padding-bottom: clamp(3.5rem, 9vw, 6rem) !important;
}

/* Category/blog archive spacing + sticky footer behavior */
body.category .of-archive-wrap {
    /* Compensate for sticky header so title is not tight to nav */
    padding-top: clamp(3rem, 7vw, 5rem) !important;
}

body.category .wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.category .wp-site-blocks > main,
body.category .wp-site-blocks > .wp-block-group.of-archive-wrap,
body.category .wp-site-blocks > .of-archive-wrap {
    flex: 1 0 auto;
}

body.category .wp-site-blocks > footer.wp-block-template-part {
    margin-top: auto;
}

/* WooCommerce cart: keep footer pinned to viewport bottom on short content */
body.woocommerce-cart .wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.woocommerce-cart .wp-site-blocks > main,
body.woocommerce-cart .wp-site-blocks > .wp-block-woocommerce-cart,
body.woocommerce-cart .wp-site-blocks > .wc-block-cart {
    flex: 1 0 auto;
}

body.woocommerce-cart .wp-site-blocks > footer.wp-block-template-part {
    margin-top: auto;
}

/* WooCommerce single product (BBCInspire-like structure) */
body.single-product .wp-site-blocks {
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

body.single-product .woocommerce-breadcrumb {
    max-width: 1320px;
    margin: clamp(1.25rem, 3vw, 2rem) auto clamp(1rem, 2.5vw, 1.5rem);
    padding: 0 clamp(20px, 4vw, 40px);
    color: var(--wp--preset--color--muted-text, #6B7280);
    font-size: 0.8125rem;
}

body.single-product .woocommerce div.product {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: start;
}

body.single-product .woocommerce div.product div.images {
    width: 100%;
    float: none;
    margin: 0;
    background: #fff;
    border: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
    padding: 0.75rem;
}

body.single-product .woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    border-radius: 10px;
    overflow: hidden;
}

body.single-product .woocommerce div.product div.images img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

body.single-product .woocommerce div.product div.summary {
    width: 100%;
    float: none;
    margin: 0;
    background: #fff;
    border: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
    padding: clamp(1rem, 3vw, 1.5rem);
}

body.single-product .woocommerce div.product .product_title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.8rem, 3.1vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
}

body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product span.price {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
}

body.single-product .woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--wp--preset--color--body-text, #374151);
    line-height: 1.6;
    margin-bottom: 1rem;
}

body.single-product .woocommerce div.product form.cart {
    margin: 0.25rem 0 1rem;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
    background: var(--wp--preset--color--brand-blue, #0B5FA5);
    color: #fff;
    border-radius: 10px;
    padding: 0.78rem 1.25rem;
    font-weight: 700;
}

body.single-product .woocommerce div.product .product_meta {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    color: var(--wp--preset--color--muted-text, #6B7280);
    font-size: 0.8125rem;
    line-height: 1.7;
}

body.single-product .woocommerce div.product .product_meta a {
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
}

body.single-product .woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    margin: 0 0 1rem;
    padding: 0 0 0.5rem;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: 0;
    border-radius: 8px;
    margin: 0;
    background: #EEF4F9;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
    font-weight: 700;
    padding: 0.5rem 0.85rem;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--wp--preset--color--brand-blue, #0B5FA5);
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #fff;
}

body.single-product .woocommerce div.product .woocommerce-Tabs-panel {
    max-width: 92ch;
    color: var(--wp--preset--color--body-text, #374151);
    line-height: 1.7;
}

body.single-product .woocommerce div.product .woocommerce-Tabs-panel h2 {
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
    font-weight: 800;
}

@media (max-width: 920px) {
    body.single-product .woocommerce div.product {
        grid-template-columns: 1fr;
    }

    body.single-product .woocommerce div.product .woocommerce-tabs {
        margin-top: 1.25rem;
    }

    body.single-product .woocommerce div.product .woocommerce-Tabs-panel {
        max-width: 100%;
    }
}

/* WooCommerce Blocks single-product template (actual live markup) */
body.single-product .wp-block-group.woocommerce.product > main.wp-block-group {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    box-sizing: border-box;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-columns.alignwide {
    gap: clamp(22px, 4vw, 42px);
    align-items: start;
}

/* Recast the first product row as a hero band */
body.single-product .wp-block-group.woocommerce.product .wp-block-columns.alignwide {
    background: linear-gradient(180deg, #EAF2F8 0%, #EAF2F8 78%, #FFFFFF 78%);
    border-radius: 18px;
    padding: clamp(18px, 3.2vw, 30px);
    margin-top: 0.5rem;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
    opacity: 1 !important;
    background: #fff;
    border: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
    padding: 0.75rem;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__wrapper,
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image a,
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image img {
    border-radius: 10px;
}

/* Thumbnail rail overlapping main image corner */
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs {
    position: relative;
    margin-top: -34px !important;
    margin-left: 14px !important;
    z-index: 5;
    display: inline-flex;
    gap: 6px;
    background: rgba(255,255,255,0.9);
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
    width: auto;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs li {
    width: 54px !important;
    margin: 0 !important;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs img {
    border-radius: 6px;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-columns.alignwide > .wp-block-column:last-child {
    background: #fff;
    border: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
    padding: clamp(1rem, 3vw, 1.5rem);
}

body.single-product .wp-block-group.woocommerce.product h1.wp-block-post-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.8rem, 3.1vw, 2.8rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-price .wc-block-components-product-price {
    margin-bottom: 0.75rem;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-price .woocommerce-Price-amount {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
}

body.single-product .wp-block-group.woocommerce.product .wp-block-post-excerpt__excerpt {
    color: var(--wp--preset--color--body-text, #374151);
    line-height: 1.6;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-add-to-cart-form form.cart {
    margin: 0.25rem 0 1rem;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-add-to-cart-form .single_add_to_cart_button {
    background: var(--wp--preset--color--brand-blue, #0B5FA5);
    color: #fff;
    border-radius: 10px;
    padding: 0.78rem 1.25rem;
    font-weight: 700;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-add-to-cart-form .qty {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    min-height: 42px;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-meta {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    font-size: 0.8125rem;
    color: var(--wp--preset--color--muted-text, #6B7280);
}

/* Prevent SKU/Category/Tags labels from crushing to tiny wrapped columns */
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-meta .wp-block-group.is-layout-flex {
    display: flex;
    flex-wrap: wrap !important;
    align-items: flex-start;
    gap: 0.45rem 1rem;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-meta .wp-block-post-terms {
    min-width: 0;
    flex: 1 1 100%;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-meta .wp-block-post-terms__prefix {
    display: inline-block;
    min-width: 10ch;
    font-weight: 700;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
    white-space: nowrap;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-meta .wp-block-post-terms a,
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-meta .sku {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-meta a {
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details {
    /* Pull tabs up so they straddle hero bottom + white content */
    margin-top: clamp(-0.9rem, -1.6vw, -0.5rem);
    position: relative;
    z-index: 8;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li {
    border: 0;
    border-radius: 8px;
    background: #EEF4F9;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs {
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    padding: 0.4rem;
}

/* Hide reviews tab/panel for cleaner product detail UX */
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li.reviews_tab,
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details #tab-reviews {
    display: none !important;
}

/* Card format for description + additional information panels */
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details #tab-description,
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details #tab-additional_information {
    background: #fff;
    border: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
    padding: clamp(1rem, 3vw, 1.5rem);
    max-width: 92ch;
    margin-left: auto;
    margin-right: auto;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details #tab-description h2,
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details #tab-additional_information h2 {
    margin-top: 0;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details #tab-additional_information table.shop_attributes {
    margin: 0;
    border: 0;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details #tab-additional_information table.shop_attributes th,
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details #tab-additional_information table.shop_attributes td {
    border-color: #E5E7EB;
    padding: 0.55rem 0.7rem;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li.active {
    background: var(--wp--preset--color--brand-blue, #0B5FA5);
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li.active a {
    color: #fff;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details .woocommerce-tabs .woocommerce-Tabs-panel {
    max-width: 92ch;
    color: var(--wp--preset--color--body-text, #374151);
    line-height: 1.7;
    margin-top: 1rem;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details .woocommerce-Tabs-panel h2 {
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
    font-weight: 800;
}

@media (max-width: 920px) {
    body.single-product .wp-block-group.woocommerce.product .wp-block-columns.alignwide {
        background: #EAF2F8;
        border-radius: 14px;
        padding: 14px;
    }

    body.single-product .wp-block-group.woocommerce.product .wp-block-columns.alignwide > .wp-block-column:last-child {
        margin-top: 1rem;
    }

    body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs {
        margin-top: 0 !important;
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
        box-shadow: none;
        background: transparent;
        padding: 0.45rem 0 0;
    }

    body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details .woocommerce-tabs .woocommerce-Tabs-panel {
        max-width: 100%;
    }

    body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details {
        margin-top: 0.75rem;
    }
}

.of-archive-wrap .wp-block-query-title {
    font-weight: 800;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
}

.of-blog-card {
    background: #fff;
    border: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
    overflow: hidden;
    height: 100%;
    padding: 1rem 1rem 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.of-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.of-blog-card .wp-block-post-featured-image img {
    border-radius: 10px;
    width: 100%;
    object-fit: cover;
}

.of-blog-card .wp-block-post-title a {
    text-decoration: none;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
}

.of-blog-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
}

.of-archive-wrap ul.wp-block-post-template,
.of-archive-wrap .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 900px) {
    .of-archive-wrap ul.wp-block-post-template,
    .of-archive-wrap .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .of-archive-wrap ul.wp-block-post-template,
    .of-archive-wrap .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Full-bleed sections should touch without white gaps */
#about {
    margin-top: 0 !important;
}

#testimonials {
    margin-top: 0 !important;
}

.of-section {
    padding: clamp(56px, 7vw, 96px) 0;
}

.of-container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
}

.of-section-head {
    text-align: center;
    margin-bottom: clamp(18px, 3vw, 28px);
}

.of-section-head h2 {
    margin: 0 0 10px;
    font-weight: 800;
}

.of-section-head p {
    margin: 0 auto;
    max-width: 78ch;
    color: var(--wp--preset--color--muted-text, #6B7280);
}

/* ---------- About (above contact) ---------- */
.of-about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(24px, 5vw, 56px);
    align-items: start;
}

.of-about-copy h2 {
    margin: 0 0 10px;
    font-weight: 800;
}

.of-about-copy p {
    margin: 0 0 14px;
    color: var(--wp--preset--color--muted-text, #6B7280);
}

.of-about-copy p:last-of-type {
    margin-bottom: 18px;
}

.of-about-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin-top: 18px;
}

.of-about-feature {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.of-about-feature-title {
    font-weight: 800;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
    font-size: 0.95rem;
}

.of-about-feature-text {
    color: var(--wp--preset--color--muted-text, #6B7280);
    font-size: 0.85rem;
}

.of-about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
    display: block;
}

@media (max-width: 920px) {
    .of-about-grid {
        grid-template-columns: 1fr;
    }

    .of-about-features {
        grid-template-columns: 1fr;
    }
}

/* ---------- Contact section ---------- */
.of-contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(24px, 5vw, 56px);
    align-items: start;
    margin-top: clamp(28px, 4vw, 44px);
}

.of-contact-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.of-contact-card h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 800;
}

.of-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.of-contact-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
}

.of-contact-item .of-contact-icon {
    background: var(--wp--preset--color--icon-bg, #EBF5FF);
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
}

.of-contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
    margin-bottom: 2px;
}

.of-contact-item span,
.of-contact-item a {
    font-size: 0.875rem;
    color: var(--wp--preset--color--muted-text, #6B7280);
    text-decoration: none;
}

.of-contact-item a:hover {
    text-decoration: underline;
}

.of-follow {
    margin-top: 18px;
}

.of-follow .of-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--wp--preset--color--icon-bg, #EBF5FF);
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
    text-decoration: none;
    font-weight: 800;
}

/* CF7 form styling to match design */
.of-contact-card .wpcf7 form,
.of-contact-card .wpcf7-form {
    margin: 0;
}

.of-contact-card label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
    margin: 0 0 6px;
}

.of-contact-card input[type="text"],
.of-contact-card input[type="email"],
.of-contact-card input[type="tel"],
.of-contact-card select,
.of-contact-card textarea {
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    background: #fff;
    outline: none;
}

.of-contact-card textarea {
    min-height: 120px;
    resize: vertical;
}

.of-contact-card input:focus,
.of-contact-card select:focus,
.of-contact-card textarea:focus {
    border-color: rgba(11,95,165,.55);
    box-shadow: 0 0 0 4px rgba(11,95,165,.12);
}

/* First/Last name on one row */
.of-cf7-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.of-contact-card .wpcf7-list-item {
    margin: 0;
}

.of-contact-card .wpcf7-acceptance label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--muted-text, #6B7280);
}

.of-contact-card input[type="submit"] {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    background: #0B5FA5;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.of-contact-card input[type="submit"]:hover {
    background: #094A82;
}

.of-contact-card .wpcf7-not-valid-tip,
.of-contact-card .wpcf7-response-output {
    font-size: 0.8125rem;
}

@media (max-width: 960px) {
    .of-contact-grid { grid-template-columns: 1fr; }
    .of-cf7-two-col { grid-template-columns: 1fr; }
}

.entry-content.wp-block-post-content .wp-block-heading {
    margin-bottom: 0.75rem;
}

.entry-content.wp-block-post-content p {
    margin: 0.75rem 0;
}

/* ---------- Sticky Header ---------- */
.of-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    /* Keep header content aligned with site gutters (same as hero/container) */
    padding-left: clamp(20px, 4vw, 40px) !important;
    padding-right: clamp(20px, 4vw, 40px) !important;
}

.of-nav-toggle{
    display: none;
    border: 1px solid rgba(27,42,74,0.15);
    background: #fff;
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    font-weight: 800;
    font-size: 0.875rem;
    line-height: 1;
}

.of-nav-toggle:focus{
    outline: none;
    box-shadow: 0 0 0 4px rgba(11,95,165,.15);
    border-color: rgba(11,95,165,.5);
}

@media (max-width: 860px) {
    .of-nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }

    /* Hide menu row by default on mobile */
    .of-header #of-nav-menu.of-nav,
    .of-header #of-nav-menu.of-nav-menu{
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        margin: 0;
        padding: 14px;
        gap: 10px !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
        z-index: 100000;
    }

    .of-header{
        position: sticky !important;
    }

    .of-header{
        position: sticky !important;
    }

    .of-header.has-background{
        position: sticky !important;
    }

    .of-header{
        position: sticky !important;
    }

    .of-header{
        position: sticky !important;
    }

    /* When open */
    .of-nav-open .of-header #of-nav-menu.of-nav,
    .of-nav-open .of-header #of-nav-menu.of-nav-menu{ display: flex; }

    /* Make links tappable */
    .of-header #of-nav-menu p{ margin: 0; }
    .of-header #of-nav-menu a{
        display: inline-flex;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(11,95,165,0.06);
        text-decoration: none !important;
    }

    .of-header #of-nav-menu .wp-block-buttons{
        width: 100%;
        margin-top: 4px;
    }
    .of-header #of-nav-menu .wp-block-button__link{
        width: 100%;
        text-align: center;
    }
}

/* Nav links styling */
.of-header a:not(.wp-block-button__link) {
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s;
}

.of-header a:not(.wp-block-button__link):hover {
    color: var(--wp--preset--color--brand-blue) !important;
}

/* ---------- Hero Carousel ---------- */
.of-hero {
    background: #AFC4D3;
    padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 40px);
}

.of-hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
    /* Prevent grid children from overflowing and getting "cut" */
    min-width: 0;
}

.of-hero-left,
.of-hero-right {
    min-width: 0;
}

.of-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #EAF1F7;
}

.of-hero h1 .of-hero-line { display: block; }
.of-hero h1 .of-hero-accent { color: rgba(234, 241, 247, 0.78); }

.of-hero p {
    margin: 0 0 1.75rem;
    max-width: 46ch;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(234, 241, 247, 0.85);
}

.of-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.of-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.of-hero-actions .of-hero-primary {
    background: #fff;
    color: #1B2A4A;
    border: 1px solid rgba(255,255,255,0.65);
}

.of-hero-actions .of-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.65);
}

.of-hero-carousel-wrap {
    max-width: 620px;
}

@media (max-width: 920px) {
    /* Sticky header overlaps first section on small screens */
    .of-hero{
        padding-top: calc(clamp(56px, 7vw, 96px) + 72px);
    }

    .of-hero-inner {
        grid-template-columns: 1fr;
    }

    .of-hero p { max-width: 60ch; }
    .of-hero-carousel-wrap { max-width: 560px; }

    /* Phones/tablets: prevent carousel from running offscreen */
    .of-hero-right{ width: 100%; }
    .of-hero-carousel-wrap{
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        padding-inline: 6px;
        box-sizing: border-box;
    }
    .of-hero-carousel{
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
    }
    .of-carousel-track,
    .of-carousel-slide{
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Make slide internals single-column so nothing forces overflow */
    .of-carousel-slide{
        padding: 1.6rem 1.1rem 1.1rem;
    }
    .of-carousel-slide .of-features-grid{
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }
    .of-carousel-slide .of-pricing-row{
        gap: 1.5rem;
    }
}

/* Extra safety: if any device reports wider CSS px, still prevent overflow */
@media (max-width: 1024px) {
    .of-hero-carousel .of-features-grid{
        grid-template-columns: 1fr !important;
    }
    .of-hero-carousel .of-carousel-slide{
        max-width: 100% !important;
    }
}

@media (max-width: 640px) {
    .of-hero{
        /* Extra bottom padding so the carousel shadow doesn't look cut off */
        padding: calc(44px + 72px) clamp(16px, 4vw, 24px) 72px;
    }

    .of-hero-inner{
        gap: 26px;
        text-align: center;
    }

    .of-hero h1{
        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.05;
        text-wrap: balance;
    }

    .of-hero p{
        font-size: 0.98rem;
        margin-bottom: 1.25rem;
    }

    .of-hero-actions{
        justify-content: center;
    }

    .of-hero-right{
        width: 100%;
    }

    .of-hero-carousel-wrap{
        max-width: 100% !important;
        margin: 0 auto;
        padding-inline: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .of-hero-carousel{
        width: 100%;
        overflow: hidden;
        max-width: 100%;
        margin: 0 auto;
    }

    .of-hero-carousel-wrap{
        overflow: visible;
    }

    .of-carousel-track{
        width: 100%;
        max-width: 100%;
    }

    .of-carousel-slide{
        max-width: 100%;
        box-sizing: border-box;
    }

    .of-carousel-btn{
        width: 40px;
        height: 40px;
    }

    .of-carousel-prev { left: 6px; }
    .of-carousel-next { right: 6px; }

    .of-carousel-slide{
        padding: 1.5rem 1.1rem 1.1rem;
    }

    .of-carousel-slide .of-features-grid{
        padding: 0;
        grid-template-columns: 1fr;
    }

    .of-carousel-slide .of-pricing-row{
        gap: 1.5rem;
    }
}

/* Narrow phones (≈ 380–560px): avoid clipping */
@media (max-width: 560px) {
    .of-hero{
        padding-left: 12px;
        padding-right: 12px;
    }

    .of-hero h1,
    .of-hero p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .of-hero h1 .of-hero-line {
        white-space: normal;
    }

    .of-hero-actions{
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .of-hero-actions a{
        width: 100%;
    }

    .of-hero-carousel-wrap{
        padding-inline: 0;
    }

    .of-carousel-slide{
        padding: 1.25rem 0.9rem 0.95rem;
    }
}

.of-hero-carousel-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.of-hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    background: #fff;
}

.of-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.of-carousel-slide {
    min-width: 100%;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.of-carousel-slide .of-flag { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.of-carousel-slide h3 { font-size: 1.5rem; font-weight: 700; color: #1B2A4A; margin: 0.25rem 0 0.75rem; }
.of-carousel-slide .of-card-desc { font-size: 0.9375rem; color: #6B7280; line-height: 1.5; margin-bottom: 1.25rem; padding: 0 0.5rem; }

.of-carousel-slide .of-pricing-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.25rem;
}

.of-pricing-item { text-align: center; }
.of-pricing-label { font-size: 0.8125rem; color: #9CA3AF; display: block; }
.of-pricing-value { font-size: 1.125rem; font-weight: 700; color: #1B2A4A; text-decoration: underline; text-underline-offset: 3px; }

.of-carousel-slide .of-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    text-align: left;
    padding: 0 1rem;
    margin-bottom: 1.25rem;
}

.of-feature-item { font-size: 0.8125rem; color: #374151; display: flex; align-items: flex-start; gap: 0.5rem; }
.of-feature-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; flex-shrink: 0; margin-top: 4px; }

.of-carousel-slide .of-card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}

.of-entity-type { font-size: 0.8125rem; color: #9CA3AF; }
.of-tax-status { font-size: 0.8125rem; color: #0B5FA5; font-weight: 600; }
.of-carousel-slide .of-learn-more {
    font-size: 0.8125rem;
    color: #9CA3AF;
    padding-top: 0.75rem;
    border-top: 1px solid #F3F4F6;
    cursor: pointer;
}

.of-carousel-slide .of-learn-more:hover { color: #0B5FA5; }

.of-carousel-slide .of-learn-more:focus-visible {
    outline: 2px solid #0B5FA5;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Carousel controls */
.of-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #6B7280;
    transition: all 0.2s;
    z-index: 10;
}

.of-carousel-btn:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.18); color: #1B2A4A; }
.of-carousel-prev { left: 10px; }
.of-carousel-next { right: 10px; }

.of-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.25rem; }

.of-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.of-carousel-dot.active { background: #0B5FA5; }

/* ---------- Expandable Jurisdiction Cards ---------- */
.of-jurisdiction-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    margin-top: clamp(20px, 3vw, 36px);
}

.of-jurisdiction-grid .of-jurisdiction-card{
    margin-bottom: 0;
}

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

@media (max-width: 640px) {
    .of-jurisdiction-grid{
        grid-template-columns: 1fr;
    }
}

.of-jurisdiction-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #F3F4F6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1.5rem;
}

.of-jurisdiction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Summary = always-visible card preview */
.of-jurisdiction-card > summary {
    display: block;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.of-jurisdiction-card > summary::-webkit-details-marker,
.of-jurisdiction-card > summary::marker {
    display: none;
    content: "";
}

/* "More info / Less info" toggle text */
.of-jurisdiction-card > summary::after {
    content: "▾  More info";
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #0B5FA5;
    font-weight: 600;
    margin-top: 0.5rem;
    opacity: 0.8;
    transition: all 0.3s;
}

.of-jurisdiction-card[open] > summary::after {
    content: "▴  Less info";
}

/* Card header row */
.of-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.of-card-head .of-flag { font-size: 1.75rem; line-height: 1; }
.of-card-head h3 { font-size: 1.125rem; font-weight: 700; color: #1B2A4A; margin: 0; flex: 1; }
.of-card-head .of-time { font-size: 0.75rem; color: #9CA3AF; white-space: nowrap; }

/* Card description */
.of-jurisdiction-card .of-card-desc {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

/* Pricing row (inside card summary) */
.of-jurisdiction-card .of-pricing-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Features 2x2 grid (inside card summary) */
.of-jurisdiction-card .of-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem 0.75rem;
    margin-bottom: 0.75rem;
}

.of-jurisdiction-card .of-feature-item {
    font-size: 0.75rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.of-jurisdiction-card .of-feature-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Footer row */
.of-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #F3F4F6;
}

/* ── Expanded content area ── */
.of-card-expanded {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #F3F4F6;
}

.of-card-expanded h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1B2A4A;
    margin: 1rem 0 0.5rem;
}

.of-card-expanded h4:first-child {
    margin-top: 1.25rem;
}

.of-card-expanded ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
}

.of-card-expanded ul li {
    margin-bottom: 0.25rem;
    color: #374151;
}

.of-card-expanded ul li::marker {
    color: #10B981;
}

/* Corporate info table */
.of-corp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.of-corp-table td {
    padding: 0.4rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid #F3F4F6;
}

.of-corp-table td:first-child {
    color: #6B7280;
    width: 45%;
}

.of-corp-table td:last-child {
    color: #1B2A4A;
    font-weight: 600;
}

/* Buttons in expanded card */
.of-card-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.of-card-buttons a {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.of-btn-primary {
    background: #0B5FA5;
    color: #fff;
}
.of-btn-primary:hover { background: #094A82; }

.of-btn-outline {
    background: transparent;
    color: #0B5FA5;
    border: 1px solid #0B5FA5;
}
.of-btn-outline:hover { background: #EBF5FF; }

/* ---------- Trust banner icon circles ---------- */
.of-trust-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

/* ---------- CTA + trust tiles ---------- */
.of-cta {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    text-align: center;
}

.of-cta .of-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    background: #0B5FA5;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(11, 95, 165, 0.22);
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.of-cta .of-cta-button:hover {
    background: #094A82;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(11, 95, 165, 0.26);
}

.of-trust-tiles {
    max-width: 1320px;
    margin: clamp(28px, 4vw, 44px) auto 0;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.of-trust-tile {
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: 14px;
    background: transparent;
}

.of-trust-tile h4 {
    margin: 0.85rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    color: #1B2A4A;
}

.of-trust-tile p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #6B7280;
}

.of-trust-tile .of-trust-icon-circle {
    background: #EBF5FF;
    color: #0B5FA5;
}

@media (max-width: 900px) {
    .of-trust-tiles { grid-template-columns: 1fr; }
    .of-trust-tile { max-width: 520px; margin: 0 auto; }
}

/* ---------- Service cards ---------- */
.of-service-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.of-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* Checkmark list */
.of-check-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.of-check-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.of-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0B5FA5;
    font-weight: 700;
}

/* ---------- Stat icon circles ---------- */
.of-stat-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

/* ---------- Testimonial avatar circles ---------- */
.of-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

/* ---------- About section feature icons ---------- */
.of-about-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}

/* ---------- Contact detail icons ---------- */
.of-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

/* ---------- Social links ---------- */
.of-social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}

.of-social-link:hover {
    background: #0B5FA5 !important;
    color: #fff !important;
}

/* ---------- Form styling ---------- */
.of-contact-form input,
.of-contact-form select,
.of-contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s;
}

.of-contact-form input:focus,
.of-contact-form select:focus,
.of-contact-form textarea:focus {
    outline: none;
    border-color: #0B5FA5;
    box-shadow: 0 0 0 3px rgba(11,95,165,0.1);
}

.of-contact-form textarea { min-height: 120px; resize: vertical; }

.of-contact-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

/* ---------- Footer social in dark bg ---------- */
.of-footer .of-social-link {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.of-footer .of-social-link:hover {
    background: #0B5FA5 !important;
    color: #fff !important;
}

/* ---------- Force header gutters (override block inline styles) ---------- */
.wp-site-blocks header.wp-block-template-part .wp-block-group.of-header {
    padding-left: clamp(20px, 4vw, 40px) !important;
    padding-right: clamp(20px, 4vw, 40px) !important;
    padding-inline: clamp(20px, 4vw, 40px) !important;
}

/* If anything still overrides the inner group, pad the template-part itself */
.wp-site-blocks > header.wp-block-template-part {
    padding-left: clamp(20px, 4vw, 40px) !important;
    padding-right: clamp(20px, 4vw, 40px) !important;
    padding-inline: clamp(20px, 4vw, 40px) !important;
}

/* Constrain header content to same width as hero */
.wp-site-blocks header.wp-block-template-part > .wp-block-group.of-header {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .of-hero-carousel-wrap { max-width: 480px; }
}

@media (max-width: 781px) {
    .of-carousel-prev { left: 4px; }
    .of-carousel-next { right: 4px; }
}

/* =======================================================================
   Single Product Hero - Final Overrides
   ======================================================================= */
body.single-product .wp-block-group.woocommerce.product > main.wp-block-group {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    box-sizing: border-box;
}

/* Full-bleed hero band under header; inner content still constrained */
body.single-product .wp-block-group.woocommerce.product .wp-block-columns.alignwide {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0 !important;
    border-radius: 0;
    background: #EAF2F8;
    padding-top: clamp(28px, 4.2vw, 56px);
    padding-bottom: clamp(34px, 5.2vw, 72px);
    padding-left: max(clamp(20px, 4vw, 40px), calc((100vw - 1320px) / 2 + clamp(20px, 4vw, 40px)));
    padding-right: max(clamp(20px, 4vw, 40px), calc((100vw - 1320px) / 2 + clamp(20px, 4vw, 40px)));
    box-sizing: border-box;
    align-items: center;
}

/* Right side should sit on hero, not in a card */
body.single-product .wp-block-group.woocommerce.product .wp-block-columns.alignwide > .wp-block-column:last-child {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Thumbnail strip overlaps lower-left of main image */
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs {
    position: relative;
    margin-top: -34px !important;
    margin-left: 14px !important;
    z-index: 5;
    display: inline-flex;
    gap: 6px;
    background: rgba(255,255,255,0.94);
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
    width: auto;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs li {
    width: 54px !important;
    margin: 0 !important;
}

/* Tabs centered and straddling hero/content seam */
body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details {
    margin-top: clamp(-0.9rem, -1.6vw, -0.5rem);
    position: relative;
    z-index: 8;
}

body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs {
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    padding: 0.4rem;
}

/* Keep breadcrumb tight to hero */
body.single-product .woocommerce-breadcrumb {
    margin-top: 0;
    margin-bottom: clamp(0.6rem, 1.8vw, 1rem);
}

/* Product page: hide breadcrumbs (not needed in final layout) */
body.single-product .woocommerce-breadcrumb,
body.single-product .wp-block-breadcrumbs,
body.single-product .wc-block-breadcrumbs {
    display: none !important;
}

@media (max-width: 920px) {
    body.single-product .wp-block-group.woocommerce.product .wp-block-columns.alignwide {
        position: static;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0;
        padding: 14px clamp(16px, 4vw, 24px) 22px;
    }

    body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-image-gallery .flex-control-thumbs {
        margin-top: 0 !important;
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
        box-shadow: none;
        background: transparent;
        padding: 0.45rem 0 0;
    }

    body.single-product .wp-block-group.woocommerce.product .wp-block-woocommerce-product-details {
        margin-top: 0.75rem;
    }
}

/* Related products should render as cards */
body.single-product .wp-block-woocommerce-product-collection {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    box-sizing: border-box;
}

body.single-product .wp-block-woocommerce-product-collection ul.wc-block-product-template {
    gap: 1rem !important;
}

body.single-product .wp-block-woocommerce-product-collection .wc-block-product {
    background: #fff;
    border: 1px solid var(--wp--preset--color--light-border, #F3F4F6);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 22px rgba(0,0,0,.06);
    padding: 0.8rem 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

body.single-product .wp-block-woocommerce-product-collection .wc-block-components-product-image {
    margin-bottom: 0.65rem;
}

body.single-product .wp-block-woocommerce-product-collection .wc-block-components-product-image img {
    border-radius: 8px;
}

body.single-product .wp-block-woocommerce-product-collection .wp-block-post-title {
    min-height: 2.6em;
    margin-bottom: 0.45rem !important;
}

body.single-product .wp-block-woocommerce-product-collection .wp-block-post-title a {
    color: var(--wp--preset--color--dark-navy, #1B2A4A);
    text-decoration: none;
    font-weight: 700;
}

body.single-product .wp-block-woocommerce-product-collection .wp-block-post-title a:hover {
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
}

body.single-product .wp-block-woocommerce-product-collection .wc-block-components-product-price {
    margin-bottom: 0.55rem;
}

body.single-product .wp-block-woocommerce-product-collection .wc-block-components-product-price .woocommerce-Price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wp--preset--color--brand-blue, #0B5FA5);
}

body.single-product .wp-block-woocommerce-product-collection .wc-block-components-product-button .wp-block-button__link {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem !important;
    font-weight: 700;
}
