/*
Theme Name: WGI WordPress Theme
Theme URI: https://welcomegroupinc.com
Author: Welcome Group Inc
Author URI: https://welcomegroupinc.com
Description: Custom WordPress theme for Welcome Group Inc, converted from the DCLogic static HTML site with ACF integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: wgi-wp-theme
*/

:root {
  --color-navy: #11222A;
  --color-cream: #FFFBEB;
  --color-rust: #8A372A;
  --color-teal-blue: #203C4D;

  --mint-300: #aecabd;


  --font-loretta: "loretta-display", serif;
  --weight-loretta: 200;
  /* Extra Light */

  --font-seasons: "the-seasons", sans-serif;
  --weight-seasons: 300;
  /* Light */

  --font-montag: "montag", sans-serif;
  --weight-montag: 300;
  /* Light */

  --font-montserrat: "montserrat", sans-serif;
  --weight-montserrat: 300;
  /* Light */
}

body {
  font-family: var(--font-montserrat);
  font-weight: var(--weight-montserrat);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-seasons);
  font-weight: var(--weight-seasons);
}

b,
strong {
  font-weight: inherit;
}

/* Hide Approach Goal Chevron on Desktop (Mobile Only) */
@media (min-width: 1024px) {
  .wgi-approach-goals-accordion-inner>div>h3>span:last-child {
    display: none !important;
  }
}

/* Hide Contact Icon on Desktop */
.wgi-contact-icon {
  display: none !important;
}

/* ── STATIC PAGE ── */
.static-page {
  background-color: var(--color-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.static-page-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 40px;
  box-sizing: border-box;
}

.static-page-hero {
  padding-top: 200px;
  padding-bottom: 60px;
  background-color: var(--color-navy);
}

.static-page-hero h1 {
  margin: 0;
  font-size: 75px;
  line-height: 1.15;
  color: var(--color-cream);
  font-family: var(--font-seasons);
  font-weight: var(--weight-seasons);
}

.static-page-content {
  padding-bottom: 120px;
  flex-grow: 1;
}

.static-page-content .static-content-inner {
  font-family: var(--font-montserrat);
  font-weight: var(--weight-montserrat);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-navy);
}

.static-page-content .static-content-inner h2,
.static-page-content .static-content-inner h3,
.static-page-content .static-content-inner h4 {
  color: var(--color-navy);
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.25;
}

.static-page-content .static-content-inner p {
  margin-bottom: 20px;
}

.static-page-content .static-content-inner a {
  color: var(--color-rust);
  text-decoration: underline;
  transition: color 200ms ease;
}

.static-page-content .static-content-inner a:hover {
  color: var(--color-navy);
}

.static-page-content .static-content-inner ul,
.static-page-content .static-content-inner ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.static-page-content .static-content-inner li {
  margin-bottom: 10px;
}

/* =========================================================
   RESPONSIVE OVERRIDES (Tablet & Mobile)
   ========================================================= */
