/*
=========================================================
THE PRIVATE MED
Joomla 6 / Cassiopeia - user.css
Phase 1 Brand Foundation
=========================================================

Brand:
Midnight Navy  #071F31
Deep Navy      #0B2A3D
Limestone      #F5F1E8
Soft White     #FCFBF8
Bronze         #B28A4B
Charcoal       #272727

Recommended use:
templates/cassiopeia/css/user.css

Page-specific classes use the .tpm- prefix.
=========================================================
*/

/* =====================================================
1. BRAND TOKENS / ROOT
===================================================== */

:root {
  --tpm-navy: #071F31;
  --tpm-navy-2: #0B2A3D;
  --tpm-navy-3: #10384F;
  --tpm-limestone: #F5F1E8;
  --tpm-cream: #F9F6F0;
  --tpm-white: #FCFBF8;
  --tpm-bronze: #B28A4B;
  --tpm-bronze-dark: #8F6D39;
  --tpm-charcoal: #272727;
  --tpm-grey: #6E7276;
  --tpm-light-grey: #E8E4DD;
  --tpm-border: rgba(7,31,49,.13);
  --tpm-shadow: 0 18px 50px rgba(7,31,49,.10);
  --tpm-shadow-soft: 0 10px 32px rgba(7,31,49,.08);
  --tpm-radius: 3px;
  --tpm-radius-lg: 6px;
  --tpm-serif: Georgia, "Times New Roman", Times, serif;
  --tpm-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --tpm-content: 1280px;
  --tpm-reading: 860px;
}

/* =====================================================
2. GLOBAL / CASSIOPEIA BASE
===================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tpm-white);
  color: var(--tpm-charcoal);
  font-family: var(--tpm-sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-grid {
  background: var(--tpm-white);
}

.container-component {
  margin-top: 0;
  margin-bottom: 0;
}

main {
  min-width: 0;
}

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

a {
  color: var(--tpm-navy-2);
  text-decoration-color: rgba(178,138,75,.55);
  text-underline-offset: 3px;
  transition: color .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

a:hover,
a:focus {
  color: var(--tpm-bronze-dark);
}

::selection {
  background: var(--tpm-bronze);
  color: #fff;
}

/* =====================================================
3. TYPOGRAPHY
===================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--tpm-navy);
  font-family: var(--tpm-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
}

h1,
.h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

h2,
.h2 {
  font-size: clamp(1.9rem, 3.3vw, 3.15rem);
}

h3,
.h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

h4,
.h4 {
  font-size: 1.35rem;
}

p {
  margin-bottom: 1.2rem;
}

.lead {
  color: #4b5155;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

.tpm-kicker,
.tpm-eyebrow {
  display: block;
  margin-bottom: .8rem;
  color: var(--tpm-bronze-dark);
  font-family: var(--tpm-sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .19em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tpm-gold,
.tpm-bronze {
  color: var(--tpm-bronze);
}

.tpm-serif {
  font-family: var(--tpm-serif);
}

.tpm-italic {
  font-family: var(--tpm-serif);
  font-style: italic;
  font-weight: 400;
}

.tpm-center {
  text-align: center;
}

.tpm-small {
  font-size: .88rem;
}

.tpm-muted {
  color: var(--tpm-grey);
}

/* =====================================================
4. CASSIOPEIA HEADER
===================================================== */

.container-header {
  position: relative;
  z-index: 100;
  background: var(--tpm-navy);
  background-image: none;
  box-shadow: none;
}

.container-header .grid-child {
  max-width: var(--tpm-content);
}

.container-header .navbar-brand {
  margin: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}

.container-header .navbar-brand a {
  color: #fff;
  text-decoration: none;
}

