/*
Theme Name: TG Felicity Solar Authorized Copy
Theme URI: https://tg-felicity-solar.com/
Author: TG Felicity Solar
Description: Authorized WordPress presentation theme based on the supplied Felicity Solar reference.
Version: 1.5.0
Text Domain: tg-felicity-authorized
*/

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }
body.tg-modal-open { overflow: hidden !important; }

/* User-selected removals: rewards banner, floating panda/VR buttons, day/night scene. */
.elementor-element.elementor-element-030d8f0,
.elementor-element.elementor-element-703470b3,
.elementor-element.elementor-element-3721c8a1,
.elementor-element.elementor-element-bee4ffb {
  display: none !important;
}

.tg-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: .55rem;
  padding: .28rem .5rem;
  border-radius: .35rem;
  background: #f4b400;
  color: #111;
  font: 800 .82rem/1 Arial, sans-serif;
  letter-spacing: .08em;
  vertical-align: middle;
}

.tg-company-disclosure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .7rem 1.1rem;
  padding: 1rem 1.25rem;
  background: #111;
  color: #fff;
  font-size: .92rem;
  text-align: center;
}

.tg-company-disclosure a {
  color: #f4b400;
  font-weight: 700;
}

.tg-support-modal[hidden] { display: none !important; }
.tg-support-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.tg-support-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}

.tg-support-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 2.1rem 1.25rem 1.35rem;
  border-top: 5px solid #f4b400;
  border-radius: 16px;
  background: #fff;
  color: #171717;
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
  text-align: center;
}

.tg-support-card h2 { margin: .65rem 0 .4rem; color: #151515; font-size: clamp(1.55rem, 5vw, 2.05rem); }
.tg-support-copy { margin: 0 auto 1.25rem; max-width: 34ch; color: #555; }
.tg-support-kicker { display: inline-grid; place-items: center; min-width: 52px; min-height: 38px; padding: .4rem .8rem; border-radius: 8px; background: #f4b400; color: #111; font-weight: 900; letter-spacing: .12em; }
.tg-support-close { position: absolute; top: .55rem; left: .65rem; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #eee; color: #111; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.tg-support-actions { display: grid; gap: .65rem; }
.tg-support-action { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: .7rem 1rem; border-radius: 9px; color: #fff !important; font-weight: 800; text-decoration: none !important; overflow-wrap: anywhere; }
.tg-call { background: #16324f; }
.tg-whatsapp { background: #128c4a; }
.tg-email { background: #6d4c19; }
.tg-support-action:hover, .tg-support-action:focus { filter: brightness(1.08); transform: translateY(-1px); }

.tg-mobile-problems { display: none; }

@media (max-width: 921px) {
  body { min-width: 0; }
  .elementor-container,
  .e-con { max-width: 100%; }
  .tg-company-disclosure { align-items: stretch; flex-direction: column; }
  .tg-company-disclosure a { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .tg-support-card { border-radius: 13px; }
}

@media (max-width: 767px) {
  .elementor-element.elementor-element-e9fb3a2 { display: none !important; }

  .tg-mobile-problems {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #0d1117;
    color: #fff;
  }

  .tg-mobile-problems__header {
    margin: 0;
    padding: 2rem 1.25rem 1.7rem;
    background: linear-gradient(135deg, #1f2c40 0%, #111925 100%);
    text-align: right;
  }

  .tg-mobile-problems__header span {
    display: block;
    margin-bottom: .35rem;
    color: #fff;
    font-size: clamp(1.45rem, 7vw, 2rem);
    font-weight: 800;
  }

  .tg-mobile-problems__header h2 {
    margin: 0;
    color: #f27622;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.25;
  }

  .tg-mobile-problems__media {
    margin: 0;
    width: 100%;
    background: #000;
  }

  .tg-mobile-problems__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .tg-mobile-problems__cards {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    background: #111925;
  }

  .tg-mobile-problems__cards p {
    margin: 0;
    padding: .9rem 1rem;
    border-inline-start: 4px solid #f27622;
    border-radius: 10px;
    background: #fff;
    color: #273246;
    font-size: .95rem;
    line-height: 1.65;
  }
}
