/*
Theme Name: T.G.S Installation
Description: Custom theme for T.G.S Installation Management LLC. English and Spanish pages, project gallery, quote form and contact settings. Activating it builds the site's pages once.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tgs
*/

:root {
	--orange: #e8541a;
	--orange-dark: #cf4712;
	--ink: #1c2123;
	--ink-soft: #4b5357;
	--muted: #7b8387;
	--line: #dedcd6;
	--paper: #f6f5f2;
	--white: #fff;
	--dark: #1e2426;
	--content: 1176px;
	--gutter: 32px;
	--pad: max(var(--gutter), calc((100% - var(--content)) / 2));
	--arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-weight: 800; }
h3 { font-weight: 700; }
p, ul, figure { margin: 0; }
[id] { scroll-margin-top: 92px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.tgs-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.tgs-skip:focus { left: 8px; }
.tgs-wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.tgs-sec { padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.tgs-lead { font-size: 18px; color: var(--ink-soft); }

/* Buttons: the orange button, and the underlined text link (className tgs-link) */
.tgs-btn,
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 12px; background: var(--orange); color: #fff; font: 600 14px/1.2 Inter, sans-serif; padding: 15px 26px; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; transition: background .2s; }
.tgs-btn:hover,
.wp-block-button .wp-block-button__link:hover { background: var(--orange-dark); color: #fff; }
.tgs-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.wp-block-button .wp-block-button__link::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .2s; }
.tgs-btn:hover svg,
.wp-block-button .wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button.tgs-link .wp-block-button__link { background: none; color: inherit; padding: 0 0 4px; border-bottom: 1.5px solid currentColor; gap: 10px; }
.wp-block-button.tgs-link .wp-block-button__link:hover { background: none; color: var(--orange); }
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 34px; }

/* Header */
.tgs-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 242, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .tgs-header { top: 32px; }
.tgs-nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.tgs-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.tgs-mark, .tgs-logo-img { width: 46px; height: 46px; flex: none; object-fit: contain; }
.tgs-logo-text strong { display: block; font-family: Manrope, sans-serif; font-weight: 800; font-style: italic; font-size: 24px; letter-spacing: .06em; color: var(--orange); line-height: 1; }
.tgs-logo-text > span { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: 5px; }
.tgs-nav-links { display: flex; gap: 36px; font-size: 14px; font-weight: 500; }
.tgs-nav-links a, .tgs-mobile-links a, .tgs-foot-links a { text-decoration: none; }
.tgs-nav-links a:hover, .tgs-nav-links a[aria-current] { color: var(--orange); }
.tgs-nav-right { display: flex; align-items: center; gap: 24px; }
.tgs-nav-cta { padding: 12px 22px; }
.tgs-lang { display: flex; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tgs-lang a { text-decoration: none; padding: 2px; }
.tgs-lang a:hover { color: var(--ink); }
.tgs-lang a.on { color: var(--ink); border-bottom: 1.5px solid var(--orange); }
.tgs-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.tgs-burger span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.tgs-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.tgs-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tgs-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.tgs-mobile-nav { border-top: 1px solid var(--line); padding: 8px 20px 24px; background: var(--paper); }
.tgs-mobile-links { display: flex; flex-direction: column; margin-bottom: 18px; }
.tgs-mobile-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.tgs-mobile-nav .tgs-btn { width: 100%; justify-content: center; }

/* Hero */
.tgs-hero { position: relative; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 64px; }
.tgs-hero-copy { position: relative; z-index: 2; max-width: min(520px, 42vw); }
.tgs-hero h1 { font-size: clamp(40px, 4.6vw, 68px); margin: 18px 0 20px; }
.tgs-hero .tgs-lead { max-width: 440px; }
.wp-block-image.tgs-hero-img { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; margin: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%); }
.tgs-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.tgs-hero-tag { position: absolute; right: 48px; bottom: 44px; z-index: 3; background: #fff; padding: 18px 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-size: 13px; color: var(--muted); line-height: 1.6; }
.tgs-hero-tag strong { font-family: Manrope, sans-serif; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }

.tgs-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding-left: var(--pad); padding-right: var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-reset: strip; }
.tgs-strip p { counter-increment: strip; padding: 24px 0 24px 32px; border-left: 1px solid var(--line); font-weight: 600; }
.tgs-strip p:first-child { padding-left: 0; border-left: 0; }
.tgs-strip p::before { content: counter(strip, decimal-leading-zero); color: var(--orange); font-family: Manrope, sans-serif; margin-right: 26px; }

/* Section heads */
.tgs-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 44px; }
.tgs-head-row h2 { font-size: clamp(30px, 3.6vw, 46px); }
.tgs-head-row > p { max-width: 430px; color: var(--ink-soft); }
.tgs-head-row .wp-block-buttons { margin-top: 0; }