@media (max-width: 1023px) {
  body {
    overflow-x: hidden;
  }

  #wg-stage {
    overflow-x: hidden;
  }

  /* ── HEADER ── */
  .wgi-header-bar {
    height: 60px !important;
  }

  .wgi-header-burger {
    left: 20px !important;
    top: 22px !important;
  }

  .wgi-header-logo-link {
    top: 30px !important;
  }

  .wgi-header-logo-img {
    height: 16px !important;
  }

  .wgi-header-contact {
    left: auto !important;
    right: 20px !important;
    top: 24px !important;
    font-size: 14px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .wgi-contact-text {
    display: none !important;
  }

  .wgi-contact-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .wgi-header-emblem {
    display: none !important;
    /* Hide the big emblem in the header on mobile to save space */
  }

  /* ── MENU OVERLAY ── */
  .wgi-menu-overlay {
    height: 100svh !important;
    padding: 80px 20px 20px !important;
    justify-content: flex-start !important;
  }

  .wgi-menu-video-wrapper {
    display: none !important;
    /* Hide video panel on mobile menu */
  }

  .wgi-menu-links-wrapper {
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 40px !important;
    margin: 0 auto !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  .wgi-menu-links-wrapper>div {
    align-items: center !important;
  }

  /* ── FOOTER ── */
  .wgi-footer-wrapper {
    padding: 60px 20px 20px !important;
  }

  .wgi-footer-inner {
    width: 100% !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 40px !important;
  }

  .wgi-footer-nav {
    flex-direction: column !important;
    gap: 40px !important;
  }

  .wgi-footer-legal {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 20px !important;
  }

  .wgi-footer-wordmark {
    width: 90% !important;
    height: auto !important;
    margin-top: 40px !important;
    margin-bottom: 0 !important;
    padding: 0 20px;
  }

  /* ── HOME PAGE ── */
  .wgi-home-hero-logo {
    max-width: 100% !important;
    height: auto !important;
  }

  .wgi-home-panel {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100svh !important;
  }

  .wgi-home-panel-img-side {
    width: 100% !important;
    height: 50vh !important;
    order: 1 !important;
  }

  .wgi-home-panel-text-side {
    width: 100% !important;
    height: auto !important;
    min-height: 50vh !important;
    padding: 60px 20px !important;
    order: 2 !important;
  }

  .wgi-home-panel-win {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }

  .wgi-home-panel-text {
    font-size: 24px !important;
  }

  .wgi-home-connect {
    height: auto !important;
    padding: 80px 20px !important;
  }

  .wgi-home-connect-form {
    width: 100% !important;
    max-width: 360px !important;
  }

  /* ── APPROACH PAGE ── */
  .wgi-approach-hero {
    padding: 120px 20px 80px !important;
  }

  .wgi-approach-hero-title {
    font-size: 40px !important;
    margin-bottom: 0 !important;
  }

  .wgi-approach-transition-quote {
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  .wgi-approach-split {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
  }

  .wgi-approach-split-label {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
  }

  .wgi-approach-split-text-left,
  .wgi-approach-split-text-right {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    text-align: center !important;
    font-size: 28px !important;
  }

  .wgi-approach-split-photo,
  .wgi-approach-split-sketch {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .wgi-approach-transition {
    height: 600px !important;
    padding: 60px 20px !important;
  }

  .wgi-approach-transition-quote {
    width: 100% !important;
    font-size: 22px !important;
  }

  .wgi-approach-goals {
    height: auto !important;
  }

  .wgi-approach-goals-head {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: visible !important;
  }

  .wgi-approach-goals-img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 50vh !important;
    order: 1 !important;
  }

  .wgi-approach-goals-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 50vh !important;
    z-index: 1 !important;
  }

  .wgi-approach-goals-heading {
    position: absolute !important;
    top: calc(50vh - 80px) !important;
    left: 20px !important;
    width: calc(100% - 40px) !important;
    font-size: 32px !important;
    height: auto !important;
    z-index: 2 !important;
  }

  .wgi-approach-goals-accordion {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    padding: 60px 20px !important;
    order: 2 !important;
  }

  .wgi-approach-goals-accordion-inner {
    max-width: 100% !important;
  }

  .wgi-approach-goals-accordion-inner>div {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 40px 0 !important;
  }

  .wgi-approach-goals-accordion-inner>div>h3 {
    width: 100% !important;
    font-size: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .wgi-approach-goals-accordion-inner>div>h3>span:last-child {
    display: block !important;
    min-width: 10px !important;
    min-height: 10px !important;
    border-right: 1px solid var(--color-navy) !important;
    border-bottom: 1px solid var(--color-navy) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .wgi-approach-goals-accordion-inner>div>div>p {
    font-size: 18px !important;
    max-width: 100% !important;
  }

  /* ── PORTFOLIO PAGE ── */
  .wgi-portfolio-hero {
    padding: 120px 20px 60px !important;
  }

  .wgi-portfolio-hero-title {
    font-size: 40px !important;
    margin-bottom: 0 !important;
  }

  .wgi-portfolio-tabs {
    padding: 60px 20px !important;
  }

  .wgi-portfolio-tabs-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .wgi-portfolio-spacer {
    height: auto !important;
    min-height: 100svh !important;
  }

  .wgi-portfolio-stack {
    height: auto !important;
    min-height: 100svh !important;
  }

  .wgi-portfolio-sticky-panel {
    width: 100% !important;
    height: 100svh !important;
  }

  .wgi-portfolio-sticky-panel img,
  .wgi-portfolio-sticky-panel video {
    transform: none !important;
  }

  .wgi-portfolio-hero-overlay {
    width: 100% !important;
  }

  .wgi-portfolio-overlay-heading {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    font-size: 32px !important;
    height: auto !important;
    margin-top: 10vh !important;
  }

  .wgi-portfolio-overlay-desc {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    font-size: 18px !important;
    height: auto !important;
  }

  .wgi-portfolio-overlay-link {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin-top: 20px !important;
    display: inline-flex !important;
  }

  .wgi-portfolio-overlay-line {
    display: none !important;
  }

  /* ── ABOUT PAGE ── */
  .wgi-about-hero {
    padding: 120px 20px 60px !important;
  }

  .wgi-about-hero-title {
    font-size: 40px !important;
    margin-bottom: 0 !important;
  }

  .wgi-about-owner {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 40px !important;
    overflow: hidden !important;
    gap: 0px !important;
  }

  .wgi-about-owner-spacer {
    display: none !important;
  }

  .wgi-about-owner-text {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    order: 1 !important;
    margin-top: 0px !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  .wgi-about-owner-heading {
    width: 100% !important;
    height: auto !important;
    font-size: 28px !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }

  .wgi-about-owner-body {
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .wgi-about-owner-img-wrapper {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 300px !important;
    order: 0 !important;
    margin: 0 !important;
  }

  .wgi-about-brand {
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    height: auto !important;
  }

  .wgi-about-founder {
    position: relative !important;
    height: 500px !important;
  }

  .wgi-about-founder-text-wrapper {
    padding: 40px 20px !important;
    justify-content: center !important;
  }

  .wgi-about-founder-quote {
    font-size: 20px !important;
    line-height: 1.4 !important;
  }

  .wgi-about-leadership {
    padding: 0 !important;
  }

  .wgi-about-leadership-inner {
    transform: none !important;
    padding: 60px 20px !important;
    align-items: flex-start !important;
  }

  .wgi-about-leadership-heading {
    font-size: 32px !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 40px !important;
    text-align: left !important;
  }

  .wgi-about-contact-career {
    flex-direction: column !important;
  }

  .wgi-about-contact-career-panel {
    padding: 60px 20px !important;
  }

  /* ── CONTACT PAGE ── */
  .wgi-contact-hero {
    padding: 120px 20px 60px !important;
  }

  .wgi-contact-hero-title {
    font-size: 40px !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 20px !important;
  }

  .wgi-contact-hero-subtitle {
    position: relative !important;
    left: auto !important;
    top: auto !important;
  }

  .wgi-contact-split {
    flex-direction: column !important;
    padding: 40px 20px !important;
    gap: 40px !important;
  }

  .wgi-contact-form-col {
    flex: auto !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .wgi-contact-map-col {
    width: 100% !important;
    margin: 0 !important;
  }

  .wgi-contact-map-img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  /* ── BASIC PAGE ── */
  .wgi-basic-page {
    padding: 120px 20px 60px !important;
  }

  /* ── STATIC PAGE (MOBILE) ── */
  .static-page-hero {
    padding-top: 120px !important;
    padding-bottom: 40px !important;
  }

  .static-page-hero h1 {
    font-size: 40px !important;
  }

  .static-page-container {
    padding-inline: 20px !important;
  }

  .static-page-content {
    padding-bottom: 80px !important;
  }

  .static-page-content .static-content-inner {
    font-size: 16px !important;
  }

}

.panel-text p {
  margin: 0;
}

@media screen and (max-width: 1023px) {
  .panel-text br {
    display: none;
  }
}

.wgi-footer-nav a {
  opacity: 0.8 !important;
}

.wgi-footer-nav .address {
  opacity: 0.8 !important;
}

.wgi-home-connect {
  height: 60vh !important;
}

@media screen and (max-width: 1023px) {
  .wgi-home-connect {
    height: 100vh !important;
  }
}

.wgi-portfolio-overlay-link span {
  transition: transform 300ms cubic-bezier(.22, .61, .36, 1);
  display: inline-block;
  transform: translateX(8px);
}

.wgi-portfolio-overlay-link:hover span {
  transform: translateX(13px);
}

#wg-stage {
  background: var(--color-cream) !important;
}

.static-page-hero {
  padding-bottom: 0px !important;
  text-align: center;

}

.static-page-content {
  padding-top: 100px;
}

/* ── iOS Video Player Prevention ─────────────────────────────
   Ensures portfolio background videos never open the native
   iOS video player on tap. pointer-events:none is set inline
   too; this rule is a secondary safety net.
   ──────────────────────────────────────────────────────────── */
.wgi-portfolio-sticky-panel video {
  pointer-events: none !important;
  -webkit-user-select: none;
  user-select: none;
  /* Prevent iOS from showing the media controls overlay */
  -webkit-media-controls: none;
}

/* Suppress any WebKit-injected media controls shadow DOM */
.wgi-portfolio-sticky-panel video::-webkit-media-controls,
.wgi-portfolio-sticky-panel video::-webkit-media-controls-enclosure,
.wgi-portfolio-sticky-panel video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}