/* v1.4 stability fixes, Customizer-aware layout, contact form, and chat. */
.tga-nav-wrap { width: min(1320px, calc(100% - 40px)) !important; height: var(--tga-header-height, 92px); padding-block: 8px; }
.tga-brand { min-width: 0; flex: 0 1 auto; margin-right: 24px; white-space: nowrap; }
.tga-brand-name { display: block; overflow: hidden; max-width: 260px; color: #fff; font-size: 13px; line-height: 1; letter-spacing: .055em; text-overflow: ellipsis; white-space: nowrap; }
.tga-brand-name strong { font-size: inherit; white-space: nowrap; }
.tga-logo-emblem { width: 54px; height: 54px; }
.tga-logo-emblem img { width: 49px; height: 45px; }
.tga-logo-upload { display: flex; width: auto; max-width: 72px; height: min(58px, calc(var(--tga-header-height, 92px) - 24px)); align-items: center; justify-content: center; flex: 0 0 auto; }
.tga-uploaded-logo { display: block; width: auto; max-width: 72px; height: auto; max-height: min(58px, calc(var(--tga-header-height, 92px) - 24px)); object-fit: contain; }
.tga-desktop-nav { min-width: 0; flex: 1; justify-content: flex-end; gap: 20px; }
.tga-nav-list { min-width: 0; gap: clamp(12px, 1.15vw, 20px); }
.tga-nav-list a { display: block; font-size: 14px; line-height: 1.25; white-space: nowrap; }
.tga-header .tga-button-small { min-width: 96px; flex: 0 0 auto; font-size: 13px; }
.tga-language-switcher { display: inline-flex; flex: 0 0 auto; overflow: hidden; padding: 3px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.08); }
.tga-language-switcher button { min-width: 48px; padding: 6px 8px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.72); cursor: pointer; font: 750 11px/1 var(--tga-body-font, sans-serif); }
.tga-language-switcher button[aria-pressed="true"] { background: #fff; color: var(--tga-navy); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.tga-language-switcher button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.tga-language-switcher--mobile { display: none; width: max-content; margin: 8px 0 12px; }
.admin-bar .tga-header { top: 32px; }

.tga-home:not(.tga-inner-page) .tga-hero { min-height: 760px; flex-direction: column; justify-content: center; padding: calc(var(--tga-header-height, 92px) + 65px) 0 62px; }
.tga-home:not(.tga-inner-page) .tga-hero-center { flex: 0 0 auto; }
.tga-service-dock { position: relative; left: auto; bottom: auto; width: min(1180px, calc(100% - 40px)); transform: none; margin: 54px auto 0; flex: 0 0 auto; }
.tga-service-dock { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tga-home:not(.tga-inner-page) .tga-services { padding-top: 110px; }
.tga-card-grid,
.tga-project-grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.tga-card-top.has-image { position: relative; display: block; margin: -12px -12px 28px; }
.tga-card-top.has-image > small { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--tga-navy); }
.tga-service-image { display: block; width: 100%; height: 180px; overflow: hidden; border-radius: 14px; background: #edf4fd; }
.tga-service-image img { width: 100%; height: 100%; object-fit: cover; }
.tga-project-art.has-image:after { display: none; }
.tga-project-art.has-image img { width: 100%; height: 100%; object-fit: cover; }
.tga-project-card h3 a:hover { color: var(--tga-teal); }
.tga-company-visual.has-image { position: relative; display: block; min-height: 520px; overflow: hidden; }
.tga-company-visual.has-image > img { width: 100%; height: 520px; object-fit: cover; }
.tga-company-visual.has-image > p { position: absolute; left: 24px; right: 24px; bottom: 22px; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(21,52,81,.86); color: #fff; text-align: center; backdrop-filter: blur(8px); }

.tga-contact-form-wrap { margin-top: 34px; padding: 32px; border: 1px solid var(--tga-line); border-radius: 20px; background: #fff; box-shadow: 0 20px 55px rgba(15,32,51,.08); }
.tga-contact-form p { margin: 0 0 18px; }
.tga-contact-form label { display: block; margin-bottom: 7px; color: var(--tga-navy); font-size: 13px; font-weight: 750; }
.tga-contact-form label span { color: #cf2e2e; }
.tga-contact-form input,
.tga-contact-form select,
.tga-contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--tga-line); border-radius: 10px; background: #f9fbfc; color: var(--tga-ink); font: inherit; box-shadow: none; }
.tga-contact-form input:focus,
.tga-contact-form select:focus,
.tga-contact-form textarea:focus { border-color: var(--tga-teal); outline: 3px solid color-mix(in srgb, var(--tga-teal) 15%, transparent); }
.tga-contact-form textarea { min-height: 130px; resize: vertical; }
.tga-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tga-contact-form .tga-button { border: 0; cursor: pointer; }
.tga-contact-form > small { display: block; margin-top: 11px; color: var(--tga-muted); }
.tga-contact-form .tga-consent label { display: flex; gap: 9px; align-items: flex-start; color: var(--tga-muted); font-size: 12px; font-weight: 500; }
.tga-contact-form .tga-consent input { width: auto; margin-top: 3px; }
.tga-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.tga-form-notice { padding: 13px 15px; border-radius: 10px; font-size: 13px; }
.tga-form-notice.is-success { background: #e7f7ee; color: #146c3b; }
.tga-form-notice.is-error { background: #fff0f0; color: #a52626; }
.tga-whatsapp-link { display: inline-block; margin-top: 5px; color: var(--tga-teal); font-size: 13px; font-weight: 800; }
.tga-empty-state { padding: 34px; border: 1px dashed var(--tga-line); border-radius: 18px; text-align: center; }
.tga-empty-state h3 { margin-bottom: 6px; }
.tga-empty-state p { color: var(--tga-muted); }

.tga-chat { position: fixed; right: 24px; bottom: 24px; z-index: 999; font-family: var(--tga-body-font, sans-serif); }
.tga-chat-toggle { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--tga-mint); color: var(--tga-navy); font: inherit; font-weight: 800; box-shadow: 0 16px 38px rgba(15,32,51,.25); cursor: pointer; }
.tga-chat-toggle span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--tga-navy); color: #fff; }
.tga-chat-panel { position: absolute; right: 0; bottom: 68px; width: min(390px, calc(100vw - 28px)); max-height: calc(100vh - 110px); overflow: auto; padding: 0 22px 22px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; background: #fff; color: var(--tga-ink); box-shadow: 0 28px 80px rgba(15,32,51,.3); }
.tga-chat-panel[hidden] { display: none; }
.tga-chat-panel > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; margin: 0 -22px 17px; padding: 20px 22px 17px; border-radius: 22px 22px 0 0; background: var(--tga-navy); color: #fff; }
.tga-chat-panel header small { color: var(--tga-mint); text-transform: uppercase; letter-spacing: .12em; }
.tga-chat-panel header h2 { margin: 4px 0 0; color: #fff; font-family: var(--tga-heading-font, sans-serif); font-size: 18px; line-height: 1.25; }
.tga-chat-panel header button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.tga-chat-panel > p { color: var(--tga-muted); font-size: 13px; }
.tga-chat-panel .tga-contact-form-wrap { margin-top: 15px; padding: 0; border: 0; box-shadow: none; }
.tga-chat-panel .tga-form-grid { grid-template-columns: 1fr; gap: 0; }
.tga-chat-panel .tga-contact-form p { margin-bottom: 12px; }
.tga-chat-panel .tga-contact-form textarea { min-height: 82px; }
.tga-chat-panel .tga-button { width: 100%; }

@media (max-width: 1120px) {
  .tga-desktop-nav { display: none; }
  .tga-menu-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: transparent; color: #fff; font: 700 13px/1 var(--tga-body-font, sans-serif); }
  .tga-mobile-nav { position: absolute; left: 0; right: 0; top: 100%; padding: 10px 0 25px; border-bottom: 1px solid rgba(255,255,255,.12); background: var(--tga-navy); box-shadow: 0 18px 30px rgba(9,47,61,.16); }
  .tga-mobile-nav:not([hidden]) { display: block; }
  .tga-language-switcher--mobile { display: inline-flex; }
  .tga-nav-list-mobile { display: block; width: 100%; }
  .tga-nav-list-mobile li { width: 100%; }
  .tga-mobile-nav a { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 700; }
}

@media (max-width: 782px) { .admin-bar .tga-header { top: 46px; } }
@media (max-width: 760px) {
  .tga-nav-wrap { width: min(100% - 28px, 1320px) !important; }
  .tga-brand { margin-right: 12px; }
  .tga-brand-name { max-width: 190px; font-size: 11px; }
  .tga-service-dock { width: min(100% - 28px, 1180px); }
  .tga-form-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .tga-brand-name { display: none; }
  .tga-home:not(.tga-inner-page) .tga-hero { padding-top: calc(var(--tga-header-height, 92px) + 45px); }
  .tga-chat { right: 14px; bottom: 14px; }
  .tga-chat-toggle b { display: none; }
  .tga-chat-toggle { width: 54px; padding: 0; justify-content: center; }
  .tga-chat-panel { right: 0; bottom: 65px; }
  .tga-contact-form-wrap { padding: 22px 18px; }
}
/* Compact footer refinement. */
.tga-footer { padding: 46px 0 18px; }
.tga-footer-grid { align-items: start; gap: clamp(28px, 4vw, 48px); padding-bottom: 34px; }
.tga-footer .tga-brand { gap: 10px; }
.tga-footer .tga-logo-emblem { width: 46px; height: 46px; }
.tga-footer .tga-logo-emblem img { width: 42px; height: 39px; }
.tga-footer .tga-uploaded-logo { max-width: 58px; max-height: 48px; }
.tga-footer .tga-brand-name strong { font-size: 12px; letter-spacing: .07em; }
.tga-footer-grid > div > p { margin: 13px 0 0; line-height: 1.55; }
.tga-footer-grid h2 { margin-bottom: 13px; font-size: 10px; }
.tga-footer-grid > div:not(:first-child) a { margin: 5px 0; line-height: 1.45; }
.tga-copyright { padding-top: 16px; }

@media (max-width: 920px) {
  .tga-footer { padding-top: 40px; }
  .tga-footer-grid { gap: 28px; padding-bottom: 28px; }
  .tga-footer-grid > div:last-child { padding-top: 4px; }
}

@media (max-width: 760px) {
  .tga-footer { padding: 36px 0 16px; }
  .tga-footer-grid { gap: 25px 34px; padding-bottom: 25px; }
  .tga-footer-grid > div:first-child { padding-bottom: 3px; }
  .tga-footer-grid > div > p { margin-top: 10px; }
}

@media (max-width: 440px) {
  .tga-footer-grid { grid-template-columns: 1fr 1fr; }
  .tga-footer .tga-brand-name { display: inline; }
  .tga-footer-grid > div:first-child,
  .tga-footer-grid > div:last-child { grid-column: 1 / -1; }
}

/* Compact homepage sections while preserving their layout and content. */
.tga-home:not(.tga-inner-page) .tga-section { padding-top: 76px; padding-bottom: 76px; }
.tga-home:not(.tga-inner-page) .tga-services { padding-top: 148px; }
.tga-home:not(.tga-inner-page) .tga-section-head { gap: 42px; margin-bottom: 34px; }
.tga-home:not(.tga-inner-page) .tga-card-top { margin-bottom: 34px; }
.tga-home:not(.tga-inner-page) .tga-service-card p { margin-top: 14px; margin-bottom: 20px; }
.tga-home:not(.tga-inner-page) .tga-project-card h3 { margin-top: 16px; }
.tga-home:not(.tga-inner-page) .tga-docs-panel { gap: 52px; padding: 50px; }
.tga-home:not(.tga-inner-page) .tga-doc-list a { padding-top: 16px; padding-bottom: 16px; }
.tga-home:not(.tga-inner-page) .tga-company-grid { gap: 64px; }
.tga-home:not(.tga-inner-page) .tga-company-visual { min-height: 440px; }
.tga-home:not(.tga-inner-page) .tga-company-visual.has-image > img { height: 440px; }
.tga-home:not(.tga-inner-page) .tga-company-visual p { margin-top: 34px; }
.tga-home:not(.tga-inner-page) .tga-company-links { margin-top: 22px; margin-bottom: 24px; }
.tga-home:not(.tga-inner-page) .tga-cta { padding-top: 68px; padding-bottom: 68px; }
.tga-home:not(.tga-inner-page) .tga-cta h2 { margin-bottom: 28px; }

/* Uploaded media always fits inside its designed frame without distortion or cropping. */
.tga-home:not(.tga-inner-page) .tga-service-image,
.tga-home:not(.tga-inner-page) .tga-project-art.has-image,
.tga-home:not(.tga-inner-page) .tga-company-visual.has-image { background: #edf4fd; }
.tga-home:not(.tga-inner-page) .tga-service-image img,
.tga-home:not(.tga-inner-page) .tga-project-art.has-image img,
.tga-home:not(.tga-inner-page) .tga-company-visual.has-image > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: var(--tga-media-position, center) center;
}
.tga-home:not(.tga-inner-page) .tga-service-image { aspect-ratio: 16 / 9; height: auto; }
.tga-home:not(.tga-inner-page) .tga-project-art.has-image { aspect-ratio: 16 / 10; height: auto; }
.tga-home:not(.tga-inner-page) .tga-company-visual.has-image { aspect-ratio: 4 / 3; min-height: 0; }
.tga-home:not(.tga-inner-page) .tga-company-visual.has-image > img { height: 100%; }
.tga-project-meta b { max-width: 52%; color: var(--tga-teal); text-align: right; }
.tga-project-result { min-height: 0 !important; margin-top: 10px !important; padding: 10px 12px; border-radius: 10px; background: #edf4fd; color: var(--tga-ink) !important; }
.tga-project-link { display: flex; justify-content: space-between; margin: 14px 6px 4px; padding-top: 12px; border-top: 1px solid var(--tga-line); font-size: 13px; font-weight: 800; }
.tga-trust { background: #fff; }
.tga-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.tga-trust-card { display: grid; grid-template-columns: 68px 1fr; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--tga-line); border-radius: 18px; background: var(--tga-cream); }
.tga-trust-card > img { width: 68px; height: 68px; padding: 6px; border-radius: 14px; background: #fff; object-fit: contain; }
.tga-trust-card h3 { margin: 0 0 5px; font-size: 18px; }
.tga-trust-card p { margin: 0; color: var(--tga-muted); font-size: 13px; }
.tga-trust-card a { display: inline-block; margin-top: 7px; color: var(--tga-teal); font-size: 12px; font-weight: 800; }
.tga-hide-services .tga-services,.tga-hide-projects .tga-projects,.tga-hide-trust .tga-trust,.tga-hide-documents .tga-docs,.tga-hide-company .tga-company,.tga-hide-cta .tga-cta { display: none !important; }

@media (max-width: 920px) {
  .tga-home:not(.tga-inner-page) .tga-section { padding-top: 68px; padding-bottom: 68px; }
  .tga-home:not(.tga-inner-page) .tga-services { padding-top: 195px; }
  .tga-home:not(.tga-inner-page) .tga-company-grid { gap: 46px; }
  .tga-home:not(.tga-inner-page) .tga-company-visual:not(.has-image) { min-height: 390px; }
}

@media (max-width: 760px) {
  .tga-home:not(.tga-inner-page) .tga-section { padding-top: 58px; padding-bottom: 58px; }
  .tga-home:not(.tga-inner-page) .tga-services { padding-top: 62px; }
  .tga-home:not(.tga-inner-page) .tga-section-head { margin-bottom: 28px; }
  .tga-home:not(.tga-inner-page) .tga-docs-panel { gap: 34px; padding: 30px 22px; }
  .tga-home:not(.tga-inner-page) .tga-company-grid { gap: 34px; }
  .tga-home:not(.tga-inner-page) .tga-company-visual:not(.has-image) { min-height: 340px; }
  .tga-home:not(.tga-inner-page) .tga-cta { padding-top: 56px; padding-bottom: 56px; }
}