.container-header .site-description {
  color: rgba(255,255,255,.72);
  font-size: .69rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.container-header .mod-menu {
  align-items: center;
}

.container-header .mod-menu > li {
  position: relative;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  padding: 1rem .8rem;
  color: rgba(255,255,255,.92);
  font-size: .79rem;
  font-weight: 500;
  letter-spacing: .075em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  color: var(--tpm-bronze);
}

.container-header .mod-menu > li > a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .58rem;
  height: 1px;
  background: var(--tpm-bronze);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.container-header .mod-menu > li > a:hover::after,
.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li.current > a::after {
  transform: scaleX(1);
}

/* Cassiopeia dropdown */
.container-header .mod-menu .metismenu.mod-menu .mm-collapse {
  background: var(--tpm-navy);
  border: 1px solid rgba(178,138,75,.22);
  box-shadow: var(--tpm-shadow-soft);
}

.container-header .mod-menu .metismenu.mod-menu .mm-collapse a {
  color: rgba(255,255,255,.9);
  font-size: .82rem;
}

.container-header .mod-menu .metismenu.mod-menu .mm-collapse a:hover,
.container-header .mod-menu .metismenu.mod-menu .mm-collapse a:focus {
  background: rgba(255,255,255,.05);
  color: var(--tpm-bronze);
}

/* Mobile menu button */
.container-header .navbar-toggler {
  border-color: rgba(178,138,75,.6);
  color: #fff;
}

.container-header .navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(178,138,75,.22);
}

/* =====================================================
5. BRAND / LOGO HELPERS
===================================================== */

.tpm-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.tpm-brand-the {
  margin-left: .18em;
  color: rgba(255,255,255,.92);
  font-size: .63rem;
  letter-spacing: .42em;
  text-transform: uppercase;
}

.tpm-brand-name {
  margin-top: .12rem;
  font-family: var(--tpm-serif);
  font-size: 1.65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tpm-brand-name strong {
  color: var(--tpm-bronze);
  font-weight: 400;
}

.tpm-brand-tagline {
  margin-top: .34rem;
  color: rgba(255,255,255,.62);
  font-size: .5rem;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* =====================================================
6. GLOBAL CONTAINERS / SECTION SYSTEM
===================================================== */

.tpm-wrap {
  width: min(calc(100% - 40px), var(--tpm-content));
  margin-inline: auto;
}

.tpm-reading {
  width: min(calc(100% - 40px), var(--tpm-reading));
  margin-inline: auto;
}

.tpm-section {
  padding: clamp(65px, 8vw, 110px) 0;
}

.tpm-section-sm {
  padding: clamp(42px, 5vw, 70px) 0;
}

.tpm-section-lg {
  padding: clamp(90px, 10vw, 145px) 0;
}

.tpm-bg-white {
  background: var(--tpm-white);
}

.tpm-bg-cream {
  background: var(--tpm-limestone);
}

.tpm-bg-navy {
  background: var(--tpm-navy);
  color: rgba(255,255,255,.86);
}

.tpm-bg-navy h1,
.tpm-bg-navy h2,
.tpm-bg-navy h3,
.tpm-bg-navy h4 {
  color: #fff;
}

.tpm-section-head {
  max-width: 790px;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.tpm-section-head.tpm-center {
  margin-inline: auto;
}

.tpm-section-head p:last-child {
  margin-bottom: 0;
}

.tpm-rule {
  width: 55px;
  height: 1px;
  margin: 1.4rem 0;
  border: 0;
  background: var(--tpm-bronze);
}

.tpm-center .tpm-rule {
  margin-inline: auto;
}

/* =====================================================
7. BUTTONS
===================================================== */

.btn,
.tpm-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border-radius: 0;
  padding: .82rem 1.55rem;
  font-family: var(--tpm-sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .095em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover,
.tpm-btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.tpm-btn-primary {
  border: 1px solid var(--tpm-bronze);
  background: var(--tpm-bronze);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.tpm-btn-primary:hover,
.tpm-btn-primary:focus {
  border-color: var(--tpm-bronze-dark);
  background: var(--tpm-bronze-dark);
  color: #fff;
}

.btn-secondary,
.tpm-btn-dark {
  border: 1px solid var(--tpm-navy);
  background: var(--tpm-navy);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus,
.tpm-btn-dark:hover,
.tpm-btn-dark:focus {
  border-color: var(--tpm-navy-3);
  background: var(--tpm-navy-3);
  color: #fff;
}

.tpm-btn-outline {
  border: 1px solid var(--tpm-bronze);
  background: transparent;
  color: var(--tpm-bronze);
}

.tpm-btn-outline:hover,
.tpm-btn-outline:focus {
  background: var(--tpm-bronze);
  color: #fff;
}

.tpm-btn-light {
  border: 1px solid rgba(255,255,255,.7);
  background: transparent;
  color: #fff;
}

.tpm-btn-light:hover,
.tpm-btn-light:focus {
  border-color: #fff;
  background: #fff;
  color: var(--tpm-navy);
}

.tpm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.7rem;
}

/* =====================================================
8. HERO SYSTEM
===================================================== */

.tpm-hero {
  position: relative;
  min-height: min(760px, 82vh);
  overflow: hidden;
  background: var(--tpm-navy);
  color: #fff;
  isolation: isolate;
}

.tpm-hero > img,
.tpm-hero-bg {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpm-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(7,31,49,.87) 0%,
      rgba(7,31,49,.67) 36%,
      rgba(7,31,49,.18) 72%,
      rgba(7,31,49,.08) 100%);
}

.tpm-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(0deg, rgba(7,31,49,.42), transparent);
}

.tpm-hero-inner {
  display: flex;
  min-height: inherit;
  align-items: center;
  padding: clamp(75px, 10vw, 140px) 0;
}

.tpm-hero-copy {
  max-width: 760px;
}

.tpm-hero .tpm-eyebrow {
  color: #d3ad70;
}

.tpm-hero h1 {
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: clamp(2.7rem, 5.8vw, 5.55rem);
  line-height: 1.02;
}

.tpm-hero h1 em {
  color: #d6b172;
  font-weight: 400;
}

.tpm-hero p {
  max-width: 650px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.03rem, 1.45vw, 1.23rem);
}

.tpm-hero .tpm-actions {
  margin-top: 2rem;
}

/* Smaller internal hero */
.tpm-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 125px) 0;
  background: var(--tpm-navy);
  color: #fff;
}

