/*
Theme Name: TBM 2026
Description: TBM 2026 theme
Version: 1.0
Author: Andy
*/

/* General styles                                   */
/* ------------------------------------------------ */

/* fix issues with the WP admin bar messing with sticky/absolute header items */
body.admin-bar #branding-wrap{ top: 28px; }
body.admin-bar #wrapper{ margin-top: 145px; }

td {
	vertical-align: top;
}

a {
	color: var(--secondary);
	text-decoration: underline;
	outline: none;
}

a:hover {
	color: var(--secondary);
}

ul {
	margin: 8px 0 18px 18px;
	padding: 0;
}

li {
	padding-left: 4px;
	line-height: 180%;
}

h1, h1 a, h2, h2 a, h3, h3 a, h4, h4 a {
	font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    line-height: 120%;
    color: var(--main);
    margin: 0;
}

h1 {
	font-size: 2.6em;
	margin-top: 0;
}

h2 {
	font-size: 2.2em;
}

h3 {
	font-size: 1.8em;
}

h4 {
    font-size: 1.4em;
}

hr {
	height: 4px;
	border: 0;
	width: 100%;
	background: var(--secondary);
	color: var(--secondary);
	margin: 30px 0;
    clear: both;
}

.subheader {
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.2em;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
    line-height: 120%;
}

.subheader-link {
    text-decoration: none;
}

.subheader-link:hover {
    text-decoration: underline;
}

/* Content                                          */
/* ------------------------------------------------ */
.content {
	padding: 30px 0 100px 0;
	overflow: hidden;
	font-size: 1.1em;
	min-height: 200px;
    clear: both;
}

.content, .content p, .content li {
	line-height: 160%;
}

.content a {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* HOMEPAGE PANELS --------------------------------- */
/*.homepage-services {
    background: #eef1f5 url(images/watermark.png) right -100px no-repeat;
    background-size: 1100px;
    padding: 80px 0;
    margin: 60px 0 0 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}*/

.homepage-services {
    background: #f5f5f5 url(images/watermark.png) right -100px no-repeat;
    background-size: 1100px;
    padding: 80px 0;
    margin: 60px 0 0 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
    overflow: hidden;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease-in-out;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card-body {
    padding: 24px;
}

.service-card a {
    text-decoration: none;
}

.service-icon {
    background: var(--third);
    width: 40px;
    height: 40px;
    border-radius: 3px;
    background-size: 70%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    margin-bottom: 10px;
}

.icon-skyscraper {
    background-image: url(images/building.svg);
}

.icon-map {
    background-image: url(images/map_search.svg);
}

.icon-analytics {
    background-image: url(images/analytics.svg);
}

.homepage-news h2 {
    margin: 0 0 40px 0;
    text-align: center;
}

.allnewslink {
    text-align: center;
    text-decoration: none;
    margin: 50px 0 0 0;
}

/* PHOTO BAND -------------------------- */
.photo-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 320px;
    margin-bottom: 70px;
}

.photo-band-item {
    position: relative;
    overflow: hidden;
}

.photo-band-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.photo-band-item:hover img {
    transform: scale(1.03);
}

.owl-carousel:not(.owl-drag) ~ .navigation {
    display: none !important;
}

.photo-band-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.photo-band-label .subheader {
    color: #fff;
}

.homepage-project-carousel, #owl1, .photo-band-item {
    height: 320px !important;
    overflow: hidden;
}

.homepage-project-carousel {
    margin-bottom: 70px !important;
}

.credentials-box {
    background: var(--header);
    padding: 36px;
}

.credentials-box h3 {
    color: #fff;
    margin-bottom: 20px;
}

.credentials-box .section-label {
    color: #7ba3d4;
}

.credential-item {
    border-left: 6px solid var(--main);
    padding: 0px 0 0px 16px;
    margin-bottom: 18px;
}

.credential-item a {
    text-decoration: none;
}

.credential-desc {
    color: #e8eff8;
    line-height: 1.45;
}

.expertise-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.expertise-list li {
    position: relative;
    padding: 11px 0 11px 26px;
    border-bottom: 1px solid rgba(13,42,94,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.expertise-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 22px;
    height: 22px;
    background-image: url('images/check.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

#detail-grid {
    margin: 50px 0;
    padding: 0 40px;
}

#detail-grid .column-half {
    background: #fff;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
    border-top: 6px solid var(--main);
    padding: 22px 24px;
}

#detail-grid a {
    text-decoration: none;
}

#detail-grid a:hover {
    transform: scale(1.05);
}

/* QUOTE BAND */
.quote-band {
    background: var(--main);
    padding: 52px 40px;
    text-align: center;
}

