/*
Theme Name: Tangy Media BB Child Theme
Theme URI: https://www.tangymedia.co.uk
Version: 1.3
Description: A custom theme optimised for Beaver Builder by Tangy Media.
Author: Tangy Media
Author URI: https://www.tangymedia.co.uk
template: bb-theme
*/


/* Large */@media only screen and (max-width: 1300px) {}
/* Medium */@media only screen and (max-width: 1100px) {}
/* Small */@media only screen and (max-width: 768px) {}
/* Small */@media only screen and (max-width: 768px) {.splide__arrows { display:none !important;}}


/* TEXT this is a change */

/* Remove Chrome focus outline (not generally recommended for accessibility) */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
	outline: none;
	box-shadow: none;
}


/* COLOURS */

.green { color:#028f7e;}
.blue { color:#028f7e;}

.project-link:hover .project-title { color:#028f7e; text-decoration:none;}
.project-link,
.project-link:hover,
.project-link:focus,
.project-link:active {
  text-decoration:none;
}

.project-link .project-title,
.project-link:hover .project-title,
.project-link:focus .project-title,
.project-link:active .project-title {
  text-decoration:none;
}

.facetwp-radio:hover { color:#028f7e;}

/* BUTTONS */

.back-button{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:600;cursor:pointer}
.back-button:hover{opacity:.7}

/* HEADER */
.site-logo-white {position:sticky;top:20px;left:20px;z-index:999;}
.site-logo-white a{display:inline-flex;align-items:center;padding:10px 12px;border-radius:14px;transition:background .25s ease,box-shadow .25s ease;}
.site-logo-white img{display:block;height:auto;}
.site-logo-white.is-sticky a{background:rgba(53,75,94,.50);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 8px 24px rgba(0,0,0,.18);}


.menu-toggle-white .fl-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;border-radius:14px;}
.menu-toggle-white .fl-icon-wrap::before{content:'';position:absolute;inset:0;background:rgba(53,75,94,.50);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-radius:14px;opacity:0;transition:opacity .25s ease;z-index:-1;box-shadow:0 8px 24px rgba(0,0,0,.18);}
.menu-toggle-white.is-sticky .fl-icon-wrap::before{opacity:1;}

.menu-toggle-white .fl-icon-wrap{transition:transform .25s ease;}
.is-sticky .menu-toggle-white .fl-icon-wrap{transform:scale(.97);}
.is-sticky .menu-toggle-white .fl-icon-wrap i{color:#fff;}

.menu-toggle:hover {cursor:pointer !important;}


.site-logo-blue {position:sticky;top:20px;left:20px;z-index:999;}
.site-logo-blue a{display:inline-flex;align-items:center;padding:10px 12px;border-radius:14px;transition:background .25s ease,box-shadow .25s ease;}
.site-logo-blue img{display:block;height:auto;}
.site-logo-blue.is-sticky a{background:rgba(255,255,255,0.005);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px); }


.menu-toggle-blue .fl-icon-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;border-radius:14px;}
.menu-toggle-blue .fl-icon-wrap::before{content:'';position:absolute;inset:0;background:rgba(255,255,255,0.005);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border-radius:14px;opacity:0;transition:opacity .25s ease;z-index:-1; }
.menu-toggle-blue.is-sticky .fl-icon-wrap::before{opacity:1;}

.menu-toggle-blue .fl-icon-wrap{transition:transform .25s ease;}
.is-sticky .menu-toggle-blue .fl-icon-wrap{transform:scale(.97);}
.is-sticky .menu-toggle-blue .fl-icon-wrap i{color:#fff;}


.off-canvas-logo { position:absolute; bottom:0; right:0; max-width:140px;}

/* FOOTER */

/* PAGES */
iframe { border-radius:8px !important;}

/* BB MODULES*/
.full-bleed-with-contained-text .fl-module-heading { max-width:1260px; margin-left:auto; margin-right:auto; padding-left:20px; padding-right:20px; text-align:left; }


.full-bleed-with-contained-text .fl-module-heading, .full-bleed-with-contained-text  .fl-rich-text { max-width:1260px; margin-left:auto; margin-right:auto; padding-left:20px; padding-right:20px; width:100%; }
 

 

.latest-news-loop .swiper-button-prev { left:10px !important; display:none; }

.latest-news-loop .swiper-button-next { right:10px !important; display:none; }

/* TEAM  */
.team-members-wrap { max-width:1200px; margin:0 auto; padding:40px 20px; }
.team-member-row { display:grid; grid-template-columns:minmax(280px, 420px) minmax(320px, 1fr); gap:60px; align-items:center; margin:0 0 110px 0; }
.team-member-row--reverse { grid-template-columns:minmax(320px, 1fr) minmax(280px, 420px); }
.team-member-row--reverse .team-member-image { order:2; }
.team-member-row--reverse .team-member-content { order:1; }
.team-member-image img { display:block; width:100%; aspect-ratio:1 / 1; object-fit:cover; border-radius:6px; }
.team-member-content { max-width:560px; }
.team-member-name { margin:0 0 6px 0; font-size:34px; line-height:1.1; font-weight:700; color:#1f3850; }
.team-member-role { margin:0 0 18px 0; font-size:17px; line-height:1.3; font-weight:600; color:#1f3850; }
.team-member-icons { display:flex; gap:12px; align-items:center; margin:0 0 22px 0; }
.team-member-icons a { display:inline-flex; align-items:center; justify-content:center; font-size:16px; color:#00a99d; text-decoration:none; transition:opacity 0.2s ease, transform 0.2s ease; }
.team-member-icons a:hover { opacity:0.75; transform:translateY(-1px); }
.team-member-bio { font-size:16px; line-height:1.8; color:#4c5b6b; }
.team-member-bio p { margin:0 0 18px 0; }
.team-member-bio p:last-child { margin-bottom:0; }

@media (max-width: 991px) {
  .team-member-row, .team-member-row--reverse { grid-template-columns:1fr; gap:30px; margin:0 0 80px 0; }
  .team-member-row--reverse .team-member-image, .team-member-row--reverse .team-member-content { order:initial; }
  .team-member-content { max-width:none; }
  .team-member-name { font-size:28px; }
}

@media (max-width: 767px) {
  .team-members-wrap { padding:30px 20px; }
  .team-member-row { gap:24px; margin:0 0 60px 0; }
  .team-member-name { font-size:24px; }
  .team-member-role { font-size:16px; margin:0 0 14px 0; }
  .team-member-bio { font-size:15px; line-height:1.7; }
}


/* NEWS */
.latest-news-carousel .pp-content-grid-post-image { padding:0;}

.fl-builder-pagination li a.page-numbers, .fl-builder-pagination li span.page-numbers { border-radius:4px; padding:5px 15px;}
.fl-builder-pagination li span.current, .fl-builder-pagination li a.page-numbers { background-color:white;}


/* OFF CANVAS MENU */

.splide { position:relative; }
.splide__arrows { position:absolute; top:-6rem; right:1rem; left:auto; display:flex; gap:0.5rem; z-index:5; }
.splide__arrow { position:static !important; top:auto !important; left:auto !important; right:auto !important; bottom:auto !important; transform:none !important; margin:0 !important; }
.splide__track { padding-top:3rem; }

.splide__arrow { background:transparent; border:2px solid #354B5E; color:#354B5E; width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.splide__arrow svg { fill:currentColor; }
.splide__arrow:hover { background:#009987; border-color:#009987; color:#ffffff; }
.splide__arrow:active, .splide__arrow:focus { background:transparent;  border:2px solid #354B5E; color:#354B5E; }

.splide__arrow:focus-visible { outline:2px solid #009987; outline-offset:2px; background:#009987; }

.splide__pagination__page.is-active {
	background: #009987;}



.splide .splide__arrow, .splide .splide__arrow:focus, .splide .splide__arrow:active, .splide .splide__arrow:focus-visible { position:absolute; top:50%; transform:translateY(-50%); }
.splide .splide__arrow--prev { left:1rem; }
.splide .splide__arrow--next { right:1rem; }


#splide-example .splide__slide{padding:10px;box-sizing:border-box}
#splide-example .testimonial-card{display:flex;align-items:stretch;min-height:360px;border-radius:8px;overflow:hidden}
#splide-example .testimonial-image{flex:0 0 270px;width:270px}
#splide-example .testimonial-image img{display:block;width:270px;height:100%;object-fit:cover;border-radius:8px 0 0 8px}
#splide-example .testimonial-content{flex:1;background:#fff;padding:22px 26px;border-radius:0 8px 8px 0;display:flex;flex-direction:column;justify-content:space-evenly}
#splide-example .testimonial-text{font-size:15px;line-height:1.7;color:#5f6670}
#splide-example .testimonial-text p{margin:0 0 16px 0}#splide-example .testimonial-text p:last-child{margin-bottom:0}
#splide-example .testimonial-meta{margin:18px 0 0 0;font-size:14px;line-height:1.4;color:#4a5360}
#splide-example .testimonial-meta strong{font-weight:700;color:#243142}

@media (max-width:768px){
#splide-example .testimonial-card{flex-direction:column;min-height:auto}
#splide-example .testimonial-image{width:100%;flex:none}
#splide-example .testimonial-image img{width:100%;height:400px;border-radius:8px 8px 0 0}
#splide-example .testimonial-content{border-radius:0 0 8px 8px}
}

@media(max-width:600px){.testimonial-slide{flex-direction:column;align-items:center;text-align:center}.testimonial-image img{margin-bottom:0px}}

.splide__pagination {
	bottom: -3em;
	left: 0;
	padding: 0 1em;
	position: absolute;
	right: 0;
	z-index: 1;
}
 
.projects-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:80px 80px;list-style:none;padding:0;margin:0;grid-auto-flow:dense;}
.project-card{grid-column:span 6;}
.project-card.tile--half{grid-column:span 6;  }
.project-card.tile--full{grid-column:span 12;}
.project-card.tile--long{grid-column:span 8;}
.project-card.tile--short{grid-column:span 4;}

@media(max-width:992px){
.projects-grid{grid-template-columns:1fr;gap:40px;}
.project-card,.project-card.tile--half,.project-card.tile--full,.project-card.tile--long,.project-card.tile--short{grid-column:auto;grid-row:auto;min-width:0;}
}

@media(max-width:480px){
.projects-grid{gap:30px;}
}

.project-intro-link{display:inline-flex;align-items:center;gap:8px;margin-top:10px;text-decoration:none;font-weight:500;}
.project-intro-link i{font-size:0.9em;transition:transform .2s ease;}
.project-intro-link:hover i{transform:translateX(4px);}

.project-image img { border-radius:8px;}

.facetwp-facet-project_category{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px; border-radius:0;font-size:14px;line-height:1;}
.facetwp-facet-project_category::before{content:"\f0b0";font-family:"Font Awesome 6 Pro";font-weight:300;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:#4d6377;font-size:14px;pointer-events:none;margin-right:2px;}
.facetwp-facet-project_category .facetwp-checkbox{margin:0 !important;padding:8px 14px;background:transparent;border-radius:20px;color:#4d6377;font-weight:500;line-height:1;cursor:pointer;transition:all 0.2s ease;display:inline-flex;align-items:center;min-height:34px;background-image:none !important;}
.facetwp-facet-project_category .facetwp-checkbox:hover{background:#e7edf2;color:#243746;}
.facetwp-facet-project_category .facetwp-checkbox.checked{background:#ffffff;color:#243746;box-shadow:0 1px 2px rgba(0,0,0,0.06);}
.facetwp-facet-project_category .facetwp-counter{display:none;}
.facetwp-facet-project_category .facetwp-display-value{font-size:14px;line-height:1;}
@media (max-width:767px){.facetwp-facet-project_category{gap:8px;padding:10px;}.facetwp-facet-project_category .facetwp-checkbox{padding:7px 12px;font-size:13px;min-height:32px;}}

.facetwp-template.fwpfading{opacity:0.35;transform:translateY(8px);transition:opacity 0.25s ease,transform 0.25s ease;}
.facetwp-template > *{opacity:0;transform:translateY(18px);}
.facetwp-template > *.fwp-animate-in{opacity:1;transform:translateY(0);transition:opacity 0.45s ease,transform 0.45s ease;}

.facetwp-type-radio .facetwp-radio{background:none !important;padding-left:14px !important;}
.facetwp-type-radio .facetwp-radio.checked{background:none !important;}

.facetwp-facet-project_category{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;text-align:center;}

.projects-grid.is-filtered .project-card,.projects-grid.is-filtered .project-card.tile--half,.projects-grid.is-filtered .project-card.tile--full,.projects-grid.is-filtered .project-card.tile--long,.projects-grid.is-filtered .project-card.tile--short{grid-column:span 6;grid-row:auto;}
@media(max-width:992px){.projects-grid.is-filtered .project-card,.projects-grid.is-filtered .project-card.tile--half,.projects-grid.is-filtered .project-card.tile--full,.projects-grid.is-filtered .project-card.tile--long,.projects-grid.is-filtered .project-card.tile--short{grid-column:span 12;}}

.project-card{transition:grid-column .35s ease,transform .35s ease;}
.project-card{transition:transform .25s ease;}
.project-card:hover{transform:translateY(-4px);}
.projects-grid{grid-auto-flow:dense;}

/* NINJA FORMS */
.nf-form-fields-required { display:none !important; } 
.nf-error.field-wrap .nf-field-element:after { background: black !important; color: #fff; font-family: FontAwesome; font-size: 11px !important; content: "\f12a"; position: absolute; top: 1px; right: 1px; bottom: 1px; height: 20px !important; width: 20px !important; line-height: 20px !important; text-align: center; transition: all .5s; } 

body .nf-error .ninja-forms-field { border-color: black !important; transition: all .5s; } 

.checkbox-wrap .nf-field-element label:before, .checkbox-wrap .nf-field-label label:before, .listcheckbox-wrap .nf-field-element label:before, .listcheckbox-wrap .nf-field-label label:before { color: red; content: "\f00c"; font-family: "Font Awesome 6 Pro", sans-serif !important; font-size: 14px !important; position: absolute; font-weight:400 !important; bottom: 0; z-index: 2; }

.checkbox-container.label-right label:before { left: -26px !important; top: 0; } 

.pp-ninja-form-content .ninja-forms-form-wrap .field-wrap { list-style-type: none !important; margin-bottom: 15px !important; } 

.pp-ninja-form-content .ninja-forms-form-wrap textarea { height: 100px !important; margin-bottom: 15px !important; }


/* TEST */

/* WOOCOMMERCE .latest-news-loop  */




