/* =========================================================
   JING REN TANG — GLOBAL FOOTER SYSTEM v1.0
   File: 15-global-footer.css

   Controls:
   - Global footer HTML
   - Footer navigation
   - Footer legal bar
   - Divi mobile sticky booking button
   - Divi back-to-top spacing

   Required Divi Button CSS class:
   jrt-sticky-booking

   Version: 1.0
   Last update: July 2026
========================================================= */


/* =========================================================
   00 — FOOTER VARIABLES
========================================================= */

.jrt-footer {
  --jrt-footer-green: var(--jrt-green, #1f4b43);
  --jrt-footer-green-deep: #143b35;
  --jrt-footer-paper: var(--jrt-paper, #f7f3ea);
  --jrt-footer-paper-soft: rgba(247, 243, 234, 0.72);
  --jrt-footer-gold: var(--jrt-gold, #b49758);
  --jrt-footer-line: rgba(247, 243, 234, 0.16);

  --jrt-footer-container: 1280px;
  --jrt-footer-gutter: 48px;

  --jrt-footer-serif:
    "Alice",
    Georgia,
    "Times New Roman",
    serif;

  --jrt-footer-sans:
    "Inter",
    "Helvetica Neue",
    Arial,
    sans-serif;
}


/* =========================================================
   01 — GLOBAL RESET
========================================================= */

.jrt-footer,
.jrt-footer *,
.jrt-footer *::before,
.jrt-footer *::after {
  box-sizing: border-box;
}

.jrt-footer {
  position: relative;

  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

  color: var(--jrt-footer-paper);
  background: var(--jrt-footer-green);

  font-family: var(--jrt-footer-serif);
}

.jrt-footer a {
  color: inherit;
  text-decoration: none;
}

.jrt-footer img {
  display: block;

  width: auto;
  max-width: 100%;
  height: auto;
}

.jrt-footer ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.jrt-footer address {
  font-style: normal;
}


/* Prevent Divi module spacing around the footer code module */

.et-l--footer .et_pb_section,
.et-l--footer .et_pb_row,
.et-l--footer .et_pb_column,
.et-l--footer .et_pb_module,
.et-l--footer .et_pb_code,
.et-l--footer .et_pb_code_inner {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.et-l--footer .et_pb_section {
  width: 100% !important;
  max-width: none !important;

  padding: 0 !important;

  background: transparent !important;
}

.et-l--footer .et_pb_row {
  width: 100% !important;
  max-width: none !important;

  padding: 0 !important;
}


/* =========================================================
   02 — CONTAINER
========================================================= */

.jrt-footer__container {
  width: calc(100% - var(--jrt-footer-gutter));
  max-width: var(--jrt-footer-container);

  margin-right: auto;
  margin-left: auto;
}


/* =========================================================
   03 — MAIN FOOTER SURFACE
========================================================= */

.jrt-footer__main {
  padding: 76px 0 68px;

  background: var(--jrt-footer-green);
}


/* =========================================================
   04 — TOP BRAND AREA
========================================================= */

.jrt-footer__top {
  display: grid;
  grid-template-columns:
    minmax(160px, 210px)
    minmax(0, 1fr)
    minmax(190px, 220px);

  gap: 72px;
  align-items: start;

  padding-bottom: 68px;

  border-bottom:
    1px solid
    var(--jrt-footer-line);
}


/* =========================================================
   05 — LOGO
========================================================= */

.jrt-footer__brand {
  min-width: 0;
}

.jrt-footer__logo {
  display: inline-block;
}

.jrt-footer__logo img {
  width: 180px;
  max-width: 100%;
}


/* =========================================================
   06 — STATEMENT
========================================================= */

.jrt-footer__statement {
  max-width: 650px;
}

.jrt-footer__eyebrow {
  margin: 0 0 20px;

  color: var(--jrt-footer-gold);

  font-family: var(--jrt-footer-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.15em;

  text-transform: uppercase;
}

.jrt-footer__statement h2 {
  max-width: 580px;

  margin: 0 0 24px;

  color: var(--jrt-footer-paper);

  font-family: var(--jrt-footer-serif);
  font-size: clamp(40px, 4vw, 62px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.jrt-footer__lead {
  max-width: 620px;

  margin: 0 0 25px;

  color: var(--jrt-footer-paper-soft);

  font-family: var(--jrt-footer-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
}

.jrt-footer__location-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin: 0;

  color: var(--jrt-footer-paper);

  font-family: var(--jrt-footer-serif);
  font-size: 17px;
  line-height: 1.5;
}


/* =========================================================
   07 — TOP CTA
========================================================= */

.jrt-footer__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding-top: 4px;
}

.jrt-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 14px 27px;

  color: var(--jrt-footer-green-deep) !important;
  background: var(--jrt-footer-gold);

  border:
    1px solid
    var(--jrt-footer-gold);

  border-radius: 999px;

  font-family: var(--jrt-footer-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;

  text-align: center;

  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.jrt-footer__button:hover {
  color: var(--jrt-footer-paper) !important;
  background: transparent;

  border-color:
    rgba(247, 243, 234, 0.55);

  transform: translateY(-1px);
}

.jrt-footer__secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 16px;
  padding-bottom: 4px;

  color: var(--jrt-footer-paper) !important;

  border-bottom:
    1px solid
    rgba(180, 151, 88, 0.62);

  font-family: var(--jrt-footer-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;

  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.jrt-footer__secondary-link:hover {
  color: var(--jrt-footer-gold) !important;
  border-color: var(--jrt-footer-gold);
}


/* =========================================================
   08 — FOOTER NAVIGATION GRID
========================================================= */

.jrt-footer__navigation {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 56px;

  padding-top: 60px;
}

.jrt-footer__column {
  min-width: 0;
}

.jrt-footer__column h3 {
  margin: 0 0 24px;

  color: var(--jrt-footer-paper);

  font-family: var(--jrt-footer-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.jrt-footer__column ul {
  display: grid;
  gap: 14px;
}

.jrt-footer__column li {
  margin: 0;
  padding: 0;
}

.jrt-footer__column a {
  display: inline;

  color: var(--jrt-footer-paper-soft) !important;

  font-family: var(--jrt-footer-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;

  text-decoration-thickness: 1px;
  text-underline-offset: 4px;

  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.jrt-footer__column a:hover {
  color: var(--jrt-footer-gold) !important;

  text-decoration: underline;
  text-decoration-color:
    rgba(180, 151, 88, 0.65);
}


/* =========================================================
   09 — PRACTICAL INFORMATION
========================================================= */

.jrt-footer__contact {
  display: grid;
  gap: 10px;

  margin-top: 28px;
  padding-top: 24px;

  border-top:
    1px solid
    var(--jrt-footer-line);
}

.jrt-footer__contact a {
  color: var(--jrt-footer-paper-soft) !important;

  font-family: var(--jrt-footer-serif);
  font-size: 15px;
  line-height: 1.45;
}

.jrt-footer__contact a:hover {
  color: var(--jrt-footer-gold) !important;
}


/* =========================================================
   10 — BOTTOM LEGAL BAR
========================================================= */

.jrt-footer__bottom {
  padding: 21px 0;

  background: var(--jrt-footer-green-deep);

  border-top:
    1px solid
    rgba(247, 243, 234, 0.04);
}

.jrt-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;
}

.jrt-footer__bottom p {
  margin: 0;

  color:
    rgba(247, 243, 234, 0.58);

  font-family: var(--jrt-footer-serif);
  font-size: 12px;
  line-height: 1.5;
}

.jrt-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;

  gap: 24px;
}

.jrt-footer__legal a {
  color:
    rgba(247, 243, 234, 0.58) !important;

  font-family: var(--jrt-footer-serif);
  font-size: 12px;
  line-height: 1.5;

  transition: color 180ms ease;
}

.jrt-footer__legal a:hover {
  color: var(--jrt-footer-gold) !important;
}


/* =========================================================
   11 — KEYBOARD FOCUS
========================================================= */

.jrt-footer a:focus-visible {
  outline:
    1px solid
    var(--jrt-footer-gold);

  outline-offset: 5px;

  border-radius: 3px;
}


/* =========================================================
   12 — MEDIUM DESKTOP
========================================================= */

@media (max-width: 1180px) {

  .jrt-footer {
    --jrt-footer-gutter: 38px;
  }

  .jrt-footer__top {
    grid-template-columns:
      170px
      minmax(0, 1fr)
      200px;

    gap: 48px;
  }

  .jrt-footer__navigation {
    gap: 38px;
  }

  .jrt-footer__column h3 {
    font-size: 27px;
  }
}


/* =========================================================
   13 — TABLET
========================================================= */

@media (max-width: 980px) {

  .jrt-footer {
    --jrt-footer-gutter: 34px;
  }

  .jrt-footer__main {
    padding:
      60px 0
      54px;
  }

  .jrt-footer__top {
    grid-template-columns:
      160px
      minmax(0, 1fr);

    gap: 42px;

    padding-bottom: 52px;
  }

  .jrt-footer__statement h2 {
    font-size: clamp(38px, 6vw, 52px);
  }

  .jrt-footer__cta {
    grid-column: 2;

    padding-top: 0;
  }

  .jrt-footer__navigation {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap:
      48px 54px;

    padding-top: 50px;
  }

  .jrt-footer__bottom {
    padding-bottom:
      calc(21px + env(safe-area-inset-bottom));
  }
}


/* =========================================================
   14 — MOBILE
========================================================= */

@media (max-width: 767px) {

  .jrt-footer {
    --jrt-footer-gutter: 28px;
  }

  .jrt-footer__main {
    padding:
      48px 0
      42px;
  }

  .jrt-footer__top {
    display: block;

    padding-bottom: 42px;
  }

  .jrt-footer__brand {
    margin-bottom: 32px;
  }

  .jrt-footer__logo img {
    width: 152px;
  }

  .jrt-footer__statement {
    max-width: none;
  }

  .jrt-footer__eyebrow {
    margin-bottom: 16px;

    font-size: 10px;
    line-height: 1.55;
    letter-spacing: 0.13em;
  }

  .jrt-footer__statement h2 {
    max-width: 500px;

    margin-bottom: 20px;

    font-size: clamp(38px, 11vw, 50px);
    line-height: 1;
  }

  .jrt-footer__lead {
    margin-bottom: 20px;

    font-size: 16px;
    line-height: 1.65;
  }

  .jrt-footer__location-line {
    font-size: 16px;
  }

  .jrt-footer__cta {
    align-items: stretch;

    margin-top: 30px;
  }

  .jrt-footer__button {
    width: 100%;

    min-height: 52px;
  }

  .jrt-footer__secondary-link {
    align-self: flex-start;

    margin-top: 18px;
  }

  .jrt-footer__navigation {
    grid-template-columns: 1fr;

    gap: 0;

    padding-top: 14px;
  }

  .jrt-footer__column {
    padding:
      28px 0
      30px;

    border-bottom:
      1px solid
      var(--jrt-footer-line);
  }

  .jrt-footer__column:last-child {
    padding-bottom: 4px;

    border-bottom: 0;
  }

  .jrt-footer__column h3 {
    margin-bottom: 20px;

    font-size: 28px;
  }

  .jrt-footer__column ul {
    gap: 12px;
  }

  .jrt-footer__column a,
  .jrt-footer__contact a {
    font-size: 15px;
  }

  .jrt-footer__bottom {
    padding:
      22px 0
      calc(
        100px +
        env(safe-area-inset-bottom)
      );
  }

  .jrt-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;

    gap: 14px;
  }

  .jrt-footer__legal {
    justify-content: flex-start;

    gap:
      10px 20px;
  }
}


/* =========================================================
   15 — SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .jrt-footer {
    --jrt-footer-gutter: 22px;
  }

  .jrt-footer__main {
    padding-top: 42px;
  }

  .jrt-footer__logo img {
    width: 138px;
  }

  .jrt-footer__statement h2 {
    font-size: 39px;
  }

  .jrt-footer__column h3 {
    font-size: 26px;
  }
}



/* =========================================================
   16 — DIVI STICKY BOOKING BUTTON
   Compact mobile pill — bottom right

   Add CSS class to the Divi Button Module:
   jrt-sticky-booking

   Divi Position:
   Default
========================================================= */


/* ---------------------------------------------------------
   Desktop
   Hide the mobile floating appointment module
--------------------------------------------------------- */

body .jrt-sticky-booking {
  display: none !important;
}


/* ---------------------------------------------------------
   Tablet and mobile
--------------------------------------------------------- */

@media (max-width: 980px) {

  /*
   * Module wrapper.
   * Divi normally places the custom class here.
   */

  body .et-l--footer .jrt-sticky-booking,
  body .jrt-sticky-booking {
    position: fixed !important;

    right: 14px !important;
    bottom:
      calc(
        12px +
        env(safe-area-inset-bottom)
      ) !important;

    left: auto !important;
    top: auto !important;

    z-index: 9998 !important;

    display: block !important;

    width: auto !important;
    max-width: none !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: right !important;

    transform: none !important;

    pointer-events: none !important;
  }


  /*
   * Divi sometimes adds an additional wrapper.
   */

  body .jrt-sticky-booking
  .et_pb_button_module_wrapper {
    display: block !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: right !important;

    pointer-events: none !important;
  }


  /*
   * Actual Divi button.
   */

  body .jrt-sticky-booking
  .et_pb_button,

  body a.et_pb_button.jrt-sticky-booking {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 88px) !important;
    min-height: 48px !important;
    height: auto !important;

    margin: 0 !important;
    padding:
      11px 24px !important;

    color:
      var(--jrt-white, #ffffff) !important;

    -webkit-text-fill-color:
      var(--jrt-white, #ffffff) !important;

    background:
      rgba(31, 75, 67, 0.98) !important;

    border:
      1px solid
      rgba(255, 255, 255, 0.92) !important;

    border-radius:
      999px !important;

    box-shadow:
      0 8px 24px
      rgba(18, 46, 41, 0.22) !important;

    font-family:
      "Alice",
      Georgia,
      "Times New Roman",
      serif !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.035em !important;

    text-align: center !important;
    white-space: nowrap !important;
    text-decoration: none !important;

    transform: none !important;

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto !important;

    transition:
      color 180ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }


  body .jrt-sticky-booking
  .et_pb_button:hover,

  body a.et_pb_button.jrt-sticky-booking:hover {
    color:
      var(--jrt-white, #ffffff) !important;

    -webkit-text-fill-color:
      var(--jrt-white, #ffffff) !important;

    background:
      var(--jrt-gold, #b49758) !important;

    border-color:
      var(--jrt-gold, #b49758) !important;

    box-shadow:
      0 10px 28px
      rgba(18, 46, 41, 0.26) !important;

    transform:
      translateY(-1px) !important;
  }


  /*
   * Remove Divi's animated arrow/icon.
   */

  body .jrt-sticky-booking
  .et_pb_button::after,

  body a.et_pb_button.jrt-sticky-booking::after {
    display: none !important;

    margin: 0 !important;

    content: none !important;
  }


  /*
   * Back-to-top button stays above the booking pill.
   */

  body .et_pb_scroll_top.et-pb-icon {
    right: 12px !important;

    bottom:
      calc(
        72px +
        env(safe-area-inset-bottom)
      ) !important;

    z-index: 9997 !important;

    width: 40px !important;
    height: 40px !important;

    border-radius:
      7px 0 0 7px !important;

    line-height: 40px !important;
  }


  /*
   * Only a small safety area is needed because
   * the button is compact and aligned to the right.
   */

  body {
    padding-bottom:
      calc(
        70px +
        env(safe-area-inset-bottom)
      );
  }
}


/* =========================================================
   17 — SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  body .et-l--footer .jrt-sticky-booking,
  body .jrt-sticky-booking {
    right: 9px !important;

    bottom:
      calc(
        9px +
        env(safe-area-inset-bottom)
      ) !important;
  }

  body .jrt-sticky-booking
  .et_pb_button,

  body a.et_pb_button.jrt-sticky-booking {
    max-width:
      calc(100vw - 70px) !important;

    min-height: 46px !important;

    padding:
      10px 20px !important;

    font-size: 15px !important;
    letter-spacing: 0.025em !important;
  }

  body .et_pb_scroll_top.et-pb-icon {
    right: 8px !important;

    bottom:
      calc(
        66px +
        env(safe-area-inset-bottom)
      ) !important;
  }

  body {
    padding-bottom:
      calc(
        64px +
        env(safe-area-inset-bottom)
      );
  }
}