.tpm-page-hero h1,
.tpm-page-hero h2 {
  max-width: 900px;
  color: #fff;
}

.tpm-page-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.82);
  font-size: 1.1rem;
}

/* =====================================================
9. THREE PILLAR CARDS
===================================================== */

.tpm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tpm-pillar {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: var(--tpm-navy);
  box-shadow: var(--tpm-shadow-soft);
  color: #fff;
}

.tpm-pillar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.tpm-pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    rgba(7,31,49,.96) 0%,
    rgba(7,31,49,.72) 36%,
    rgba(7,31,49,.10) 74%);
}

.tpm-pillar:hover img {
  transform: scale(1.035);
}

.tpm-pillar-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px;
}

.tpm-pillar h2,
.tpm-pillar h3 {
  margin-bottom: .7rem;
  color: #fff;
}

.tpm-pillar p {
  margin-bottom: 1rem;
  color: rgba(255,255,255,.78);
  font-size: .96rem;
  line-height: 1.6;
}

.tpm-text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--tpm-bronze);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.tpm-text-link::after {
  content: "→";
  transition: transform .2s ease;
}

.tpm-text-link:hover {
  color: #d1aa6b;
}

.tpm-text-link:hover::after {
  transform: translateX(4px);
}

/* =====================================================
10. TRUST / VALUE STRIP
===================================================== */

.tpm-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--tpm-border);
  border-bottom: 1px solid var(--tpm-border);
}

.tpm-trust-item {
  padding: 30px 28px;
  border-right: 1px solid var(--tpm-border);
}

.tpm-trust-item:last-child {
  border-right: 0;
}

.tpm-trust-icon {
  margin-bottom: .9rem;
  color: var(--tpm-bronze);
  font-size: 1.45rem;
}

