/*
Theme Name: Barrett Aviation - Divi 5 Child
Theme URI: https://aigrunt.net
Description: Divi 5 child theme for the Barrett Aviation one-page build. All custom CSS for the site lives in this stylesheet.
Author: Wildcat SEO
Author URI: https://wildcatseo.com
Template: Divi
Version: 1.0.7
License: GNU General Public License v2 or later
Text Domain: divi5-barrett
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

:root {
  --ba-red: #990000;
  --ba-ink: #123821;
  --ba-cream: #FBFAF7;
  --ba-dark: #0A0303;
  --ba-body: #79817C;
  --ba-muted: #889F91;
  --ba-tile: #F1F1F1;
  --ba-panel: #F2F2F2;
}

body, p, .et_pb_text { font-family: "DM Sans", Helvetica, Arial, sans-serif; color: var(--ba-body); }
h1, h2, h3, h4, h5, h6 { font-family: "DM Sans", Helvetica, Arial, sans-serif; }
a { text-decoration: none; }

/* ---------- Shared section furniture ---------- */
.ba-eyebrow h3 { color: var(--ba-red) !important; font-size: 16px !important; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; padding-bottom: 0; }
.ba-section-title h2 { color: var(--ba-ink) !important; font-size: 50px !important; font-weight: 700; line-height: 1.15; padding-bottom: 6px; }
.ba-title-sm h2 { font-size: 44px !important; }
.ba-subhead h3 { color: var(--ba-red) !important; font-size: 18px !important; font-weight: 700; line-height: 1.4; }
.ba-center h2, .ba-center h3, .ba-center p { text-align: center; }

