/* ==========================================================================
   Augusta Pediatric Associates — Appointments and FAQ

   Both pages were the same shape: a photograph under a flat coral wash with the
   title written on it, then one long column of theme defaults beside a sticky
   contact list.

   They now open with the site's standard hero band — the photograph, a scrim
   weighted to the bottom third, the title in the corner — and the copy below
   is set to the same system as About, Services and Patient Resources: navy
   uppercase headings, one reading measure, a tinted card where something needs
   to stand apart, `rem` for every shared width.

   The two-column layout is kept. The sticky contact list beside the copy is
   genuinely useful on a page about booking an appointment; it only needed to
   stop looking like a menu.
   ========================================================================== */

:root {
  --apa-info-navy:  #224d7b;
  --apa-info-red:   #d5344b;
  --apa-info-deep:  #c9283f;   /* red at 4.92:1 on the tint; #d5344b is 4.29 */
  --apa-info-body:  #45536d;
  --apa-info-rule:  #e4eaf1;
  --apa-info-tint:  #eff4fa;
  --apa-info-wash:  #f8e8ea;
}

/* --------------------------------------------------------------------------
   1 · The hero
   -------------------------------------------------------------------------- */

.apa-page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 54vw, 700px);
  background-color: #16283f;      /* what shows while the photograph loads */
  background-image: var(--apa-hero-img);
  background-size: cover;
  background-position: var(--apa-hero-pos, center);
  overflow: hidden;
}

.apa-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
              rgba(9, 24, 41, .86) 0%,
              rgba(9, 24, 41, .70) 18%,
              rgba(9, 24, 41, .34) 38%,
              rgba(9, 24, 41, .06) 55%,
              rgba(9, 24, 41, 0)   70%);
}

/* z-index, not source order: `::after` paints after the element's in-flow
   children, so without this the scrim would sit on top of the heading. */
.apa-page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 30px 44px;
}

.apa-page-hero h1 {
  margin: 0;
  max-width: 20ch;
  color: #fff;
  font-size: clamp(30px, 5.2vw, 68px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .005em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 0 26px rgba(0, 0, 0, .32);
}

.apa-page-hero .thb-slidetype { visibility: visible; }

/* --------------------------------------------------------------------------
   2 · The body
   -------------------------------------------------------------------------- */

.apa-info { padding: clamp(44px, 5vw, 72px) 0 10px; }

/* The section headings are `.thb-slidetype` blocks, and the page carries an
   inline `color:#4987c6` on each — plus `font-size:3em` on one of the two, so
   the pair did not even match each other. `!important` is what outranks an
   inline style; both are pinned to the navy every other page uses. */
.apa-info h1,
.apa-info h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.8vw, 34px) !important;
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--apa-info-navy) !important;
}

.apa-info h1:not(:first-child),
.apa-info h2:not(:first-child) { margin-top: 46px; }

.apa-info h3 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--apa-info-navy);
}

.apa-info p {
  margin: 0 0 20px;
  max-width: 44rem;
  font-size: 17px;
  line-height: 1.78;
  color: var(--apa-info-body);
}

.apa-info li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.78;
  color: var(--apa-info-body);
}

.apa-info a:not(.btn) { color: var(--apa-info-red); }

/* --------------------------------------------------------------------------
   3 · The contact list beside the copy
   --------------------------------------------------------------------------
   It is a theme menu; this makes it read as a card of details rather than
   navigation, and keeps it sticky, which is the point of it on these pages.
   -------------------------------------------------------------------------- */

/* The theme sticks this column itself, with sticky-kit. Where it comes to rest
   is set in `info-pages.js` — the plugin writes an inline `top`, which no
   stylesheet rule can usefully argue with. */

.apa-info-side .thb-page-menu-container {
  padding: 22px 24px 26px;
  border-radius: 16px;
  background: var(--apa-info-tint);
}

/* the menu has no title of its own; this names it so it reads as a card of
   details rather than three orphaned links */
.apa-info-side .thb-page-menu-container::before {
  content: "Get in Touch";
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--apa-info-deep);
}

.apa-info-side .thb-page-menu { margin: 0; padding: 0; list-style: none; }

.apa-info-side .thb-page-menu li { margin: 0; border-bottom: 1px solid #dde6f1; }

.apa-info-side .thb-page-menu li:last-child { border-bottom: 0; }

.apa-info-side .thb-page-menu a {
  display: block;
  position: relative;
  padding: 14px 10px;
  margin: 0 -10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--apa-info-navy) !important;   /* the theme repaints menu links */
  text-decoration: none;
  overflow: hidden;
}

/* the same wash, faded the same way, as the rows on Patient Resources */
.apa-info-side .thb-page-menu a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--apa-info-wash);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}

.apa-info-side .thb-page-menu a:hover::before,
.apa-info-side .thb-page-menu a:focus::before { opacity: 1; }

/* --------------------------------------------------------------------------
   4 · The FAQ accordion
   --------------------------------------------------------------------------
   The theme's own accordion, restyled. It stays an accordion: for ten
   questions that is the right pattern, and it is what people expect on a page
   called Frequently Asked Questions.
   -------------------------------------------------------------------------- */

.apa-info .vc_tta-panel {
  margin-bottom: 10px !important;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--apa-info-rule);
}

.apa-info .vc_tta-panel-heading {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.apa-info .vc_tta-panel-title > a {
  position: relative;
  padding: 20px 56px 20px 24px !important;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--apa-info-navy) !important;
  overflow: hidden;
}

.apa-info .vc_tta-panel-title > a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--apa-info-wash);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}

.apa-info .vc_tta-panel-title > a:hover::before { opacity: 1; }

.apa-info .vc_tta-panel.vc_active .vc_tta-panel-title > a { color: var(--apa-info-navy) !important; }

/* the plus/minus, in the brand red and on the right where it is looked for */
.apa-info .vc_tta-controls-icon {
  left: auto !important;
  right: 22px !important;
  border-color: var(--apa-info-red) !important;
}

.apa-info .vc_tta-controls-icon::before,
.apa-info .vc_tta-controls-icon::after { border-color: var(--apa-info-red) !important; }

.apa-info .vc_tta-panel-body {
  padding: 4px 24px 22px !important;
  border: 0 !important;
  background: transparent !important;
}

.apa-info .vc_tta-panel-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   5 · The closing card
   -------------------------------------------------------------------------- */

.apa-info .vc_custom_1604947931982 {
  border-radius: 18px;
  padding: 40px 30px !important;
  background: var(--apa-info-tint) !important;
}

.apa-info .vc_custom_1604947931982 h3 { margin-bottom: 10px; }

.apa-info .vc_custom_1604947931982 p { margin-left: auto; margin-right: auto; }
