/*
Theme Name: IGMT Group Blocks
Theme URI: https://igmtgroup.com/
Author: IGMT Group
Description: An editable block theme based on the IGMT Group homepage, with the original logos and scroll reveal.
Version: 0.1.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: igmt-group-blocks
*/

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/open-sans-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/open-sans-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/open-sans-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #676b6d; background: #fff; font-family: "Open Sans", Arial, sans-serif; font-size: 15px; line-height: 1.7; }
a { color: #0ca2b5; }
a:hover, a:focus-visible { color: #086e7b; }
img { max-width: 100%; height: auto; }

.igmt-topbar { border-bottom: 1px solid #e8eaea; color: #a5a8a9; font-size: 12px; min-height: 25px; }
.igmt-topbar > .wp-block-group { max-width: 1160px; margin-inline: auto; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.igmt-topbar p { margin: 0; }
.igmt-topbar a { color: inherit; text-decoration: none; }
.igmt-topbar a:hover { color: #0ca2b5; }
.igmt-topbar .igmt-contact { display: flex; gap: 1rem; }
.igmt-topbar .igmt-address { text-align: right; }

.igmt-header { background: #fff; border-bottom: 1px solid #e7e9e9; box-shadow: 0 1px 3px #00000008; }
.igmt-header-brand { min-height: 98px; display: flex; align-items: center; }
.igmt-header-brand > .wp-block-group { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.igmt-header .wp-block-site-logo { margin: 0; line-height: 0; }
.igmt-header .wp-block-site-logo img, .igmt-logo-fallback img { display: block; width: 165px; height: 78px; object-fit: contain; }

.igmt-main { max-width: 1160px; margin: 0 auto; padding: 48px 0 106px; }
.igmt-main .wp-block-post-content { margin: 0; }
.igmt-hero { margin: 0 0 29px; }
.igmt-hero img { display: block; width: 100%; height: auto; }

.igmt-section-title { display: flex; align-items: center; gap: 36px; margin: 30px 0 24px; color: #aaa; font-size: 36px; font-weight: 400; line-height: 1.3; text-align: center; white-space: nowrap; }
.igmt-section-title::before, .igmt-section-title::after { content: ""; flex: 1; height: 1px; background: #e8eaea; }
.igmt-intro { text-align: center; }
.igmt-intro p { margin: 0 0 12px; }
.igmt-intro p:last-child { margin-bottom: 0; }
.igmt-intro + .igmt-section-title { margin-top: 68px; margin-bottom: 23px; }

.igmt-company-row, .igmt-brand-row { display: grid !important; grid-template-columns: 33.333% minmax(0, 1fr); align-items: center; gap: 0 !important; margin: 0 0 30px; }
.igmt-company-row > .wp-block-column, .igmt-brand-row > .wp-block-column { min-width: 0; margin: 0 !important; }
.igmt-company-logo { margin: 0 28px 0 0; text-align: center; }
.igmt-company-logo img { max-height: 180px; max-width: 100%; width: auto; object-fit: contain; }
.igmt-company-row h2, .igmt-brand-row h2 { margin: 0 0 6px; color: #282b2e; font-size: 36px; font-weight: 400; line-height: 1.35; }
.igmt-company-row h2 a, .igmt-brand-row h2 a { color: inherit; text-decoration: none; }
.igmt-company-row h2 a:hover, .igmt-brand-row h2 a:hover { color: #0ca2b5; }
.igmt-company-row p, .igmt-brand-row p { margin: 0 0 11px; }
.igmt-company-row .igmt-eyebrow { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.igmt-company-row .igmt-contact-link { font-style: italic; text-decoration: underline; margin-top: 9px; }
.igmt-companies + .igmt-section-title { margin-top: 73px; margin-bottom: 29px; }

.igmt-brand-row { grid-template-columns: minmax(0, 66.666%) 33.333%; margin-bottom: 24px; align-items: start; }
.igmt-brand-row h2 { margin-bottom: 7px; }
.igmt-brand-row .igmt-brand-logo { margin: 0 0 0 28px; text-align: center; }
.igmt-brand-row .igmt-brand-logo img { width: 200px; height: 100px; object-fit: contain; }

.igmt-footer { background: #f2f3f3; border-top: 1px solid #e5e7e7; color: #a6a9a9; font-size: 12px; min-height: 91px; }
.igmt-footer > .wp-block-group { max-width: 1160px; min-height: 91px; margin-inline: auto; display: flex; align-items: center; gap: 18px; }
.igmt-footer .wp-block-site-logo img, .igmt-footer .igmt-logo-fallback img { width: 165px; height: 78px; object-fit: contain; }
.igmt-footer p { margin: 0; }
.igmt-footer a { color: inherit; }

.igmt-page-title { font-size: 36px; color: #282b2e; font-weight: 400; margin: 0 0 22px; }
.igmt-policy-content h2, .igmt-policy-content h3 { color: #282b2e; font-weight: 400; }
.igmt-policy-content p { margin: 0 0 16px; }
.igmt-policy-content ul { padding-left: 25px; }

.igmt-js .igmt-reveal-left, .igmt-js .igmt-reveal-right { opacity: 0; transition: transform 650ms ease-out, opacity 650ms ease-out; }
.igmt-js .igmt-reveal-left { transform: translateX(-42px); }
.igmt-js .igmt-reveal-right { transform: translateX(42px); }
.igmt-js .igmt-reveal-left.is-visible, .igmt-js .igmt-reveal-right.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .igmt-js .igmt-reveal-left, .igmt-js .igmt-reveal-right { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1200px) {
  .igmt-topbar > .wp-block-group, .igmt-footer > .wp-block-group { padding-inline: 24px; }
  .igmt-main { padding-inline: 24px; }
}
@media (max-width: 781px) {
  .igmt-topbar .igmt-address { display: none; }
  .igmt-company-row, .igmt-brand-row { display: flex !important; flex-direction: column; gap: 18px !important; align-items: stretch; }
  .igmt-company-row .igmt-company-logo { margin: 0 auto; max-width: 420px; }
  .igmt-brand-row .igmt-brand-logo { margin: 0 auto; }
  .igmt-brand-row > .wp-block-column:last-child { align-self: center; }
  .igmt-company-row h2, .igmt-brand-row h2 { font-size: 29px; }
  .igmt-section-title { font-size: 30px; gap: 15px; }
  .igmt-main { padding-top: 24px; padding-bottom: 60px; }
  .igmt-intro + .igmt-section-title, .igmt-companies + .igmt-section-title { margin-top: 48px; }
}
@media (max-width: 480px) {
  .igmt-topbar .igmt-contact { flex-wrap: wrap; gap: 0 12px; }
  .igmt-header-brand { min-height: 85px; }
  .igmt-section-title { font-size: 25px; }
  .igmt-main { padding-inline: 18px; }
  .igmt-footer > .wp-block-group { flex-wrap: wrap; padding-block: 10px; }
}