.tpm-trust-item h3 {
  margin-bottom: .45rem;
  font-family: var(--tpm-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tpm-trust-item p {
  margin: 0;
  color: var(--tpm-grey);
  font-size: .86rem;
  line-height: 1.55;
}

/* =====================================================
11. SERVICE CARDS / CONTENT GRID
===================================================== */

.tpm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.tpm-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tpm-card {
  height: 100%;
  border: 1px solid var(--tpm-border);
  background: #fff;
  box-shadow: 0 8px 28px rgba(7,31,49,.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tpm-card:hover {
  border-color: rgba(178,138,75,.38);
  box-shadow: var(--tpm-shadow-soft);
  transform: translateY(-3px);
}

.tpm-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tpm-light-grey);
}

.tpm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.tpm-card:hover .tpm-card-media img {
  transform: scale(1.025);
}

.tpm-card-body {
  padding: clamp(22px, 3vw, 34px);
}

.tpm-card-body h2,
.tpm-card-body h3 {
  margin-bottom: .7rem;
}

.tpm-card-body p:last-of-type {
  margin-bottom: 1.1rem;
}

/* =====================================================
12. SPLIT SECTIONS
===================================================== */

.tpm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.tpm-split-media {
  min-height: 520px;
}

.tpm-split-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.tpm-split-copy {
  max-width: 650px;
}

.tpm-split-copy > *:last-child {
  margin-bottom: 0;
}

/* =====================================================
13. FEATURE / QUOTE BAND
===================================================== */

.tpm-feature-band {
  position: relative;
  overflow: hidden;
  padding: clamp(75px, 9vw, 125px) 0;
  background: var(--tpm-navy);
  color: #fff;
}

.tpm-feature-band h2 {
  max-width: 900px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.9rem);
}

.tpm-feature-band p {
  max-width: 720px;
  color: rgba(255,255,255,.78);
}

.tpm-feature-band .tpm-rule {
  background: var(--tpm-bronze);
}

/* =====================================================
14. ARTICLE / SEO CONTENT
===================================================== */

.tpm-article {
  width: min(calc(100% - 40px), var(--tpm-reading));
  margin: 0 auto;
  padding: clamp(50px, 7vw, 95px) 0;
}

.tpm-article > p:first-of-type {
  color: #444b50;
  font-size: 1.12rem;
  line-height: 1.85;
}

.tpm-article h2 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.tpm-article h3 {
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.tpm-article ul,
.tpm-article ol {
  margin: 0 0 1.5rem 1.25rem;
}

.tpm-article li {
  margin-bottom: .55rem;
}

.tpm-article blockquote {
  margin: 2.2rem 0;
  padding: 1.2rem 0 1.2rem 1.7rem;
  border-left: 2px solid var(--tpm-bronze);
  color: var(--tpm-navy);
  font-family: var(--tpm-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
}

/* Joomla article title / metadata */
.page-header h1,
.item-page .page-header h1 {
  margin-bottom: 1rem;
}

.article-info {
  color: var(--tpm-grey);
  font-size: .78rem;
  letter-spacing: .04em;
}

.tags .list-inline-item a {
  border: 1px solid var(--tpm-border);
  border-radius: 0;
  background: var(--tpm-limestone);
  color: var(--tpm-navy);
  font-size: .75rem;
}

/* =====================================================
15. CTA PANEL
===================================================== */

.tpm-cta {
  padding: clamp(40px, 6vw, 70px);
  background: var(--tpm-navy);
  color: #fff;
}

.tpm-cta h2,
.tpm-cta h3 {
  color: #fff;
}

.tpm-cta p {
  max-width: 720px;
  color: rgba(255,255,255,.78);
}

.tpm-cta-light {
  border: 1px solid var(--tpm-border);
  background: var(--tpm-limestone);
  color: var(--tpm-charcoal);
}

.tpm-cta-light h2,
.tpm-cta-light h3 {
  color: var(--tpm-navy);
}

/* =====================================================
16. FORMS
===================================================== */

.tpm-form,
.com-contact .contact-form {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--tpm-border);
  background: var(--tpm-navy);
  color: #fff;
}

.tpm-form h2,
.tpm-form h3,
.com-contact .contact-form h2,
.com-contact .contact-form h3 {
  color: #fff;
}

.form-label,
.control-label {
  color: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .055em;
}

.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"] {
  min-height: 48px;
  border: 1px solid #d8d6d1;
  border-radius: 0;
  background: #fff;
  color: var(--tpm-charcoal);
  font-family: var(--tpm-sans);
}

textarea.form-control,
textarea {
  min-height: 140px;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus {
  border-color: var(--tpm-bronze);
  box-shadow: 0 0 0 .18rem rgba(178,138,75,.16);
}

.form-check-input:checked {
  border-color: var(--tpm-bronze);
  background-color: var(--tpm-bronze);
}

.tpm-form-note {
  margin-top: 1rem;
  color: rgba(255,255,255,.65);
  font-size: .77rem;
  line-height: 1.55;
}

/* =====================================================
17. JOOMLA MODULES / CARDS / BREADCRUMBS
===================================================== */

.card {
  border: 1px solid var(--tpm-border);
  border-radius: 0;
  box-shadow: none;
}

.card-header {
  border-bottom: 1px solid var(--tpm-border);
  background: var(--tpm-limestone);
  color: var(--tpm-navy);
  font-family: var(--tpm-serif);
}

.breadcrumb {
  margin-bottom: 0;
  padding: .9rem 0;
  background: transparent;
  font-size: .76rem;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--tpm-grey);
}

.breadcrumb-item.active {
  color: var(--tpm-navy);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--tpm-bronze);
}

