/**
 * JAMS footer - modern GACOR UX
 * Loaded after gacor-theme.css
 */

body.jams-gacor-header #footer-outer,
body.jams-gacor-header #footer-outer[data-using-bg-img="true"],
body.jams-gacor-header #footer-outer[style] {
  background-color: var(--gacor-dark, #0b1220) !important;
  background-image: none !important;
  padding-top: 0 !important;
  border-top: 3px solid var(--gacor-orange, #00aeef);
  font-family: var(--gacor-font, "DM Sans", sans-serif);
}

body.jams-gacor-header #footer-outer:before,
body.jams-gacor-header #footer-outer:after {
  display: none !important;
  content: none !important;
}

body.jams-gacor-header #footer-outer .container {
  max-width: var(--gacor-container, 1320px);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

body.jams-gacor-header #footer-outer #footer-widgets {
  padding: 0 !important;
}

body.jams-gacor-header .jams-footer-eyebrow,
body.jams-gacor-header .jams-footer-col__label {
  display: block;
  margin: 0 0 10px;
  color: var(--gacor-orange, #00aeef) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Newsletter */
body.jams-gacor-header .jams-footer-newsletter {
  padding: 64px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(1200px 280px at 12% 0%, rgba(0, 174, 239, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
}

body.jams-gacor-header .jams-footer-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px 56px;
}

body.jams-gacor-header .jams-footer-newsletter__copy {
  flex: 1 1 380px;
  max-width: 520px;
}

body.jams-gacor-header .jams-footer-newsletter .jams-footer-eyebrow {
  margin-bottom: 14px;
}

body.jams-gacor-header .jams-footer-newsletter__title {
  margin: 0 0 12px !important;
  color: #fff !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

body.jams-gacor-header .jams-footer-newsletter__text {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  max-width: 36ch;
}

body.jams-gacor-header .jams-footer-newsletter__form {
  flex: 1 1 560px;
  width: 100%;
  max-width: 620px;
}

body.jams-gacor-header .jams-footer-newsletter__label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: var(--gacor-font, "DM Sans", sans-serif) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.jams-gacor-header .jams-footer-newsletter__hint {
  margin: 10px 0 0 !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .es-form-field-container,
body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .es_subscription_form .es-form-field-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(0, 0, 0, 0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .es_subscription_form:focus-within .es-form-field-container,
body.jams-gacor-header #footer-outer .jams-footer-newsletter__form:focus-within .es-form-field-container {
  border-color: rgba(0, 174, 239, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18) !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: auto !important;
  max-width: none !important;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* ES builder leaves an empty spacer row - remove it from the flex line */
body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .es-form-field-container > .gjs-row:first-child {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  flex: 0 0 0 !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-cell {
  display: flex !important;
  align-items: stretch;
  width: auto !important;
  max-width: none !important;
}

/* Email field grows; subscribe stays compact */
body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row:has(input.es-email),
body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row:nth-child(2) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row:has(input.es-email) .gjs-cell,
body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row:nth-child(2) .gjs-cell {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row:has(input[type="submit"]),
body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row:nth-child(3) {
  flex: 0 0 auto !important;
  width: auto !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row:has(input[type="submit"]) .gjs-cell,
body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row:nth-child(3) .gjs-cell {
  flex: 0 0 auto !important;
  width: auto !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input.es-email,
body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input[type="email"]:not(.es_required_field) {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 48px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 15px !important;
  font-family: inherit !important;
  box-shadow: none !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input.es-email:focus {
  outline: none;
  background: transparent !important;
  border: none !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input.es-email::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input[type="submit"] {
  flex: 0 0 auto;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 26px !important;
  width: auto !important;
  min-width: 132px;
  background: var(--gacor-orange, #00aeef) !important;
  border: none !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input[type="submit"]:hover {
  background: var(--gacor-orange-hover, #0095d0) !important;
}

body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input[type="submit"]:active {
  transform: translateY(1px);
}

/* Columns */
body.jams-gacor-header .jams-footer-columns {
  padding: 48px 0 40px;
}

body.jams-gacor-header .jams-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 32px;
  align-items: start;
}

body.jams-gacor-header .jams-footer-col .widget {
  margin: 0;
}

body.jams-gacor-header .jams-footer-col .textwidget strong {
  display: block;
  margin: 0 0 14px;
  color: var(--gacor-orange, #00aeef) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.jams-gacor-header .jams-footer-col .textwidget p {
  margin: 0 0 2px !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  display: block !important;
}

body.jams-gacor-header .jams-footer-col .textwidget p:has(a[href^="tel"]) {
  margin-top: 10px !important;
}

body.jams-gacor-header .jams-footer-col .textwidget a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

body.jams-gacor-header .jams-footer-col .textwidget a:hover {
  color: var(--gacor-orange, #00aeef);
}

body.jams-gacor-header .jams-footer-contact-item {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 16px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.35 !important;
  text-decoration: none;
}

body.jams-gacor-header .jams-footer-contact-item span {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.jams-gacor-header .jams-footer-contact-item:hover {
  color: var(--gacor-orange, #00aeef) !important;
}

body.jams-gacor-header .jams-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

body.jams-gacor-header .jams-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

body.jams-gacor-header .jams-footer-links a:hover {
  color: var(--gacor-orange, #00aeef);
  transform: translateX(3px);
}

body.jams-gacor-header .jams-footer-links__cta {
  display: inline-flex !important;
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--gacor-orange, #00aeef);
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.jams-gacor-header .jams-footer-links__cta:hover {
  background: var(--gacor-orange-hover, #0095d0);
  color: #fff !important;
  transform: none;
}

/* Copyright */
body.jams-gacor-header #footer-outer #copyright {
  background: var(--gacor-near-black, #111) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

body.jams-gacor-header #footer-outer #copyright .container,
body.jams-gacor-header #footer-outer #copyright .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
}

body.jams-gacor-header #footer-outer #copyright .col {
  float: none;
  margin: 0;
  padding: 0;
}

body.jams-gacor-header #footer-outer #copyright .col.span_5 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center !important;
  gap: 14px;
  flex: 1 1 auto;
  width: auto;
}

/* Compact brand in copyright bar */
body.jams-gacor-header #footer-outer #copyright .jams-footer-brand {
  margin: 0;
  padding: 0;
  border: none;
  flex: 0 0 auto;
}

body.jams-gacor-header #footer-outer #copyright .jams-footer-brand .widget {
  margin: 0 !important;
}

body.jams-gacor-header #footer-outer #copyright .jams-footer-brand img {
  display: block;
  width: auto !important;
  max-width: 96px !important;
  height: auto !important;
  opacity: 0.9;
}

body.jams-gacor-header #footer-outer #copyright .col.span_5 > p {
  margin: 0 !important;
}

body.jams-gacor-header #footer-outer #copyright .col.span_7 {
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
}

body.jams-gacor-header #footer-outer #copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px !important;
}

body.jams-gacor-header #footer-outer #copyright .social {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  float: none !important;
}

body.jams-gacor-header #footer-outer #copyright .social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gacor-orange, #00aeef);
  color: #fff !important;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

body.jams-gacor-header #footer-outer #copyright .social li a:hover {
  background: var(--gacor-orange-hover, #0095d0);
  transform: translateY(-2px);
}

body.jams-gacor-header #footer-outer #copyright .social li a i {
  color: #fff !important;
  font-size: 14px;
}

@media (max-width: 1100px) {
  body.jams-gacor-header .jams-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet: use the width - 2-col offices + compact newsletter */
@media (min-width: 641px) and (max-width: 999px) {
  body.jams-gacor-header #footer-outer .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  body.jams-gacor-header .jams-footer-newsletter {
    padding: 48px 0;
  }

  body.jams-gacor-header .jams-footer-newsletter__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  body.jams-gacor-header .jams-footer-newsletter__copy {
    max-width: 42ch;
    flex: 0 1 auto;
  }

  body.jams-gacor-header .jams-footer-newsletter__form {
    max-width: 560px;
    flex: 0 1 auto;
  }

  body.jams-gacor-header .jams-footer-newsletter__title {
    font-size: 30px !important;
    max-width: 18ch;
  }

  /* Keep email + Subscribe on one row (not stacked full-bleed) */
  body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row,
  body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .es-form-field-container {
    flex-direction: row !important;
  }

  body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input.es-email {
    border-right: none !important;
    height: 48px !important;
  }

  body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input[type="submit"] {
    width: auto !important;
    min-width: 140px;
    flex: 0 0 auto;
  }

  body.jams-gacor-header .jams-footer-columns {
    padding: 40px 0 36px;
  }

  body.jams-gacor-header .jams-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
  }

  body.jams-gacor-header .jams-footer-col--explore .jams-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 10px;
    width: 100%;
  }

  body.jams-gacor-header .jams-footer-col--explore .jams-footer-links__cta {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body.jams-gacor-header #footer-outer #copyright .container,
  body.jams-gacor-header #footer-outer #copyright .row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    gap: 12px 20px;
  }

  body.jams-gacor-header #footer-outer #copyright .col.span_7 {
    margin-left: auto;
  }

  body.jams-gacor-header #footer-outer #copyright .social {
    justify-content: flex-end;
  }
}

/* Phone: stack everything */
@media (max-width: 640px) {
  body.jams-gacor-header #footer-outer .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.jams-gacor-header .jams-footer-newsletter {
    padding: 40px 0;
  }

  body.jams-gacor-header .jams-footer-newsletter__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  body.jams-gacor-header .jams-footer-newsletter__copy,
  body.jams-gacor-header .jams-footer-newsletter__form {
    max-width: none;
    flex: 1 1 auto;
  }

  body.jams-gacor-header .jams-footer-newsletter__title {
    font-size: 24px !important;
    max-width: none;
  }

  body.jams-gacor-header .jams-footer-newsletter__text {
    font-size: 14px;
  }

  body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row,
  body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .es-form-field-container {
    flex-direction: column !important;
  }

  body.jams-gacor-header #footer-outer .jams-footer-newsletter__form .gjs-row {
    gap: 8px;
  }

  body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input.es-email {
    border-right: none !important;
    margin-bottom: 0 !important;
    height: 48px !important;
  }

  body.jams-gacor-header #footer-outer .jams-footer-newsletter__form input[type="submit"] {
    width: 100% !important;
    min-width: 0;
  }

  body.jams-gacor-header .jams-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.jams-gacor-header #footer-outer #copyright .container,
  body.jams-gacor-header #footer-outer #copyright .row {
    flex-direction: column;
    text-align: center;
  }

  body.jams-gacor-header #footer-outer #copyright .col.span_7 {
    margin-left: 0;
  }

  body.jams-gacor-header #footer-outer #copyright .social {
    justify-content: center;
  }
}