.quote-band blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.45;
}


/* CTA */
.contact-strip .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.contact-strip .text-group {
    flex: 1;
}

.contact-strip h3, .contact-strip p {
    color: #fff;
}

.contact-strip p {
    /*opacity: 0.7;*/
    color: var(--main);
}

.contact-strip .wrapper div {
    text-align: left;
}

.readmore, input[type="submit"] {
	background: var(--main);
	color: #fff;
	padding: 14px 26px;
	text-decoration: none;
	display: inline-block;
	margin: 15px 0;
	font-size: 12px;
	text-transform: uppercase;
    letter-spacing: 1px;
	font-weight: 500;
	text-shadow: none;
	line-height: 100%;
	border: 0;
	cursor: pointer;
}

.readmore:hover, input[type="submit"]:hover {
	background: var(--header);
	color: #fff;
}


.readmore, .content a, input[type="submit"], #detail-grid a {
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

/*.post-time {
    margin: 0 25px 30px 40px;
    float: right;
    text-align: center;
}*/

.post-time-day {
    color: var(--secondary);
    font-size: 13px;
    display: inline-block;
    margin-top: 10px;
}

.post-time-month {
    color: var(--main);
    font-size: 13px;
    display: inline-block;
}


/* Columns                                          */
/* ------------------------------------------------ */
.columns-container {
    display: grid;
    gap: 40px;
    align-items: stretch;
}

.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.four-columns {
    grid-template-columns: repeat(4, 1fr);
}

.five-columns {
    grid-template-columns: repeat(5, 1fr);
}

.clearfix {
    clear: both;
}

.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    border: 1px solid rgba(13,42,94,0.2);
    padding: 4px 12px;
    font-size: 11px;
    letter-spacing: 0.04em;
    background: #fff;
    text-decoration: none;
}

.tag:hover {
    background: var(--secondary);
    color: #fff;
}

/* Footer                                           */
/* ------------------------------------------------ */
footer {
	font-size: 0.9em;
	padding: 60px 0;
	text-align: center;
	background: var(--header);
    overflow: hidden;
}

footer a, footer, footer p {
	color: #fff;
}

a.scrollup {
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    text-indent: -9999px;
    background: url(images/top.svg) no-repeat;
    background-size: 100%;
    opacity: 0.7;
}

.footer-menu {
    margin-bottom: 50px;
}

.footer-menu ul.menu li a {
    text-transform: none;
    color: #fff;
}

.footer-menu ul.menu li a:hover {
    text-decoration: underline;
}

.footer-menu .linkedin {
    background: url(images/linkedin.svg) left 50% no-repeat;
    padding-left: 10px;
    margin-left: 15px;
    background-size: 20px;
}

#copyright {
    margin-top: 20px;
    opacity: 0.5;
    font-size: smaller;
}

/* Responsive elements                              */
/* ------------------------------------------------ */
@media screen and (max-width: 1500px) {
    .five-columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1000px) {
    .homepage-services {
        background: #eef1f5 url(images/watermark.png) right bottom no-repeat;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .photo-band {
        grid-template-columns: 1fr;
        height: 800px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .five-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .five-columns, .four-columns, .three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .five-columns, .four-columns, .three-columns, .two-columns {
        grid-template-columns: 1fr;
    }
}

/* iOS */
@media screen and (max-width: 380px) {
	#footer img {
		width: 150px;
		height: auto;
	}
}


/* WP Common Styles */
/*figure {
    display: table;
}*/

.wp-block-image figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

figure.wp-block-image {
    margin-left: 0;
    margin-right: 0;
}

figure.wp-block-image img {
    max-width: none !important;
    width: 100%;
    height: auto;
}

.wp-caption {
    width: 100% !important;
}

.aligncenter {
   display: block;
   text-align: center;
   margin: 0 auto;
   padding-bottom: 10px;
}

.alignright {
   text-align: right;
   display: block;
   float: right;
   margin: 10px 0px 5px 15px;
}

.alignleft {
   text-align: left;
   display: block;
   float: left;
   margin: 10px 20px 5px 0px;
}

.wp-caption-text,.wp-caption-dd {
   margin: 0;
   font-weight: bold;
   font-size: smaller;
   text-align: center;
}

.wp-caption {
   margin-right: 5px;
}

.wp-caption img {
	padding-bottom: 5px;
}

.alignleft, .alignright {
	margin-bottom: 20px;
}

.aligncenter, dl.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
}

.alignright {
	float: right;
}


@media screen and (max-width: 600px) {
    img.alignleft, img.alignright {
        float: none;
        display: block;
        margin: 20px auto;
    }
}