/* =====================================================
18. PAGINATION
===================================================== */

.pagination {
  gap: 5px;
}

.page-link {
  border: 1px solid var(--tpm-border);
  border-radius: 0 !important;
  color: var(--tpm-navy);
}

.page-link:hover,
.page-link:focus {
  border-color: var(--tpm-bronze);
  background: var(--tpm-limestone);
  color: var(--tpm-bronze-dark);
}

.page-item.active .page-link {
  border-color: var(--tpm-navy);
  background: var(--tpm-navy);
}

/* =====================================================
19. TABLES
===================================================== */

.table {
  --table-border-color: var(--tpm-border);
}

.table thead th {
  border-bottom-color: var(--tpm-bronze);
  background: var(--tpm-navy);
  color: #fff;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: rgba(245,241,232,.55);
}

/* =====================================================
20. FOOTER
===================================================== */

.container-footer {
  margin-top: 0;
  background: var(--tpm-navy);
  background-image: none;
  color: rgba(255,255,255,.72);
}

.container-footer .grid-child {
  max-width: var(--tpm-content);
}

.container-footer a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.container-footer a:hover,
.container-footer a:focus {
  color: var(--tpm-bronze);
}

.tpm-footer {
  padding: 65px 0 30px;
}

.tpm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 45px;
}

.tpm-footer h3,
.tpm-footer h4 {
  color: #fff;
  font-family: var(--tpm-sans);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tpm-footer p,
.tpm-footer li,
.tpm-footer a {
  font-size: .85rem;
  line-height: 1.65;
}

.tpm-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpm-footer li {
  margin-bottom: .5rem;
}

.tpm-footer-bottom {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.48);
  font-size: .73rem;
}

/* =====================================================
21. UTILITY CLASSES
===================================================== */

.tpm-shadow {
  box-shadow: var(--tpm-shadow);
}

.tpm-border {
  border: 1px solid var(--tpm-border);
}

.tpm-mt-0 { margin-top: 0 !important; }
.tpm-mt-1 { margin-top: 1rem !important; }
.tpm-mt-2 { margin-top: 2rem !important; }
.tpm-mt-3 { margin-top: 3rem !important; }

