/*
Theme Name: Beyond Business Connections
Description: A self-contained block theme for the Australia–India market entry consultancy. Includes editable market profiles and a private enquiry inbox.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Author: Beyond Business Connections
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beyond-business-connections
Tags: full-site-editing, custom-colors, editor-style, block-patterns, wide-blocks
*/

:root, .editor-styles-wrapper {
  --bbc-ink: var(--wp--preset--color--ink, #172e39);
  --bbc-paper: var(--wp--preset--color--paper, #faf9f5);
  --bbc-copper: var(--wp--preset--color--copper, #a55034);
  --bbc-apricot: var(--wp--preset--color--apricot, #f4af82);
  --bbc-mist: var(--wp--preset--color--mist, #e9efed);
  --bbc-slate: var(--wp--preset--color--slate, #46585b);
  --bbc-rule: #cbd2cc;
  --bbc-gutter: clamp(1.35rem, 5.45vw, 6.4rem);
  --bbc-section: clamp(4rem, 6.8vw, 7.1rem);
  --bbc-display: var(--wp--preset--font-family--display, "Instrument Serif", Georgia, serif);
  --bbc-body: var(--wp--preset--font-family--body, "DM Sans", Arial, sans-serif);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.bbc-wrap { width: min(calc(100% - var(--bbc-gutter) * 2), 84rem); margin-inline: auto !important; }
.bbc-home > section { scroll-margin-top: 1rem; }
.bbc-home :where(h1,h2,h3,p,figure,ul), .bbc-header :where(p,figure), .bbc-footer :where(p,figure) { margin: 0; }
.bbc-home :where(h1,h2,h3), .bbc-content-shell :where(h1,h2,h3) {
  font-family: var(--bbc-display); font-weight: 400; text-wrap: pretty;
}
.bbc-home h2 { font-size: clamp(3.0rem, 4.7vw, 5.05rem); letter-spacing: -.035em; line-height: 1.02; }
.bbc-home h3 { letter-spacing: -.025em; }
.bbc-kicker, .bbc-route-label { font-family: var(--bbc-body); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; line-height: 1.45; font-weight: 700; }
p.bbc-kicker { display: flex; align-items: center; gap: .75rem; color: var(--bbc-copper); }
.bbc-kicker::before { content: ""; flex: 0 0 1.65rem; height: 2px; background: currentColor; }
.bbc-heading-stack > .bbc-kicker + h2 { margin-top: 1rem; }
:where(a, input, textarea, summary, select, button):focus-visible { outline: 3px solid #bd673b; outline-offset: 4px; }
.bbc-hero :focus-visible, .bbc-contact :focus-visible, .bbc-footer :focus-visible { outline-color: var(--bbc-apricot); }
.bbc-header .wp-block-button__link, .bbc-home .wp-block-button__link, .bbc-content-shell .wp-block-button__link, .bbc-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .82rem 1.45rem; background: var(--bbc-ink); color: var(--bbc-paper); border: 1px solid transparent;
  border-radius: 3px; font: 650 .95rem/1.2 var(--bbc-body); text-decoration: none; cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}
.bbc-home .wp-block-button__link:hover, .bbc-header .wp-block-button__link:hover, .bbc-content-shell .wp-block-button__link:hover { background-color: #284a55; color: #fff; }
.bbc-header { position: relative; z-index: 5; background: var(--bbc-paper); border-bottom: 1px solid rgba(23,46,57,.12); }
.bbc-header-inner, .bbc-header-links, .bbc-footer-inner { display: flex; align-items: center; }
.bbc-header-inner { justify-content: space-between; min-height: 5.25rem; gap: 2rem; padding: .6rem 0; }
.bbc-header-links { gap: clamp(1.25rem,3.1vw,3.8rem); }
.bbc-wordmark, .bbc-wordmark a, .bbc-wordmark img { display: block; }
.bbc-wordmark { flex-shrink: 0; line-height: 0; }
.bbc-wordmark img { width: 11.5rem; height: auto; }
.bbc-header .wp-block-navigation__container { column-gap: clamp(1.25rem,2.6vw,2.9rem); row-gap: .3rem; }
.bbc-header .wp-block-navigation-item__content { font-size: .96rem; font-weight: 550; text-decoration: none; text-underline-offset: .38em; }
.bbc-header .wp-block-navigation-item__content:hover { text-decoration: underline; text-decoration-color: var(--bbc-copper); }
.bbc-header .wp-block-button__link { min-height: 2.85rem; padding: .72rem 1.38rem; }
.bbc-header .wp-block-navigation__responsive-container-open,
.bbc-header .wp-block-navigation__responsive-container-close { padding: .625rem; min-width: 2.75rem; min-height: 2.75rem; }
.bbc-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--bbc-paper) !important; color: var(--bbc-ink) !important; padding: 1.15rem var(--bbc-gutter);
}
.bbc-header .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { align-items: flex-start; width: 100%; gap: .5rem; }
.bbc-header .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--bbc-rule); }
.bbc-header .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: .7rem 0; font-family: var(--bbc-display); font-weight: 400; font-size: 2.3rem; }

.bbc-hero { position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; background: #142b39; color: #fff; min-height: clamp(33rem,43.8vw,43rem); }
.bbc-hero .bbc-hero-photo, .bbc-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.bbc-hero .bbc-hero-photo { z-index: -3; max-width: none; }
.bbc-hero-photo img { width: 100%; height: 100% !important; max-width: none; display: block; object-fit: cover; object-position: 60% 51%; }
.bbc-hero::before { content: ""; z-index: -1; pointer-events: none; background: linear-gradient(90deg,rgba(8,29,43,.94) 0%,rgba(9,30,43,.82) 22%,rgba(9,29,39,.56) 42%,rgba(10,30,38,.14) 66%,transparent 87%), linear-gradient(0deg,rgba(7,23,32,.54),transparent 24%); }
.bbc-hero-inner { padding-block: clamp(3.7rem,5vw,5.6rem); }
.bbc-hero-copy { max-width: 48rem; }
.bbc-hero .bbc-kicker { color: #f4bd98; font-size: .83rem; }
.bbc-hero .bbc-hero-title { font-family: var(--bbc-display); font-weight: 400; font-size: clamp(5.1rem,7.55vw,8rem); line-height: .975; letter-spacing: -.04em; margin: 1.2rem 0 1.45rem; color: #faf9f5; }
.bbc-hero-title em, .bbc-contact h2 em { font-weight: 400; color: #f6bd97; }
.bbc-hero .bbc-hero-deck { max-width: 32.5rem; font-size: clamp(1.05rem,1.27vw,1.23rem); line-height: 1.58; color: #f4f4ef; text-wrap: pretty; }
.bbc-hero .bbc-hero-actions { display: flex; gap: 1.65rem; align-items: center; margin-top: 1.85rem; }
.bbc-home .bbc-primary .wp-block-button__link, .bbc-submit { background: var(--bbc-apricot); color: #142a33; }
.bbc-home .bbc-primary .wp-block-button__link:hover, .bbc-submit:hover { background: #f8c4a2; color: #142a33; }
.bbc-home .bbc-text-button .wp-block-button__link { background: transparent; border: 0; color: white; padding-inline: 0; text-decoration: underline; text-decoration-color: #adb8ba; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.bbc-home .bbc-text-button .wp-block-button__link:hover { color: #f6bd97; text-decoration-color: currentColor; }
.bbc-hero .bbc-hero-base { position: absolute; inset: auto 0 1.15rem; display: flex; justify-content: flex-end; pointer-events: none; }
p.bbc-caption, .bbc-place-caption { display: inline-flex; align-items: center; gap: .42rem; font-size: .81rem; line-height: 1.45; font-weight: 500; }
.bbc-caption { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.bbc-caption::before, .bbc-place-caption::before { content: ""; width: .7rem; height: .7rem; background-color: currentColor; mask: url("assets/images/pin.svg") center / contain no-repeat; }

.bbc-services, .bbc-corridor, .bbc-approach, .bbc-contact { padding-block: var(--bbc-section); }
.bbc-services { background: var(--bbc-paper); }
.bbc-section-intro, .bbc-corridor-head { display: flex; align-items: end; justify-content: space-between; gap: clamp(2.3rem,6vw,8rem); }
.bbc-section-intro .bbc-heading-stack { flex: 1 1 auto; }
.bbc-services .bbc-intro-note { flex: 0 1 25.5rem; color: var(--bbc-slate); font-size: 1.05rem; line-height: 1.62; }
.bbc-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.6rem,3.7vw,4rem); margin-top: clamp(2.4rem,3.5vw,4.1rem) !important; }
.bbc-service { border-top: 1px solid #aebbb7; padding-top: 1.65rem; }
.bbc-service .bbc-service-icon { width: 2.45rem; margin-bottom: 1.1rem; }
.bbc-service-icon img { display: block; width: 100%; height: auto; }
.bbc-service h3 { font-size: clamp(2rem,2.36vw,2.75rem); line-height: 1.12; margin-bottom: .6rem; }
.bbc-service p { max-width: 36ch; color: var(--bbc-slate); line-height: 1.65; font-size: 1.03rem; }

.bbc-corridor { background: var(--bbc-mist); }
.bbc-corridor .bbc-corridor-head { align-items: flex-end; gap: 2rem; }
.bbc-market-tabs { display: inline-flex; flex: 0 0 auto; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid #a7b5af; gap: .25rem !important; }
.bbc-market-tabs .wp-block-button { margin: 0; }
.bbc-home .bbc-market-tabs .wp-block-button__link {
  min-height: 2.8rem; padding: .65rem .85rem; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; background: transparent; color: var(--bbc-slate); font-size: .95rem;
}
.bbc-home .bbc-market-tabs .wp-block-button__link[aria-selected="true"], .bbc-home .bbc-market-tabs .wp-block-button__link:hover { color: var(--bbc-ink); border-bottom-color: var(--bbc-copper); background: transparent; }
.bbc-market-panels { margin-top: clamp(2.1rem,3.3vw,3.75rem) !important; }
.bbc-market-panel { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 26rem; background: #fff; }
.bbc-market-panel + .bbc-market-panel { margin-top: 1.5rem; }
.bbc-market-panels.is-interactive .bbc-market-panel { margin-top: 0; }
.bbc-market-panel[hidden] { display: none !important; }
.bbc-market-photo { position: relative; isolation: isolate; min-height: 22rem; overflow: hidden; }
.bbc-market-photo .bbc-place-image { position: absolute; inset: 0; height: 100%; width: 100%; margin: 0; }
.bbc-place-image img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.bbc-market-photo::after { content: ""; position: absolute; inset: 58% 0 0; background: linear-gradient(to top,rgba(13,32,38,.63),transparent); pointer-events:none; }
.bbc-market-photo .bbc-place-caption { position: absolute; left: 1.35rem; bottom: 1.15rem; z-index: 1; color: #fff; }
.bbc-market-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2.1rem,4.2vw,4.7rem); }
.bbc-route-label { color: var(--bbc-copper); }
.bbc-market-copy h3 { font-size: clamp(2.75rem,3.65vw,4.1rem); margin: .55rem 0 1.1rem; line-height: 1; }
.bbc-market-copy p:not(.bbc-route-label), .bbc-market-list { color: var(--bbc-slate); font-size: 1rem; line-height: 1.6; }
.bbc-market-copy .bbc-market-list { padding: 0; list-style: none; margin: 1.15rem 0 1.5rem; width: 100%; }
.bbc-market-list li { position: relative; margin: .42rem 0; padding-left: 1.22rem; }
.bbc-market-list li::before { content: ""; width: .47rem; height: 1px; background: var(--bbc-copper); position: absolute; left: 0; top: .8em; }
.bbc-home .bbc-market-cta .wp-block-button__link { min-height: 2.85rem; }
.bbc-approach { background: #fff; }
.bbc-approach-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(3rem,8vw,8.5rem); }
.bbc-approach h2 { max-width: 10.5em; }
.bbc-approach .bbc-approach-note { font-size: 1.06rem; color: var(--bbc-slate); margin-top: 1.15rem; max-width: 36ch; }
.bbc-steps { border-top: 1px solid #aebbb7; align-self: start; }
.bbc-steps details { padding: 0; border-bottom: 1px solid var(--bbc-rule); }
.bbc-steps summary { position: relative; display: block; list-style: none; font: 400 clamp(1.75rem,2.1vw,2.4rem)/1.15 var(--bbc-display); letter-spacing: -.012em; padding: 1.2rem 3.1rem 1.2rem 0; cursor: pointer; }
.bbc-steps summary::-webkit-details-marker { display: none; }
.bbc-steps summary::after, .bbc-steps summary::before { content: ""; position: absolute; right: .28rem; top: 50%; width: .95rem; height: 1.5px; background: var(--bbc-copper); }
.bbc-steps summary::after { transform: rotate(90deg); transition: transform .2s; }
.bbc-steps details[open] summary::after { transform: rotate(0); }
.bbc-steps details p { margin: -.2rem 2.25rem 1.3rem 0; font-size: 1rem; color: var(--bbc-slate); line-height: 1.65; }

.bbc-contact { background: #162e39; color: #f8f9f5; }
.bbc-contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(3rem,8.5vw,9rem); }
.bbc-contact h2 { font-size: clamp(3.55rem,5.35vw,5.8rem); color: #f9f8f2; margin: 1rem 0 1.15rem; }
.bbc-contact .bbc-kicker { color: #efb18a; }
.bbc-contact-note { max-width: 34ch; color: #d5dedc; font-size: 1.1rem; }
.bbc-contact .bbc-linkedin { margin-top: 1.65rem; }
.bbc-linkedin a, .bbc-form-privacy a, .bbc-footer a { color: #f6c29f; text-underline-offset: .24em; }
.bbc-linkedin a { font-size: .94rem; }
.bbc-enquiry-form { display: grid; gap: 1.1rem; }
.bbc-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.15rem; }
.bbc-field { display: flex; flex-direction: column; gap: .38rem; min-width: 0; }
.bbc-field label { font: 550 .94rem/1.4 var(--bbc-body); color: #f5f7f3; }
.bbc-field input, .bbc-field textarea, .bbc-field select {
  width: 100%; min-width: 0; min-height: 3.05rem; border: 1px solid #839599; border-radius: 3px; background-color: #1f3a45;
  box-shadow: none; color: #fff; padding: .72rem .82rem; font: 400 1rem/1.4 var(--bbc-body); transition: border-color .18s;
}
.bbc-field textarea { resize: vertical; min-height: 7rem; }
.bbc-field select {
  appearance: none; color-scheme: dark; padding-right: 2.8rem;
  background-image: url("assets/images/chevron.svg"); background-repeat: no-repeat; background-size: .9rem; background-position: right .95rem center;
}
.bbc-field select option { color: #fff; background: #1f3a45; }
.bbc-field input:hover, .bbc-field textarea:hover, .bbc-field select:hover { border-color: #bdc9c8; }
.bbc-form-submit { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.bbc-form-privacy { color: #cfdbda; font-size: .87rem; }
.bbc-confirm { border: 1px solid #809897; border-left: 4px solid var(--bbc-apricot); padding: 1.4rem; color: white; }
.bbc-confirm h3 { font-size: 2.75rem; margin: 0 0 .6rem; }
.bbc-confirm a { color: #f7c3a2; text-underline-offset: .2em; }
.bbc-confirm p + p { margin-top: 1rem; }
.bbc-alert { border-left: 3px solid #ffae8d; background: #293f48; padding: .8rem 1rem; color: #fff; }
.bbc-input-error { font-size: .88rem; color: #ffceaf; }
.bbc-field [aria-invalid="true"] { border-color: #ffc3a0; }
.bbc-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.bbc-footer { background: #112630; color: #c8d3d1; }
.bbc-footer-inner { min-height: 7.3rem; justify-content: space-between; padding-block: 1.7rem; gap: 2rem; }
.bbc-footer .bbc-wordmark img { width: 10.6rem; }
.bbc-footer-meta { display: flex; gap: 2rem; align-items: center; text-align: right; font-size: .85rem; line-height: 1.65; }
.bbc-privacy-link:empty { display: none; }
.bbc-content-shell { width: min(calc(100% - var(--bbc-gutter) * 2),54rem); margin-inline: auto !important; min-height: 55vh; padding-block: var(--bbc-section); overflow-wrap: break-word; }
.bbc-content-shell > * + *, .bbc-content-shell .wp-block-post-content > * + * { margin-block-start: 1.25rem; }
.bbc-content-shell h1 { font-size: clamp(3.1rem,5.8vw,6rem); line-height: 1.03; letter-spacing: -.04em; }
.bbc-content-shell h2 { font-size: clamp(2rem,3.4vw,3.4rem); }
.bbc-content-shell :where(img,iframe) { max-width:100%; }
.bbc-content-shell .wp-block-post-template > li { padding-block: 1.4rem; border-bottom: 1px solid var(--bbc-rule); }
.bbc-content-shell .wp-block-post-date { color: var(--bbc-slate); font-size: .88rem; margin-block: .5rem; }
.bbc-content-shell :where(.wp-block-query-pagination,.wp-block-comments) { margin-top: 2rem; }
.bbc-content-shell .wp-block-query-pagination { gap: 1rem; }

.bbc-steps details[open] > p:last-child { margin-bottom: 1.2rem; }
@media (min-width: 701px) and (max-width: 1000px) {
  .bbc-hero-photo img { object-position: 31% center; }
  .bbc-hero::before { background: linear-gradient(90deg,rgba(8,29,43,.95),rgba(9,30,43,.78) 43%,rgba(10,30,38,.22) 78%,transparent),linear-gradient(0deg,rgba(7,23,32,.46),transparent 25%); }
  .bbc-hero .bbc-hero-deck { max-width: 28rem; }
}
/* Leave the navigation overlay to the native block, including keyboard focus and dismissal. */
@media (min-width: 600px) and (max-width: 800px) {
  .bbc-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .bbc-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}
@media (max-width: 900px) {
  .bbc-corridor .bbc-corridor-head { flex-wrap: wrap; gap: 1.35rem; }
  .bbc-section-intro { align-items: flex-start; gap: 2.25rem; }
  .bbc-section-intro .bbc-intro-note { flex-basis: 20.5rem; }
  .bbc-market-copy { padding: 2.1rem; }
  .bbc-approach-grid, .bbc-contact-grid { gap: 2.8rem; }
}
@media (max-width: 700px) {
  :root, .editor-styles-wrapper { --bbc-section: 3.6rem; }
  .bbc-header-inner { min-height: 4.35rem; gap: .7rem; }
  .bbc-header .bbc-wordmark img { width: 9.5rem; }
  .bbc-header-links { flex-direction: row-reverse; gap: .35rem; }
  .bbc-header .wp-block-button__link { min-height: 2.6rem; padding: .55rem .85rem; font-size: .88rem; }
  .bbc-hero { min-height: 0; display: block; }
  .bbc-hero .bbc-hero-photo { inset: auto 0 0; height: 53%; }
  .bbc-hero-photo img { object-position: 68% 48%; }
  .bbc-hero::before { background: linear-gradient(to bottom,#142b39 1%,#142b39 47%,rgba(20,43,57,.9) 56%,rgba(20,43,57,.7) 63%,rgba(20,43,57,.16) 80%,transparent 88%),linear-gradient(0deg,rgba(6,22,29,.5),transparent 12%); }
  .bbc-hero-inner { padding-top: 2.65rem; padding-bottom: clamp(11rem,36vw,14rem); }
  .bbc-hero .bbc-hero-title { font-size: clamp(2.95rem,13.35vw,5.25rem); margin: .95rem 0 1.05rem; line-height: .99; }
  .bbc-hero .bbc-hero-deck { max-width: 30rem; font-size: 1.04rem; }
  .bbc-hero .bbc-hero-actions { margin-top: 1.5rem; }
  .bbc-hero .bbc-hero-base { bottom: .8rem; }
  .bbc-section-intro, .bbc-corridor .bbc-corridor-head { display: block; }
  .bbc-section-intro .bbc-intro-note { margin-top: 1.15rem; max-width: 38rem; }
  .bbc-home h2 { font-size: clamp(2.75rem,8.7vw,3.8rem); }
  .bbc-service-grid { grid-template-columns: 1fr; gap: 1.6rem; margin-top: 1.95rem !important; }
  .bbc-service { display: grid; grid-template-columns: 2rem 1fr; column-gap: 1.05rem; align-items: start; padding-top: 1.35rem; }
  .bbc-service .bbc-service-icon { width: 2rem; grid-row: span 2; margin: .15rem 0 0; }
  .bbc-service h3 { font-size: 2rem; margin-bottom: .4rem; }
  .bbc-service p { max-width: 47ch; }
  .bbc-market-tabs { margin-top: 1.4rem !important; }
  .bbc-market-panel, .bbc-approach-grid, .bbc-contact-grid { grid-template-columns: 1fr; }
  .bbc-market-photo { min-height: 0; aspect-ratio: 1.62; }
  .bbc-market-copy { padding: clamp(1.45rem,5vw,2.2rem); }
  .bbc-market-panels { margin-top: 1.35rem !important; }
  .bbc-approach-grid, .bbc-contact-grid { gap: 2rem; }
  .bbc-approach h2 { max-width: none; }
  .bbc-footer-inner { align-items: flex-start; flex-wrap: wrap; gap: 1.2rem; }
  .bbc-footer-meta { display: block; text-align: left; }
  .bbc-footer-meta .bbc-privacy-link { margin-top: .5rem; }
}
@media (max-width: 420px) {
  .bbc-header-inner { gap: .2rem; }
  .bbc-header .bbc-wordmark img { width: 8.65rem; }
  .bbc-header .wp-block-button__link { padding-inline:.65rem; }
  .bbc-hero .bbc-kicker { font-size: .76rem; }
  .bbc-hero .bbc-hero-actions { gap: 1.15rem; }
  .bbc-form-row { grid-template-columns: 1fr; gap: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.bbc-editor-placeholder { padding: 1.1rem; border: 1px dashed currentColor; text-align: left; }
.bbc-editor-placeholder p { margin: .4rem 0 0; font-size: .9rem; }