/* ---------- Header (overlays the hero, like the source) ---------- */
.et-l--header { position: absolute; top: 0; left: 0; right: 0; z-index: 9999; }
body.admin-bar .et-l--header { top: 32px; }
.ba-header { background: transparent !important; }
.ba-header .ba-header-row { border-bottom: 1px solid rgba(255,255,255,0.35); align-items: center; }
.ba-header .et_pb_menu__menu > nav > ul > li > a { color: #fff !important; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; font-weight: 500; }
.ba-header .et_pb_menu__menu > nav > ul > li > a:hover { color: var(--ba-red) !important; opacity: 1; }
.ba-header .et_pb_menu .et-menu > li { padding-left: 14px; padding-right: 14px; }
.ba-header .et_pb_menu_inner_container { justify-content: flex-end; }
.ba-header .et_pb_row { padding-top: 0 !important; }
.ba-header .ba-logo { margin-bottom: 0 !important; }
.ba-header .et_mobile_nav_menu { float: right; }
.ba-header .et_mobile_menu { background: var(--ba-dark); }
.ba-header .et_mobile_menu a { color: #fff !important; }

/* ---------- Hero ---------- */
.ba-hero .et_pb_fullwidth_header { position: relative; }
.ba-hero .et_pb_fullwidth_header:before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%); z-index: 0; }
.ba-hero .et_pb_fullwidth_header_container { position: relative; z-index: 1; max-width: 1180px; }
.ba-hero h1 { font-size: 80px !important; font-weight: 600; color: #fff !important; letter-spacing: -1px; line-height: 1.1; }
.ba-hero .et_pb_button_one, .ba-hero .et_pb_button_two { border-radius: 39px !important; padding: 11px 26px !important; font-size: 15px; font-weight: 500; border: none !important; transition: all .25s ease; }
.ba-hero .et_pb_button_one { background: var(--ba-red) !important; color: #fff !important; }
.ba-hero .et_pb_button_two { background: #fff !important; color: var(--ba-red) !important; }
.ba-hero .et_pb_button_one:hover { background: #7a0000 !important; }
.ba-hero .et_pb_button_one:after, .ba-hero .et_pb_button_two:after { display: none !important; }

/* ---------- About ---------- */
.ba-about .et_pb_text { margin-bottom: 10px; }

/* ---------- Services ---------- */
.ba-services { background-image: linear-gradient(rgba(244,243,237,0.88) 60%, rgb(255,255,255) 60%), url("https://aigrunt.net/wp-content/uploads/2026/09/services.jpg") !important; background-size: cover, cover !important; background-position: 50% 54%, 50% 54% !important; background-repeat: no-repeat, no-repeat !important; }
.ba-services .et_pb_column { padding: 5px; }
.ba-card { background: #fff; padding: 15px 15px 30px; box-shadow: 0 2px 18px rgba(0,0,0,0.1); height: 100%; }
.ba-card .et-pb-icon { opacity: 1 !important; animation: none !important; transform: none !important; color: var(--ba-red) !important; }
.ba-card .et_pb_main_blurb_image { margin-bottom: 14px; text-align: left; }
.ba-card .et_pb_blurb_content { text-align: left; max-width: 100%; }
.ba-card .et_pb_module_header { color: #000 !important; font-size: 20px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; line-height: 1.25; padding-bottom: 8px; }
.ba-card-sub h4 { color: var(--ba-red) !important; font-size: 16px !important; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.ba-card-copy { position: relative; max-height: 132px; overflow: hidden; transition: max-height .35s ease; }
.ba-card-copy p { font-size: 14px; line-height: 1.6; }
.ba-card-copy.is-open { max-height: 2200px; }
.ba-card-copy:not(.is-open):after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.ba-readmore { display: inline-block; margin-top: 16px; color: var(--ba-red) !important; font-weight: 700; font-size: 14px; cursor: pointer; }
.ba-readmore:hover { text-decoration: underline; }

/* ---------- Leadership ---------- */
.ba-team .et_pb_text { margin-bottom: 6px; }
.ba-team-photo { position: relative; display: block; }
.ba-team-photo .et_pb_image_wrap { position: relative; z-index: 1; }
.ba-team-photo .et_pb_image_wrap { position: relative; display: inline-block; }
.ba-team-photo .et_pb_image_wrap:after { content: ""; position: absolute; top: 22px; right: -24px; width: 24px; height: 100%; background: var(--ba-red); z-index: 0; }
.ba-team-photo .et_pb_image_wrap img { position: relative; z-index: 1; }
.ba-team-name h2 { color: var(--ba-ink) !important; font-size: 24px !important; font-weight: 700; padding-bottom: 2px; }
.ba-team-role h3 { color: var(--ba-red) !important; font-size: 18px !important; font-weight: 700; letter-spacing: 0.4px; }
.ba-team .et_pb_column p { font-size: 14px; line-height: 1.7; }

/* ---------- Manufacturers ---------- */
.ba-logo-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; align-content: start; }
.ba-logo-grid .et_pb_module { margin-bottom: 0 !important; }
.ba-logo-tile { background: var(--ba-tile); display: flex !important; align-items: center; justify-content: center; min-height: 150px; padding: 20px; }
.ba-logo-tile .et_pb_image_wrap { display: flex; align-items: center; justify-content: center; }
.ba-logo-tile img { max-height: 90px; width: auto !important; object-fit: contain; }

/* ---------- Contact ---------- */
.ba-contact { position: relative; background: #ffffff !important; }
.ba-contact:before { content: ""; position: absolute; top: 0; right: 0; width: 52%; height: 68%; background: var(--ba-red); z-index: 0; }
.ba-contact > .et_builder_inner_content, .ba-contact .et_pb_row { position: relative; z-index: 2; }
.ba-contact > .et_pb_row { background: var(--ba-panel); padding: 50px 50px 14px !important; }
.ba-contact .ba-contact-plane { margin-top: -140px; position: relative; z-index: 4; }
.ba-contact .ba-contact-plane img { max-width: 260px; }
.ba-contact .nf-form-fields-required { display: none; }
.ba-contact .nf-field-container { margin-bottom: 16px; }
.ba-contact .nf-field-element input, .ba-contact .nf-field-element select, .ba-contact .nf-field-element textarea { background: #fff !important; border: 1px solid #DCDCDC !important; border-radius: 3px !important; padding: 12px 14px !important; font-family: "DM Sans", sans-serif; font-size: 15px; color: #333; }
.ba-contact .nf-field-element textarea { min-height: 150px; }
.ba-contact .submit-container input, .ba-contact input[type=button] { background: var(--ba-red) !important; color: #fff !important; border: none !important; border-radius: 30px !important; padding: 11px 36px !important; font-weight: 600; width: auto !important; }

/* ---------- Footer ---------- */
.ba-footer { background: var(--ba-dark) !important; }
.ba-footer h4 { color: #fff !important; font-size: 19px !important; padding-bottom: 6px; }
.ba-footer h4 a { color: var(--ba-muted) !important; font-size: 16px; font-weight: 400; }
.ba-footer h4 a:hover { color: #fff !important; }
.ba-footer p { color: var(--ba-muted) !important; }
.ba-footer-tag h4 { color: #fff !important; font-weight: 600; font-size: 17px !important; }
.ba-footer .et_pb_menu__menu > nav > ul > li > a { color: var(--ba-muted) !important; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.ba-footer .et_pb_menu__menu > nav > ul > li > a:hover { color: #fff !important; opacity: 1; }
.ba-footer .et_pb_menu__menu > nav > ul { flex-direction: column; }
.ba-copyright p { color: var(--ba-muted) !important; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ba-hero h1 { font-size: 60px !important; }
}
@media (max-width: 980px) {
  .ba-hero h1 { font-size: 46px !important; }
  .ba-section-title h2, .ba-title-sm h2 { font-size: 34px !important; }
  .ba-team-photo:before { display: none; }
  .ba-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-contact { background-image: none !important; background: #fff !important; }
  .ba-contact > .et_pb_row { padding: 34px 24px 14px !important; }
  .ba-contact .ba-contact-plane { margin-top: 10px; }
  .et-l--header { position: relative; background: var(--ba-dark); }
}
@media (max-width: 767px) {
  .ba-hero h1 { font-size: 34px !important; }
  .ba-section-title h2, .ba-title-sm h2 { font-size: 28px !important; }
  .ba-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-card-copy { max-height: none; }
  .ba-card-copy:not(.is-open):after { display: none; }
  .ba-readmore { display: none; }
}

/* ---------- Additions: icon font + equal-height cards ---------- */
.ba-card .et-pb-icon { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
.ba-services .et_pb_row_1, .ba-services .et_pb_row:nth-of-type(2) { display: flex; flex-wrap: wrap; align-items: stretch; }
.ba-services .et_pb_row:nth-of-type(2) .et_pb_column { display: flex; flex-direction: column; float: none; }
.ba-services .et_pb_row:nth-of-type(2) .et_pb_column > .ba-card { flex: 1 1 auto; display: flex; flex-direction: column; }
.ba-services .et_pb_row:nth-of-type(2) .et_pb_column > .ba-card .et_pb_blurb_content { display: flex; flex-direction: column; height: 100%; }
.ba-services .et_pb_blurb_description { display: flex; flex-direction: column; flex: 1 1 auto; }

/* ---------- Additions: footer detail + Ninja Form layout ---------- */
.ba-footer .et_pb_text h4 { color: var(--ba-muted) !important; font-size: 16px !important; font-weight: 400; padding-bottom: 2px; }
.ba-footer .et_pb_text h4:first-child { color: #fff !important; font-size: 19px !important; font-weight: 600; padding-bottom: 10px; }
.ba-contact .nf-form-title { display: none; }
.ba-contact .nf-field-label { display: none; }
.ba-contact .nf-form-content { padding: 0; max-width: 100%; }
.ba-contact .one-half { width: 49% !important; float: left !important; clear: none !important; }
.ba-contact .one-half.last { float: right !important; clear: none !important; }
.ba-contact .nf-field-container.one-half { margin-right: 0; }
.ba-contact .nf-field-container.one-half.last { margin-right: 0; }
.ba-contact .nf-error-msg { font-size: 12px; }

/* ---------- Additions: Ninja Forms two-column rows ---------- */
.ba-contact .nf-field-container { clear: none !important; }
.ba-contact .nf-field-container.textarea-container, .ba-contact .nf-field-container.submit-container { clear: both !important; width: 100% !important; float: none !important; }
.ba-contact .nf-form-content { overflow: hidden; }
.ba-contact .listselect-container .nf-field-element select { height: 48px; }
.ba-contact .nf-field-element input[type=text], .ba-contact .nf-field-element input[type=email], .ba-contact .nf-field-element input[type=tel] { width: 100%; }

/* ---------- Additions: unwrap Ninja Forms custom elements so floats line up ---------- */
.ba-contact nf-fields-wrap { display: block; }
.ba-contact .nf-form-fields-required { display: none !important; }

/* ---------- Additions: flex two-column form (final) ---------- */
.ba-contact nf-fields-wrap { display: flex !important; flex-wrap: wrap; justify-content: space-between; }
.ba-contact nf-field { display: block; width: 100%; }
.ba-contact nf-field:has(.one-half) { width: 49%; }
.ba-contact .nf-field-container, .ba-contact .nf-field-container.one-half { width: 100% !important; float: none !important; }
.ba-contact .nf-field-container.textarea-container, .ba-contact .nf-field-container.submit-container { width: 100% !important; }

/* form controls box-sizing */
.ba-contact .nf-field-element input, .ba-contact .nf-field-element select, .ba-contact .nf-field-element textarea { box-sizing: border-box !important; max-width: 100%; }