.tpm-mb-0 { margin-bottom: 0 !important; }
.tpm-mb-1 { margin-bottom: 1rem !important; }
.tpm-mb-2 { margin-bottom: 2rem !important; }
.tpm-mb-3 { margin-bottom: 3rem !important; }

/* Prevent embedded page sections inheriting unwanted Cassiopeia margins */
.tpm-page,
.tpm-page * {
  box-sizing: border-box;
}

.tpm-page > :first-child {
  margin-top: 0;
}

.tpm-page > :last-child {
  margin-bottom: 0;
}

/* Full-width page helper:
   Add "tpm-fullwidth" as Page Class in menu item when required. */
body.tpm-fullwidth .site-grid {
  grid-template-columns: [full-start] minmax(0,1fr) [main-start] minmax(0,var(--tpm-content)) [main-end] minmax(0,1fr) [full-end];
}

body.tpm-fullwidth .container-component {
  grid-column: full-start / full-end;
  max-width: none;
  padding-inline: 0;
}

body.tpm-fullwidth .com-content-article__body {
  width: 100%;
}

/* Hide article title only on pages where menu Page Class contains tpm-hide-title */
body.tpm-hide-title .page-header {
  display: none;
}

/* =====================================================
22. ACCESSIBILITY / FOCUS
===================================================== */

:focus-visible {
  outline: 2px solid var(--tpm-bronze);
  outline-offset: 3px;
}

.tpm-btn:focus-visible,
.btn:focus-visible {
  outline-color: #d7b577;
}

/* =====================================================
23. RESPONSIVE - TABLET
===================================================== */

@media (max-width: 991.98px) {

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    padding: .78rem .65rem;
  }

  .tpm-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .tpm-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .tpm-pillar:last-child {
    grid-column: 1 / -1;
  }

  .tpm-trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tpm-trust-item:nth-child(2) {
    border-right: 0;
  }

  .tpm-trust-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--tpm-border);
  }

  .tpm-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tpm-split-media,
  .tpm-split-media img {
    min-height: 420px;
  }

  .tpm-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================
24. RESPONSIVE - MOBILE
===================================================== */

@media (max-width: 767.98px) {

  body {
    font-size: 15.5px;
  }

  .tpm-wrap,
  .tpm-reading,
  .tpm-article {
    width: min(calc(100% - 30px), var(--tpm-content));
  }

  .container-header .navbar-brand {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    padding: .72rem 0;
  }

  .container-header .mod-menu > li > a::after {
    display: none;
  }

  .tpm-brand-name {
    font-size: 1.35rem;
  }

  .tpm-brand-tagline {
    display: none;
  }

  .tpm-section {
    padding: 58px 0;
  }

  .tpm-section-lg {
    padding: 72px 0;
  }

  .tpm-hero {
    min-height: 660px;
  }

  .tpm-hero::before {
    background: linear-gradient(90deg,
      rgba(7,31,49,.91) 0%,
      rgba(7,31,49,.76) 58%,
      rgba(7,31,49,.38) 100%);
  }

  .tpm-hero-inner {
    align-items: flex-end;
    padding: 90px 0 65px;
  }

  .tpm-hero h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .tpm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tpm-actions .btn,
  .tpm-actions .tpm-btn {
    width: 100%;
  }

  .tpm-grid-2,
  .tpm-grid-3,
  .tpm-grid-4 {
    grid-template-columns: 1fr;
  }

  .tpm-pillar,
  .tpm-pillar:last-child {
    min-height: 420px;
    grid-column: auto;
  }

  .tpm-trust-grid {
    grid-template-columns: 1fr;
  }

  .tpm-trust-item,
  .tpm-trust-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--tpm-border);
  }

  .tpm-trust-item:last-child {
    border-bottom: 0;
  }

  .tpm-split-media,
  .tpm-split-media img {
    min-height: 330px;
  }

  .tpm-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tpm-form,
  .com-contact .contact-form {
    padding: 24px 18px;
  }
}

/* =====================================================
25. REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =====================================================
END - THE PRIVATE MED
===================================================== */
