/*
Theme Name:   Bridge Child
Template:     astra
Author:       Bridge AI
Version:      1.1.2
Text Domain:  bridge-child
*/

/* ---- Brand tokens (v1) ---- */
:root {
  --br-ink:    #14213D;
  --br-teal:   #0E7C7B;
  --br-teal-d: #0A5E5D;
  --br-mist:   #EEF4F4;
  --br-paper:  #FFFFFF;
  --br-amber:  #D98E04;
  --br-radius: 14px;
  --br-shadow: 0 6px 24px rgba(20, 33, 61, 0.08);
  --br-max:    1160px;
}

/* ---- Base ---- */
body { font-family: 'Inter', system-ui, sans-serif; color: var(--br-ink); background: var(--br-paper); }
h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; color: var(--br-ink); letter-spacing: -0.01em; }
a { color: var(--br-teal); }
:focus-visible { outline: 3px solid var(--br-amber); outline-offset: 2px; }

/* ---- Shared components used by every template ---- */
.br-wrap { max-width: var(--br-max); margin: 0 auto; padding: 0 20px; }
.br-band { background: var(--br-mist); padding: 64px 0; }
.br-card { background: var(--br-paper); border-radius: var(--br-radius); box-shadow: var(--br-shadow); padding: 24px; }
.br-btn { display: inline-block; padding: 0.8em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none; }
.br-btn--primary { background: var(--br-teal); color: #fff; }
.br-btn--primary:hover, .br-btn--primary:focus-visible { background: var(--br-teal-d); color: #fff; }
.br-btn--ghost { border: 2px solid var(--br-teal); color: var(--br-teal); background: transparent; }
.br-shot { display: block; max-width: 100%; height: auto; border-radius: var(--br-radius); box-shadow: var(--br-shadow); }
/* ---- Closing CTA band: dark, edge to edge, content in the shared container ---- */
#content > .ast-container > main { width: 100%; }
@media (max-width: 544px) { .ast-separate-container #content > .ast-container { padding-left: 20px; padding-right: 20px; } } /* Answers pages: same gutter as the rest of the site */
.br-cta-band { background: var(--br-ink); color: #fff; padding: 64px 0; text-align: center; box-shadow: 0 0 0 100vmax var(--br-ink); clip-path: inset(0 -100vmax); }
.br-cta-band h2 { color: #fff; }
.br-cta-band .br-btn { margin: 8px 6px 0; }

/* ---- Ghost button on dark backgrounds: white outline, filled on hover ---- */
.br-cta-band .br-btn--ghost, .br-footer .br-btn--ghost { border-color: #fff; color: #fff; }
.br-cta-band .br-btn--ghost:hover, .br-cta-band .br-btn--ghost:focus-visible,
.br-footer .br-btn--ghost:hover, .br-footer .br-btn--ghost:focus-visible { background: #fff; border-color: #fff; color: var(--br-ink); }

/* ---- Footer (Section 6.11): continues the dark band, same container ---- */
.br-footer { position: relative; margin-top: -1px; background: var(--br-ink); color: #fff; text-align: left; border-top: 1px solid rgba(255,255,255,0.14); } /* -1px: no hairline between band and footer */
.br-footer > .ast-container { display: block; }
.br-footer__wrap { padding-top: 48px; padding-bottom: 20px; }
.br-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; opacity: 0.9; }
.br-footer a:hover, .br-footer a:focus-visible { color: #fff; opacity: 1; text-decoration: underline; }
.br-footer__inner { display: grid; grid-template-columns: 1.4fr 3fr; gap: 40px; }
.br-footer__word { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.3rem; margin: 0 0 8px; color: #fff; }
.br-footer__tag { margin: 0; opacity: 0.85; line-height: 1.5; }
.br-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.br-footer__col h3 { font-family: 'Manrope', sans-serif; font-size: 0.95rem; color: #fff; margin: 0 0 4px; }
.br-footer__col ul { list-style: none; padding: 0; margin: 0; }
.br-footer__col li { margin: 0; line-height: 1.4; }
@media (max-width: 767px) {
	.br-footer__inner { grid-template-columns: 1fr; gap: 28px; }
	.br-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---- Footer bottom row: copyright and legal link ---- */
.br-footer__bottom { margin-top: 28px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 0.85rem; }
.br-footer__copy { margin: 0; opacity: 0.85; }
.br-footer__legal { display: flex; flex-wrap: wrap; gap: 0 20px; }

/* ---- Scroll-to-top button (Astra): brand teal, same radius as the buttons ---- */
#ast-scroll-top { background-color: var(--br-teal); border-radius: 999px; }
#ast-scroll-top:hover, #ast-scroll-top:focus-visible { background-color: var(--br-teal-d); }

/* ---- Fluent Forms submit button → brand teal (Section 6.7) ---- */
.frm-fluent-form .ff-btn-submit,
.ff-btn.ff-btn-submit {
	background-color: var(--br-teal) !important;
	border-color: var(--br-teal) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 0.8em 1.6em !important;
	font-weight: 600 !important;
}
.frm-fluent-form .ff-btn-submit:hover,
.ff-btn.ff-btn-submit:hover {
	background-color: var(--br-teal-d) !important;
}
/* ---- Header CTA (SITE-7b): "Book a demo" is the button, login a quiet link ---- */
#masthead .main-header-menu > .br-nav-demo { display: flex; align-items: center; }
#masthead .main-header-menu > .br-nav-demo > .menu-link,
#masthead .main-header-menu > .br-nav-demo.current-menu-item > .menu-link { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding: 0 1.4em; line-height: 1.2; border-radius: 999px; background: var(--br-teal); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
#masthead .main-header-menu > .br-nav-demo > .menu-link:hover,
#masthead .main-header-menu > .br-nav-demo > .menu-link:focus-visible { background: var(--br-teal-d); color: #fff; }

/* Desktop: small, muted text link right before the button */
#ast-desktop-header .main-header-menu > .br-nav-login > .menu-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; color: #556070; white-space: nowrap; }
#ast-desktop-header .main-header-menu > .br-nav-login > .menu-link:hover,
#ast-desktop-header .main-header-menu > .br-nav-login > .menu-link:focus-visible { color: var(--br-ink); text-decoration: underline; }
#ast-desktop-header .main-header-menu > .br-nav-demo { margin-left: 8px; }

/* Phone menu: full-width button on top, one muted line at the bottom */
#ast-mobile-header .main-header-menu > .br-nav-demo { padding: 16px 20px 8px; border: 0; }
#ast-mobile-header .main-header-menu > .br-nav-demo > .menu-link,
#ast-mobile-header .main-header-menu > .br-nav-demo.current-menu-item > .menu-link { width: 100%; height: 48px; min-height: 48px; border: 0; }
#ast-mobile-header .main-header-menu > .br-nav-login { border: 0; }
.br-nav-login__line { margin: 0; padding: 8px 20px 16px; font-size: 0.9rem; color: #556070; }
.br-nav-login__line .br-nav-login__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--br-teal); font-weight: 600; }
/* Narrow desktop (922-1199px): tighter menu spacing keeps the header on one row */
@media (min-width: 922px) and (max-width: 1199px) {
	#ast-desktop-header .main-header-menu > li > .menu-link { padding: 0 10px; }
	#masthead #ast-desktop-header .main-header-menu > .br-nav-demo > .menu-link { padding: 0 1.1em; }
}

/* ---- Logo (SITE-10): header 36px tall, 30px on phones; footer 32px ---- */
.site-title.br-logo, .site-title.br-logo a { display: block; line-height: 0; }
.site-title.br-logo img { display: block; width: auto; height: 36px; }
.br-footer__word img { display: block; width: auto; height: 32px; }
@media (max-width: 767px) { .site-title.br-logo img { height: 30px; } }
