/*
 * brand.css: per-site theme override layer.
 *
 * Loaded AFTER style.css. The template ships this file nearly empty;
 * each site overrides colors/branding here instead of editing the big
 * shared stylesheet, so style.css stays portable across sites.
 *
 * Typical hooks: body, a, .btn-primary, .navbar, .top-header,
 * .banner-hero, .bg-primary (footer), .nav-cta-float .btn-sm-primary,
 * .site-title img (logo sizing), .sidebar.
 */

/* Massachusetts Business Lawyer: the old site's navy (#004679), gold
   (#f5b757) and parchment (#e8d9c2). */

a { color: #2464d9; }
.main a { color: #004679; }

.top-header p.site-description,
.top-header p.site-description a {
	color: #fff;
	text-shadow: none;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
}
.site-title img { max-height: 90px; width: auto; }

.navbar { background-color: #004679; }
@media (max-width: 991.98px) {
	.navbar-nav > .nav-item > .nav-link { color: #fff; }
	.navbar-nav > .nav-item a:hover,
	.navbar-nav > .nav-item > .dropdown-toggle.show {
		background-color: #e8d9c2;
		color: #004679;
	}
}
.navbar-nav .dropdown-menu { background-color: #e8d9c2; }
.navbar-expand-lg .dropdown-menu .dropdown-item,
.navbar-expand-xl .dropdown-menu .dropdown-item { background-color: #e8d9c2; color: #004679; }
.navbar-expand-lg .dropdown-menu .dropdown-item.active,
.navbar-expand-lg .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item.active,
.navbar-nav .dropdown-menu .dropdown-item:hover { background-color: #f5b757; color: #004679; }
@media (min-width: 992px) {
	.navbar-nav > .nav-item:hover > .nav-link::before,
	.navbar-nav > .nav-item > .nav-link:hover::before,
	.navbar-nav > .nav-item.active > .nav-link::before { background-color: #f5b757; }
}

/* Hero: navy until public/images/hero.jpg (or a page's heroImage) exists.
   The image is pinned to the top, so any cropping trims the bottom. */
.banner-hero { background-color: #004679; padding: 80px 0 90px; background-position: top center; }

h3, h4 { color: #004679; }

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	color: #004679;
	border-color: #004679;
	background: #f5b757;
}

.bg-primary { background-color: #004679 !important; }
.footer, .footer a { color: #fff; }
/* White text on the gold CTA buttons. */
.top-header-contact-info .btn,
.top-header-contact-info .btn:hover,
.nav-cta-float .btn,
.nav-cta-float .btn:hover,
.nav-cta-float .btn-sm-primary,
.nav-cta-float .btn-sm-primary:hover { color: #fff; }
/* The floating CTA uses the brand gold instead of the template's pale
   yellow, with a light shadow so the white text stays readable. */
.nav-cta-float .btn-sm-primary { background: #f5b757; border-color: #004679; }
.top-header-contact-info .btn,
.nav-cta-float .btn-sm-primary { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }

/* Header background. The nav bar below it stays navy. */
.header,
.top-header { background: #469cda; }
.navbar { border-top: 1px solid rgba(255, 255, 255, 0.15); }

/* Floating CTA: its top edge overlaps the bottom of the nav bar slightly,
   instead of hanging below the header. */
@media (min-width: 992px) {
	/* z-index above the navbar's 999 (style.css), so the overlap shows. */
	.nav-cta-float { top: calc(100% - 18px); bottom: auto; z-index: 1000; }
}

/* "Request a Free Consultation" sits on two lines, which keeps the floating
   CTA narrow enough to stay clear of the nav links. */
@media (min-width: 992px) {
	.nav-cta-float .btn-sm-primary {
		flex-direction: column;
		line-height: 1.15;
		text-align: center;
	}
	.nav-cta-float .btn-sm-primary .cta-line { display: block; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
	.nav-cta-float { right: 24px; }
	.nav-cta-float .btn-sm-primary { font-size: 26px; }
}
@media (min-width: 1200px) {
	.nav-cta-float .btn-sm-primary { font-size: 30px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
	.nav-cta-float { right: 24px; }
}

/* Mobile header buttons: "Request a Free Consultation" wraps to two lines,
   so both buttons stretch to the same height with centered text. */
.top-header-contact-info .row > .col { display: flex; }
.top-header-contact-info .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
}

/* Contact form: a full border on every field, not just the template's
   bottom line. */
.contact-form .form-control {
	border: 1px solid #979797;
	border-radius: 4px;
	padding: 10px 12px;
}
.contact-form .form-control:focus {
	border-color: #004679;
	box-shadow: 0 0 0 0.2rem rgba(0, 70, 121, 0.15);
}
/* Send button: smaller than the template's 24px buttons. */
.contact-form .btn {
	font-size: 17px;
	padding: 8px 28px;
}