/* Service cards */
.tgs-services { padding-top: 88px; padding-bottom: 96px; }
.wp-block-columns.tgs-cards { gap: 24px; margin: 0; }
.tgs-cards .wp-block-image { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #ccc; }
.tgs-cards .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tgs-cards .wp-block-column:hover img { transform: scale(1.04); }
.tgs-cards h3 { font-size: 24px; margin: 22px 0 8px; }
.tgs-cards p { color: var(--ink-soft); font-size: 15px; max-width: 370px; }
.tgs-cards .wp-block-buttons { margin-top: 18px; }

/* Systems we install */
.tgs-systems { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 88px; background: var(--white); border-top: 1px solid var(--line); }
.tgs-systems h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 12px 0 16px; }
.tgs-systems-intro p:not(.eyebrow) { color: var(--ink-soft); max-width: 420px; }
.tgs-systems-intro .wp-block-buttons { margin-top: 24px; }
.tgs-systems-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tgs-system-col { background: var(--paper); border: 1px solid var(--line); padding: 28px; }
.tgs-system-col h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); font-family: Inter, sans-serif; font-weight: 600; margin-bottom: 8px; }
.tgs-system-col ul { list-style: none; padding: 0; }
.tgs-system-col li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-family: Manrope, sans-serif; font-size: 17px; }
.tgs-system-col li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Dark sections and the project gallery */
.tgs-dark { background: var(--dark); color: #fff; }
.tgs-dark .eyebrow { color: #c9cdcf; }
.tgs-gallery { padding-top: 72px; padding-bottom: 80px; }
.tgs-gallery h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; margin-top: 10px; }
.tgs-gallery .tgs-head-row { margin-bottom: 28px; }
.tgs-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tgs-filters button { background: none; color: #fff; border: 1px solid transparent; font: 600 13px Inter, sans-serif; padding: 8px 18px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.tgs-filters button.on { border-color: #fff; text-decoration: none; }
.tgs-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px 18px; }
.tgs-grid.is-filtered { grid-template-columns: repeat(3, 1fr); }
.tgs-grid figure { min-width: 0; }
.tgs-grid figure[hidden] { display: none; }
.tgs-shot { height: 340px; overflow: hidden; background: #2b3235; }
.tgs-shot img { width: 100%; height: 100%; object-fit: cover; }
.tgs-grid figcaption { font-size: 13px; font-weight: 600; margin-top: 12px; }

/* Numbered steps */
.tgs-process { padding-top: 84px; padding-bottom: 84px; }
.tgs-process > h2 { font-size: clamp(26px, 3vw, 38px); padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.wp-block-columns.tgs-steps { gap: 0; margin: 28px 0 0; counter-reset: step; }
.tgs-steps .wp-block-column { counter-increment: step; padding: 4px 32px; border-left: 1px solid var(--line); }
.tgs-steps .wp-block-column:first-child { padding-left: 0; border-left: 0; }
.tgs-steps .wp-block-column::before { content: counter(step, decimal-leading-zero); display: block; color: var(--orange); font: 600 26px Manrope, sans-serif; }
.tgs-steps h3 { font-size: 22px; margin: 10px 0 6px; }
.tgs-steps p { color: var(--ink-soft); font-size: 15px; max-width: 320px; }

/* Contact block and quote form */
.tgs-contact { padding-top: 32px; padding-bottom: 96px; }
.tgs-contact > .wp-block-columns { gap: 64px; margin: 0; align-items: flex-start; }
.tgs-contact h2 { font-size: clamp(30px, 3.6vw, 46px); }
.tgs-contact .tgs-lead { margin-top: 18px; font-size: 17px; }
.tgs-contact h3 { font-size: 18px; margin: 36px 0 16px; }
.tgs-contact h3:first-child { margin-top: 0; }
.tgs-channels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.tgs-contact h3 + .tgs-channels { margin-top: 0; }
.tgs-channel { display: block; padding: 0 14px; border-left: 1px solid var(--line); text-decoration: none; min-width: 0; }
.tgs-channel:first-child { padding-left: 0; border-left: 0; }
.tgs-channel svg { width: 38px; height: 38px; }
.tgs-channel-wa svg { color: #25d366; }
.tgs-channel strong { display: block; font-family: Manrope, sans-serif; font-size: 18px; margin: 14px 0 4px; }
.tgs-channel span { display: block; font-size: 13.5px; color: var(--ink-soft); }
.tgs-channel em { display: block; font-style: normal; font-weight: 600; font-size: 12.5px; margin-top: 8px; color: var(--orange); overflow-wrap: anywhere; }
.tgs-channel:hover strong { color: var(--orange); }
.tgs-area { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.tgs-area svg { width: 22px; height: 22px; color: var(--orange); }

.tgs-form { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 30px; position: relative; }
.tgs-form h3 { font-size: 22px; margin: 0 0 18px; }
.tgs-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tgs-full { grid-column: 1 / -1; }
.tgs-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tgs-form input[type=text], .tgs-form input[type=email], .tgs-form input[type=tel], .tgs-form select, .tgs-form textarea { width: 100%; font: 400 15px Inter, sans-serif; color: var(--ink); padding: 11px 12px; border: 1px solid var(--line); background: #fff; border-radius: 0; }
.tgs-form input:focus, .tgs-form select:focus, .tgs-form textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; }
.tgs-form textarea { min-height: 110px; resize: vertical; }
.tgs-drop { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; border: 1px dashed #c8c5bd; padding: 14px; cursor: pointer; margin: 0 !important; }
.tgs-drop > span { display: flex; align-items: center; gap: 10px; }
.tgs-drop svg { width: 18px; height: 18px; flex: none; }
.tgs-drop small { color: var(--muted); text-align: right; font-size: 11.5px; font-weight: 500; }
.tgs-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tgs-drop:focus-within { outline: 2px solid var(--orange); }
.tgs-form .tgs-btn { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }
.tgs-consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 12px !important; font-weight: 400 !important; color: var(--ink-soft); margin: 0 !important; }
.tgs-consent input { margin-top: 2px; accent-color: var(--orange); }
.tgs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tgs-note { padding: 12px 14px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.tgs-note-ok { background: #eef7ef; border: 1px solid #b9dcbd; color: #1f5a28; }
.tgs-note-err { background: #fdf0ec; border: 1px solid #f1c3b3; color: #8a2c0c; }

/* Inner pages */
.tgs-pagehead { padding-top: 76px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.tgs-pagehead h1 { font-size: clamp(36px, 4.4vw, 60px); max-width: 900px; margin: 16px 0 20px; }
.tgs-pagehead .tgs-lead { max-width: 680px; }
.tgs-service, .tgs-about { padding-top: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.tgs-service-alt { background: var(--white); }
.wp-block-columns.tgs-service-row { gap: 64px; margin: 0; align-items: flex-start; }
.tgs-service-row > .wp-block-column:first-child { position: sticky; top: 108px; }
.tgs-service-row .wp-block-image { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.tgs-service-row .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.tgs-service-row h2 { font-size: clamp(28px, 3vw, 40px); margin: 10px 0 16px; }
.tgs-service-row h3 { font-size: 19px; margin: 34px 0 6px; }
.tgs-service-row p:not(.eyebrow) { color: var(--ink-soft); }
.tgs-service-row p + p { margin-top: 14px; }
.tgs-defs, .tgs-checks { list-style: none; padding: 0; margin-top: 14px; }
.tgs-defs li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.tgs-defs li strong { color: var(--ink); font-weight: 600; }
.tgs-checks li { position: relative; padding: 9px 0 9px 30px; font-weight: 500; }
.tgs-checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.tgs-contact .tgs-checks { margin-top: 0; }

.tgs-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.tgs-cta h2 { font-size: clamp(24px, 2.6vw, 34px); }
.tgs-cta p { color: #c9cdcf; margin-top: 8px; }
.tgs-cta .wp-block-buttons { margin-top: 0; }

.tgs-walkthrough { padding-top: 80px; padding-bottom: 88px; }
.wp-block-columns.tgs-video-row { gap: 64px; margin: 0; align-items: center; }
.tgs-video-row > .wp-block-column:first-child { flex: 0 0 340px; }
.tgs-video { margin: 0; }
.tgs-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.tgs-video-row h2 { font-size: clamp(28px, 3vw, 40px); margin: 10px 0 16px; }
.tgs-video-row p:not(.eyebrow) { color: var(--ink-soft); max-width: 480px; }

.tgs-credentials { padding-top: 64px; padding-bottom: 64px; }
.tgs-credentials h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 12px; }

/* Placeholders for missing client info: only logged-in admins see them */
body:not(.logged-in) .tgs-todo { display: none !important; }
.logged-in .tgs-todo { outline: 2px dashed #e0a100; outline-offset: -2px; background: #fff7dc; }
.logged-in p.tgs-todo, .logged-in span.tgs-todo { padding: 10px 14px; margin-top: 16px; display: block; color: #6b4e00; font-size: 14px; }

.tgs-prose { padding-top: 48px; padding-bottom: 80px; max-width: 860px; }
.tgs-prose > * + * { margin-top: 1em; }
.tgs-404 { min-height: 50vh; border-bottom: 0; }

/* Footer */
.tgs-footer { background: #161b1d; color: #fff; padding-top: 56px; }
.tgs-foot { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; padding-bottom: 44px; }
.tgs-foot-brand p { color: #b6bcbf; font-size: 14px; max-width: 340px; margin-top: 16px; }
.tgs-logo-light { color: #fff; }
.tgs-footer h2 { font: 600 12px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8f979a; margin-bottom: 14px; }
.tgs-foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tgs-foot-links a:hover, .tgs-foot-contact a:hover { color: var(--orange); }
.tgs-foot-contact { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.tgs-foot-contact a, .tgs-foot-contact span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; overflow-wrap: anywhere; }
.tgs-foot-contact svg { width: 18px; height: 18px; flex: none; color: var(--orange); }
.tgs-foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid #343c3f; font-size: 12.5px; color: #b6bcbf; }
.tgs-footer .tgs-lang a.on { color: #fff; }
.tgs-footer .tgs-lang a:hover { color: #fff; }

.tgs-wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); z-index: 60; transition: transform .2s; }
.tgs-wa-float:hover { transform: scale(1.08); }
.tgs-wa-float svg { width: 32px; height: 32px; }

/*
 * Black / white / orange balance: dark header, video hero, orange band, and
 * dark sections alternating with light ones.
 */
:root { --black: #111416; --black-2: #1b2023; --black-line: #2d3539; }

.tgs-header { background: rgba(17, 20, 22, .97); border-bottom-color: var(--black-line); }
.tgs-logo-img { width: auto; height: 46px; }
.tgs-nav-links a { color: #e9ecee; }
.tgs-lang { color: #8f989c; }
.tgs-lang a:hover, .tgs-lang a.on { color: #fff; }
.tgs-burger span { background: #fff; }
.tgs-mobile-nav { background: var(--black); border-top-color: var(--black-line); }
.tgs-mobile-links a { color: #fff; border-bottom-color: var(--black-line); }

.tgs-hero.has-video { background: var(--black); color: #fff; min-height: 640px; }
.tgs-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tgs-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.tgs-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 20, 22, .94) 0%, rgba(17, 20, 22, .8) 42%, rgba(17, 20, 22, .35) 100%), linear-gradient(0deg, rgba(17, 20, 22, .55) 0%, rgba(17, 20, 22, 0) 35%); }
.tgs-hero.has-video .tgs-hero-img { display: none; }
.tgs-hero.has-video .tgs-hero-copy { max-width: 600px; }
.tgs-hero.has-video h1 { color: #fff; }
.tgs-hero.has-video .tgs-lead { color: #d3d8da; }
.tgs-hero.has-video .tgs-hero-tag { background: var(--orange); color: rgba(255, 255, 255, .85); box-shadow: none; }
.tgs-hero.has-video .tgs-hero-tag strong { color: #fff; }

.tgs-strip { background: var(--orange); color: #fff; border: 0; }
.tgs-strip p { border-left-color: rgba(255, 255, 255, .35); }
.tgs-strip p::before { color: var(--black); font-weight: 800; }

.tgs-systems { background: var(--black); color: #fff; border-top: 0; }
.tgs-systems-intro p:not(.eyebrow) { color: #b9c0c3; }
.tgs-system-col { background: var(--black-2); border-color: var(--black-line); }
.tgs-system-col li { border-bottom-color: var(--black-line); }

.tgs-gallery.tgs-dark { background: var(--paper); color: var(--ink); }
.tgs-gallery.tgs-dark .eyebrow { color: var(--orange); }
.tgs-gallery .tgs-filters button { color: var(--ink); }
.tgs-gallery .tgs-filters button.on { border-color: var(--ink); }
.tgs-pagehead + .tgs-gallery.tgs-dark { padding-top: 56px; }

.tgs-process + .tgs-contact { background: var(--black); color: #fff; padding-top: 88px; }
.tgs-process + .tgs-contact .tgs-lead, .tgs-process + .tgs-contact .tgs-channel span { color: #b9c0c3; }
.tgs-process + .tgs-contact .tgs-channel { border-left-color: var(--black-line); }
.tgs-process + .tgs-contact .tgs-channel-phone svg, .tgs-process + .tgs-contact .tgs-channel-mail svg { color: var(--orange); }
.tgs-process + .tgs-contact .tgs-form { border-color: var(--black); }

.tgs-channel em a { text-decoration: none; }
.tgs-channel em a:hover { text-decoration: underline; }
.tgs-channel em small, .tgs-foot-contact small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }

.tgs-pagehead { background: var(--black); color: #fff; border-bottom: 4px solid var(--orange); }
.tgs-pagehead .tgs-lead { color: #c3c9cc; }

.tgs-cta.tgs-dark { background: var(--orange); }
.tgs-cta.tgs-dark p { color: rgba(255, 255, 255, .88); }
.tgs-cta .wp-block-button .wp-block-button__link { background: var(--black); }
.tgs-cta .wp-block-button .wp-block-button__link:hover { background: #000; }

.tgs-footer { background: #0b0d0e; border-top: 4px solid var(--orange); }
.tgs-footer .tgs-logo-img { height: 42px; }

@media (max-width: 1000px) {
	.tgs-nav-links { display: none; }
	.tgs-burger { display: flex; }
	.tgs-systems { grid-template-columns: 1fr; gap: 36px; }
	.tgs-grid, .tgs-grid.is-filtered { grid-template-columns: 1fr 1fr; }
	.tgs-grid figure:first-child:not([hidden]) { grid-column: 1 / -1; }
	.tgs-channels { grid-template-columns: 1fr; gap: 24px; }
	.tgs-channel, .tgs-channel:first-child { border-left: 0; padding: 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
	.tgs-channel svg { grid-row: span 3; }
	.tgs-channel strong { margin-top: 0; }
	.tgs-foot { grid-template-columns: 1fr 1fr; }
	.tgs-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 781px) {
	:root { --gutter: 20px; }
	.admin-bar .tgs-header { top: 46px; }
	.tgs-nav { height: 66px; }
	.tgs-nav-cta { display: none; }
	.tgs-nav-right { gap: 12px; }
	.tgs-hero { min-height: 0; padding-top: 44px; padding-bottom: 0; }
	.tgs-hero-copy { max-width: none; }
	.wp-block-image.tgs-hero-img { position: relative; width: auto; height: 300px; clip-path: none; margin: 40px calc(-1 * var(--gutter)) 0; }
	.tgs-hero-tag { position: relative; right: auto; bottom: auto; margin: -40px 0 0 auto; width: fit-content; max-width: calc(100% - 20px); }
	.tgs-hero.has-video { min-height: 0; padding-top: 56px; padding-bottom: 0; }
	.tgs-hero.has-video .tgs-hero-tag { margin: 40px calc(-1 * var(--gutter)) 0; width: auto; max-width: none; padding: 16px var(--gutter); }
	.tgs-hero-media::after { background: rgba(17, 20, 22, .78); }
	.tgs-hero.has-video .tgs-hero-tag { background: var(--black-2); }
	.tgs-hero.has-video + .tgs-strip { margin-top: 0; }
	.tgs-logo-img { height: 36px; }
	.tgs-strip p, .tgs-strip p:first-child { border-top-color: rgba(255, 255, 255, .35); }
	.tgs-strip { grid-template-columns: 1fr; margin-top: 32px; }
	.tgs-strip p, .tgs-strip p:first-child { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
	.tgs-strip p:first-child { border-top: 0; }
	.tgs-head-row { flex-direction: column; align-items: flex-start; gap: 18px; }
	.tgs-services, .tgs-process, .tgs-systems, .tgs-service, .tgs-about, .tgs-walkthrough { padding-top: 60px; padding-bottom: 60px; }
	.wp-block-columns.tgs-cards { gap: 44px; }
	.tgs-systems-lists, .tgs-fields { grid-template-columns: 1fr; }
	.tgs-grid, .tgs-grid.is-filtered { grid-template-columns: 1fr; }
	.tgs-shot { height: 260px; }
	.tgs-steps .wp-block-column, .tgs-steps .wp-block-column:first-child { border-left: 0; padding: 20px 0; border-top: 1px solid var(--line); }
	.tgs-steps .wp-block-column:first-child { border-top: 0; }
	.tgs-contact > .wp-block-columns, .wp-block-columns.tgs-service-row, .wp-block-columns.tgs-video-row { gap: 40px; }
	.tgs-service-row > .wp-block-column:first-child { position: static; }
	.tgs-video-row > .wp-block-column:first-child { flex-basis: 100% !important; max-width: 340px; }
	.tgs-form { padding: 22px; }
	.tgs-pagehead { padding-top: 52px; padding-bottom: 44px; }
	.tgs-cta { flex-direction: column; align-items: flex-start; }
	.tgs-foot { grid-template-columns: 1fr; gap: 32px; }
	.tgs-wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
