/*
Theme Name: Thermal Imaging Services - GeneratePress Child
Theme URI: https://www.thermalimagingservices.com.au/
Description: Legacy-faithful GeneratePress child theme for Thermal Imaging Services.
Author: Digerati migration
Template: generatepress
Version: 0.1.0
Text Domain: tis-child
*/

:root {
    --tis-charcoal: #434242;
    --tis-red: #ee2f40;
    --tis-red-soft: #f06a71;
    --tis-grey: #f5f6f7;
    --tis-border: #b9bfc6;
    --tis-max: 1000px;
}

html { min-height: 100%; }
body {
    margin: 0;
    background: #fff;
    color: var(--tis-charcoal);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

/* Disable GeneratePress chrome: this child theme provides the legacy shell. */
.site-header,
.main-navigation,
.site-footer,
.footer-widgets,
.generate-back-to-top,
.entry-header { display: none !important; }

#page,
.site.grid-container,
.site-content,
.content-area,
#primary,
.inside-article,
.entry-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tis-wrap {
    width: min(var(--tis-max), calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.tis-header { background: #fff; padding-top: 20px; }
.tis-header-top {
    min-height: 145px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}
.tis-logo img { display: block; width: 330px; max-width: 100%; height: auto; }
.tis-contact-cta { text-align: right; padding-top: 10px; }
.tis-contact-cta img { width: 94px; height: auto; vertical-align: middle; }
.tis-phone {
    margin-top: 4px;
    color: var(--tis-charcoal);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
}
.tis-quote-link {
    display: inline-block;
    margin-top: 16px;
    border: 1px solid var(--tis-border);
    background: #fbf9f9;
    color: var(--tis-charcoal);
    padding: 8px 18px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
}
.tis-quote-link:hover { color: var(--tis-red); }

/* Navigation */
.tis-nav-shell { background: var(--tis-charcoal); }
.tis-nav-toggle {
    display: none;
    width: 100%;
    border: 0;
    margin: 0;
    padding: 10px 14px;
    color: #fff;
    background: var(--tis-charcoal);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.tis-primary-menu,
.tis-primary-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tis-primary-menu {
    display: flex;
    width: 100%;
}
.tis-primary-menu > li {
    position: relative;
    flex: 1 1 0;
    text-align: center;
}
.tis-primary-menu > li > a {
    display: block;
    padding: 9px 7px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}
.tis-primary-menu > li:hover > a,
.tis-primary-menu > li.current-menu-item > a,
.tis-primary-menu > li.current-menu-ancestor > a { background: #666667; }
.tis-primary-menu .sub-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid #999898;
    border-top: 0;
    border-radius: 0 0 9px 9px;
    text-align: left;
}
.tis-primary-menu li:hover > .sub-menu { display: block; }
.tis-primary-menu .sub-menu li { position: relative; }
.tis-primary-menu .sub-menu a {
    display: block;
    padding: 7px 12px 7px 25px;
    color: var(--tis-charcoal);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.tis-primary-menu .sub-menu a::before {
    content: "•";
    position: absolute;
    left: 11px;
    color: #999898;
    font-size: 18px;
}
.tis-primary-menu .sub-menu a:hover::before { color: var(--tis-red-soft); }

/* Gutenberg content */
.tis-content-shell { min-height: 420px; }
.entry-content > *:not(.alignfull):not(.alignwide),
.tis-page-content {
    width: min(var(--tis-max), calc(100% - 32px));
    margin-left: auto !important;
    margin-right: auto !important;
}
.entry-content { color: var(--tis-charcoal); }
.entry-content > :first-child { margin-top: 28px; }
.entry-content > :last-child { margin-bottom: 35px; }
.entry-content p { margin-bottom: 14px; }
.entry-content a { color: #0000ee; }
.entry-content h1,
.entry-content h2 {
    color: var(--tis-charcoal);
    font-weight: 600;
}
.entry-content h1 {
    width: min(494px, 100%);
    margin: 20px auto 10px;
    padding: 0 0 20px 30px;
    font-size: 38px;
    background: url('assets/images/h1Background.png') left bottom / auto no-repeat;
}
.entry-content h2 {
    margin: 0 0 8px 20px;
    padding: 22px 0 15px 30px;
    font-size: 30px;
    background: url('assets/images/h2Background.png') left bottom / auto no-repeat;
}
.entry-content h3 {
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--tis-red);
    font-size: 22px;
}
.entry-content .wp-block-table table { width: 100%; }

/* Homepage slider, ready for a Gutenberg Gallery with class: tis-home-slider */
.tis-home-slider {
    position: relative;
    display: block !important;
    width: 100%;
    overflow: hidden;
    margin: 0 !important;
    aspect-ratio: 708 / 380;
    background: #eee;
}
.tis-home-slider > .wp-block-image {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
}
.tis-home-slider > .wp-block-image.is-active { opacity: 1; visibility: visible; z-index: 2; }
.tis-home-slider > .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.tis-slider-prev,
.tis-slider-next {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 62px;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(67,66,66,.70);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.tis-slider-prev { left: 0; }
.tis-slider-next { right: 0; }

/* Home feature cards */
.tis-home-features { margin: 20px auto 30px !important; }
.tis-home-features > .wp-block-column { text-align: center; padding: 5px 28px 15px; }
.tis-home-features > .wp-block-column + .wp-block-column { border-left: 1px solid var(--tis-red); }
.tis-home-features img { max-height: 86px; width: auto; }
.tis-home-features h3 { border: 0; font-size: 23px; font-weight: 400; }
.tis-home-features .wp-block-button__link {
    border-radius: 0;
    background: var(--tis-red-soft);
    color: #fff;
    padding: 6px 14px;
    font-weight: 700;
}

/* Forms */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content textarea,
.entry-content select {
    width: 100%;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    padding: 10px;
    font: inherit;
}
.entry-content textarea { min-height: 130px; resize: vertical; }
.entry-content input[type="submit"],
.entry-content button[type="submit"] {
    display: inline-block;
    min-width: 180px;
    border: 0;
    border-radius: 3px;
    background: var(--tis-red-soft);
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Footer */
.tis-footer {
    margin-top: 35px;
    padding: 20px 0 25px;
    background: #fff;
    color: var(--tis-charcoal);
    font-size: 12px;
}
.tis-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 0;
}
.tis-footer-left { padding-right: 25px; }
.tis-footer-middle {
    min-height: 120px;
    border-left: 1px solid #959595;
    border-right: 1px solid #959595;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
}
.tis-footer-middle .trade { width: 90px; height: auto; }
.tis-footer-middle .auspta { width: 90px; height: auto; }
.tis-footer-right { text-align: center; padding-left: 25px; }
.tis-footer-right .aindt { width: 245px; max-width: 100%; height: auto; }
.tis-digerati { display: block; width: 75px; margin: 16px 0 0 auto; }

@media (max-width: 767px) {
    .tis-wrap { width: min(100% - 24px, var(--tis-max)); }
    .tis-header { padding-top: 12px; }
    .tis-header-top { min-height: 0; display: block; text-align: center; padding-bottom: 14px; }
    .tis-logo img { width: 280px; margin: 0 auto; }
    .tis-contact-cta { text-align: center; padding-top: 14px; }
    .tis-phone { font-size: 21px; }
    .tis-nav-toggle { display: block; }
    .tis-primary-menu { display: none; flex-direction: column; }
    .tis-nav-shell.is-open .tis-primary-menu { display: flex; }
    .tis-primary-menu > li { width: 100%; }
    .tis-primary-menu .sub-menu {
        display: block !important;
        position: static;
        min-width: 0;
        border: 0;
        border-radius: 0;
        text-align: center;
    }
    .tis-primary-menu .sub-menu a { padding: 6px 10px; border-bottom: 1px solid #ddd; }
    .tis-primary-menu .sub-menu a::before { display: none; }
    .entry-content h1 { padding-left: 24px; font-size: 30px; }
    .entry-content h2 { margin-left: 0; padding-left: 24px; font-size: 25px; }
    .tis-home-features > .wp-block-column { border-left: 0 !important; border-top: 1px solid var(--tis-red); padding-top: 20px; }
    .tis-home-features > .wp-block-column:first-child { border-top: 0; }
    .tis-footer-grid { grid-template-columns: 1fr; text-align: center; }
    .tis-footer-left, .tis-footer-right { padding: 15px 0; }
    .tis-footer-middle { border: 0; border-top: 1px solid #959595; border-bottom: 1px solid #959595; }
    .tis-digerati { margin: 15px auto 0; }
}


/* Homepage hero */
.tis-hero-columns {
	gap: 0;
	margin-bottom: 20px;
}

.tis-requirements {
	padding: 45px 25px 20px;
	text-align: center;
}

.tis-requirements h3 {
	margin-bottom: 10px;
}

.tis-slider-column {
	min-width: 0;
}

/* Slider */
.tis-home-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 708 / 310;
	background: #eee;
}

.tis-home-slider img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease;
}

.tis-home-slider img:first-child,
.tis-home-slider img.is-active {
	opacity: 1;
	visibility: visible;
}

/* Three homepage panels */
.tis-feature-panels {
	margin: 10px 0 40px;
	text-align: center;
}

.tis-feature-panels > .wp-block-column {
	padding: 20px;
	border-right: 1px solid #ef626c;
}

.tis-feature-panels > .wp-block-column:last-child {
	border-right: 0;
}

.tis-feature-panels h3 {
	margin-bottom: 12px;
}

@media (max-width: 768px) {
	.tis-hero-columns {
		display: block;
	}

	.tis-requirements {
		padding: 20px;
	}

	.tis-feature-panels > .wp-block-column {
		border-right: 0;
		border-bottom: 1px solid #ef626c;
	}

	.tis-feature-panels > .wp-block-column:last-child {
		border-bottom: 0;
	}
}

.tis-home-slider img.is-active {
	opacity: 1;
	visibility: visible;
}

.tis-feature-icon {
	height: 105px;
	margin: -5px auto 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tis-feature-icon img {
	width: auto;
	max-width: 105px;
	max-height: 105px;
	object-fit: contain;
}

/* Homepage feature links */
.tis-view-all {
	margin-top: 14px;
}

.tis-view-all a {
	display: inline-block;
	background: #ef626c;
	color: #fff !important;
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	padding: 9px 22px;
	text-decoration: none;
}

.tis-view-all a:hover {
	background: #444;
	color: #fff !important;
}
.page:not(.home) .site-main {
    margin-top: 0 !important;
}

.page:not(.home) .tis-page-content {
    margin-top: 0 !important;
}

.page:not(.home) .tis-page-content > .wp-block-group__inner-container {
    padding-top: 25px !important;
}

.page:not(.home) .tis-page-content h1:first-child {
    margin-top: 0 !important;
}

.tis-nav-shell {
    margin-top: 25px;
}