/* ============================================================
   4TC Corporation — e107 Theme Stylesheet  (style.css)
   Palette: Conduit Blue
   ============================================================ */

:root {
  --accent:      #1F4E8C;
  --accent-deep: #163866;
  --accent-ink:  #FFFFFF;
  --ink:         #0E1726;
  --sub:         #1A2840;
  --line:        #E2E6EE;
  --bg:          #FFFFFF;
  --bg-alt:      #F4F6FA;
  --muted:       #5A6577;
  --font-display:'Archivo', system-ui, sans-serif;
  --font-body:   'Archivo', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --px:          3rem;
}

/* ─── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

img { max-width: 100%; height: auto; /*display: block;*/ }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

/* ─── Layout helpers ─────────────────────────────────────────── */
.px-section { padding-left: var(--px); padding-right: var(--px); }

/* ─── Type atoms ─────────────────────────────────────────────── */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 84px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.section-display--light { color: #fff; }
.section-intro { font-size: 15px; color: var(--sub); line-height: 1.55; margin: 0; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 12px 18px;
  text-decoration: none !important;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  border: none;
  display: inline-block;
  white-space: nowrap;
  transition: background 150ms;
  cursor: pointer;
}
.btn-cta:hover { background: var(--accent-deep); }

.btn-primary-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 20px 28px;
  text-decoration: none !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 150ms;
}
.btn-primary-cta:hover { background: var(--accent-deep); color: var(--accent-ink) !important; }

.btn-outline-light-cta {
  background: transparent;
  border: 2px solid #fff;
  color: #fff !important;
  padding: 18px 28px;
  text-decoration: none !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  transition: background 150ms;
}
.btn-outline-light-cta:hover { background: rgba(255,255,255,.1); }

/* ============================================================
   HAZARD STRIPE
   ============================================================ */
.hazard-stripe {
  height: 8px;
  background: repeating-linear-gradient(
    135deg,
    var(--accent) 0 18px,
    var(--ink)    18px 36px
  );
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: #fff !important;
  border-bottom: 1px solid var(--line) !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  z-index: 1030;
  box-shadow: 0 1px 0 var(--line);
}
.site-nav .navbar-brand img { height: 44px; width: auto; }

.site-nav .nav-link {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
  padding: 10px 12px !important;
  border-bottom: 2px solid transparent;
  transition: color 120ms, border-color 120ms;
  background: none !important;
}
.site-nav .nav-link.active,
.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
  background: none !important;
}

/* e107 adds .current to the active nav item */
.site-nav .nav-link.current { color: var(--accent) !important; border-bottom-color: var(--accent); }

.label-tiny {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.nav-phone-number {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.text-inherit { color: inherit !important; }

.navbar-toggler {
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 6px 10px !important;
  background: transparent !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230E1726' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 22px; height: 22px;
}

@media (max-width: 991.98px) {
  .site-nav .navbar-nav {
    border-top: 1px solid var(--line);
    padding-top: .75rem;
    margin-top: .5rem;
  }
  .site-nav .nav-link {
    border-bottom: none !important;
    border-left: 2px solid transparent;
    padding: 7px 10px !important;
  }
  .site-nav .nav-link.active,
  .site-nav .nav-link:hover { border-bottom-color: transparent !important; border-left-color: var(--accent) !important; }
  .nav-phone-wrap { margin-top: .5rem; }
  .nav-cta-wrap   { margin-top: .5rem; margin-bottom: .5rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-corner-index {
  position: absolute;
  top: 20px; right: var(--px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  color: #fff;
  z-index: 2;
}
.hero-content-col {
  padding: 80px var(--px) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.badge-accent {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
}
.hero-sub-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 7.5vw, 132px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 2rem;
}
.hero-headline .accent-text { color: var(--accent); }
.hero-body {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0; }

.hero-img-col {
  position: relative;
  min-height: 440px;
  background: #000;
  overflow: hidden;
}
.hero-img-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.hero-tag-onsite {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 18px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}
.hero-tag-project {
  position: absolute; bottom: 0; left: 0;
  background: var(--ink); color: #fff;
  padding: 14px 18px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-tag-project .tag-label { opacity: 0.6; }
.hero-tag-project .tag-value { font-weight: 700; font-size: 12px; margin-top: 4px; }

/* e107 Hero plugin — style its output to fit our hero-section shell */
.hero-section .carousel-item { min-height: 440px; }
.hero-section .carousel-caption { text-align: left; left: var(--px); right: auto; bottom: 3rem; }
.hero-section .carousel-caption h5 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 100px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.92;
  color: #fff;
}
.hero-section .carousel-caption p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 480px;
}
.hero-section .carousel-item img { object-fit: cover; height: 560px; width: 100%; }

@media (max-width: 991.98px) {
  .hero-content-col { padding: 3rem 1.5rem; order: 2; }
  .hero-img-col     { order: 1; min-height: 260px; }
  .hero-corner-index{ display: none; }
  .btn-primary-cta, .btn-outline-light-cta {
    width: 100%; justify-content: center; text-align: center;
  }
  .hero-section .carousel-item { min-height: 280px; }
  .hero-section .carousel-item img { height: 300px; }
}

/* ============================================================
   METRIC BAR  (rendered by tablestyle wmessage)
   ============================================================ */
.metric-bar {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 24px 0;
}
.metric-intro {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding-right: 2rem;
  border-right: 2px solid var(--accent-ink);
  white-space: nowrap;
  align-self: center;
}
.metric-items-row { display: flex; flex-wrap: wrap; gap: 0; }
.metric-item {
  padding: 4px 0 4px 2rem;
  display: flex; align-items: baseline; gap: 10px;
  flex: 1 1 25%;
}
.metric-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.metric-unit {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}

@media (max-width: 767.98px) {
  .metric-intro { display: none !important; }
  .metric-item { flex: 1 1 50%; padding: 10px 1rem; border-bottom: 1px solid rgba(255,255,255,.2); }
  .metric-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.2); }
}

/* ============================================================
   SERVICES
   ============================================================ */

.services-section {
    padding: 100px 0;
    background: var(--bg);
}

/* =========================
   DESKTOP GRID
   ========================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--ink);
    border: 2px solid var(--ink);
}

/* =========================
   CARD LINKS
   ========================= */

.service-card-link{
    display:flex;
    height:100%;
    text-decoration:none;
    color:inherit;
}

.service-card-link:hover{
    text-decoration:none;
    color:inherit;
}

.service-arrow-link{
    text-decoration:none;
    color:inherit;
}

/* =========================
   CARDS
   ========================= */

.service-card {
    background: var(--bg);
    padding: 32px;
    min-height: 320px;

    display: flex;
    flex-direction: column;

    position: relative;
}

/* Featured/mobile card */
.service-card--featured {
    background: var(--ink);
    color: #fff;
}

/* =========================
   CARD HEADER
   ========================= */

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 24px;
}

.service-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
}

.service-arrow {
    width: 28px;
    height: 28px;

    border: 2px solid var(--ink);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    color: var(--ink);

    flex-shrink: 0;

    transition:
        border-color .3s ease,
        color .3s ease,
        transform .25s ease;
}

.service-card--featured .service-arrow {
    border-color: var(--accent);
    color: var(--accent);
}

/* =========================
   CONTENT
   ========================= */

.service-name {
    font-family: var(--font-display);
    font-weight: 800;

    font-size: clamp(22px, 2.5vw, 32px);

    letter-spacing: -0.03em;
    text-transform: uppercase;

    line-height: 0.95;

    margin-bottom: 12px;

    color: var(--ink);

    transition: color .3s ease;
}

.service-card--featured .service-name {
    color: #fff;
}

.service-blurb {
    font-size: 13px;
    line-height: 1.55;

    color: var(--sub);

    flex: 1;

    margin-bottom: 20px;

    transition: color .3s ease;
}

.service-card--featured .service-blurb {
    color: rgba(255,255,255,.75);
}

/* =========================
   BULLETS
   ========================= */

.service-bullets {
    list-style: none;

    padding: 0;
    margin: 0;

    display: grid;
    gap: 6px;

    font-size: 12px;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;

    color: var(--sub);

    margin-top: auto;
    width: 100%;

    transition: color .3s ease;
}

.service-card--featured .service-bullets {
    color: rgba(255,255,255,.8);
}

.service-bullets li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.bullet-accent {
    color: var(--accent);
    flex-shrink: 0;
}

/* ============================================================
   MODERN HOVER EFFECTS
   Only apply on real hover devices
   ============================================================ */

@media (hover: hover) and (pointer: fine) {

    .service-card {
        transition:
            background-color .35s ease,
            color .35s ease,
            transform .25s ease,
            box-shadow .25s ease;
    }

    .service-card-link:hover .service-card {
        background: var(--ink);
        color: #fff;

        transform: translateY(-4px);

        box-shadow: 0 12px 30px rgba(0,0,0,.18);
    }

    .service-card-link:hover .service-name,
    .service-card-link:hover .service-blurb,
    .service-card-link:hover .service-bullets {
        color: #fff;
    }

    .service-card-link:hover .service-arrow {
        border-color: var(--accent);
        color: var(--accent);

        transform: rotate(45deg);
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .services-grid {
        display: none;
    }

    #servicesCarousel .service-card {
        min-height: 380px;
        border: 2px solid var(--ink);
    }

    #servicesCarousel .carousel-indicators [data-bs-target] {
        background-color: var(--accent);

        width: 8px;
        height: 8px;

        border-radius: 50%;
    }

    #servicesCarousel .carousel-control-prev-icon,
    #servicesCarousel .carousel-control-next-icon {
        filter: invert(1) brightness(0);
    }
}

/* ============================================================
   DESKTOP ONLY
   ============================================================ */

@media (min-width: 768px) {

    #servicesCarousel {
        display: none;
    }
}

/* ============================================================
   DIVISIONS
   ============================================================ */
.divisions-section { padding: 100px 0; background: var(--bg-alt); }

.division-card {
  border: 2px solid var(--ink);
  display: flex; flex-direction: column;
  background: var(--bg); height: 100%;
}
.division-header { padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.division-header--controls  { background: var(--ink);    color: #fff; }
.division-header--electrical { background: var(--accent); color: var(--accent-ink); }

.division-body { padding: 32px; display: flex; flex-direction: column; }
.division-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em; text-transform: uppercase;
  line-height: 0.92; margin-bottom: 16px; color: var(--ink);
}
.division-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px dashed var(--line);
}
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 32px; letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--ink); line-height: 1;
}
.stat-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.division-team-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.team-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.team-tag { padding: 6px 12px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 12px; font-family: var(--font-mono); color: var(--ink); }
.division-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: var(--ink) !important; text-decoration: none !important;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin-top: 28px; align-self: flex-start;
}
.division-cta:hover { color: var(--accent) !important; }

@media (max-width: 767.98px) {
  .divisions-section { padding: 60px 0; }
  .division-card { margin-bottom: 1.5rem; }
}

/* ============================================================
   SHOP / BUILDING
   ============================================================ */
.shop-section { border-top: 2px solid var(--ink); overflow: hidden; }
.shop-dark-col {
  background: var(--ink); color: #fff;
  padding: 80px var(--px);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 480px;
}
.shop-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.95;
  color: #fff; margin: 0;
}
.shop-title .accent-text { color: var(--accent); }
.shop-body { font-size: 15px; line-height: 1.6; opacity: 0.75; margin-top: 1.5rem; max-width: 440px; }
.shop-stats-bar { display: flex; align-self: flex-start; margin-top: 2rem; border: 1px solid rgba(255,255,255,.15); }
.shop-stat { padding: 14px 22px; border-right: 1px solid rgba(255,255,255,.15); }
.shop-stat:last-child { border-right: none; }
.shop-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; text-transform: uppercase; color: #fff; line-height: 0.9; }
.shop-stat-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; margin-top: 6px; }
.shop-img-col { position: relative; min-height: 480px; overflow: hidden; background: var(--bg-alt); }
.shop-img-col img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.shop-hq-tag { position: absolute; top: 24px; left: 24px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.shop-coords-bar { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(14,23,38,.92); color: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border-top: 2px solid var(--accent); gap: 1rem; }
.coords-active { color: var(--accent); }

@media (max-width: 991.98px) {
  .shop-dark-col { padding: 3rem 1.5rem; min-height: auto; order: 2; }
  .shop-img-col  { order: 1; min-height: 300px; }
  .shop-coords-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   PROJECTS (photo gallery — prettyPhoto)
   ============================================================ */
.projects-section { padding: 100px 0; background: var(--bg-alt); }
.project-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 1rem;
}
.project-desc { font-size: 14px; color: var(--sub); max-width: 600px; margin-bottom: 0; }

.photo-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--ink); border: 2px solid var(--ink);
  margin-top: 3rem;
}
.photo-gallery a { display: block; overflow: hidden; aspect-ratio: 4/3; position: relative; }
.photo-gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; position: absolute; inset: 0; }
.photo-gallery a:hover img { transform: scale(1.06); }
.photo-gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(14,23,38,.85); color: #fff;
  padding: 8px 12px; font-size: 11px; opacity: 0;
  font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  transition: opacity .2s;
}
.photo-gallery a:hover .photo-gallery-caption { opacity: 1; }

@media (max-width: 575.98px) { .photo-gallery { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   SERVICE AREA
   ============================================================ */
.service-area-section { background: var(--ink); color: #fff; padding: 100px 0; }
.city-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2rem; }
.city-tags-bottom { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.city-tag { padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.map-wrap { background: rgba(255,255,255,.04); padding: 24px; border: 1px solid rgba(255,255,255,.1); }
.map-wrap svg { width: 100%; height: auto; }

@media (max-width: 767.98px) {
  .service-area-section { padding: 60px 0; }
  .map-wrap { margin-top: 2rem; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: 100px 0; background: var(--bg); }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.contact-cell { padding: 24px; }
.contact-cell:nth-child(odd)  { border-right: 2px solid var(--ink); }
.contact-cell:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
.contact-key { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.contact-value { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink) !important; letter-spacing: -0.02em; margin-top: 8px; display: block; text-decoration: none !important; word-break: break-word; }
.contact-value:hover { color: var(--accent) !important; }
.contact-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.contact-img-wrap img { width: 100%; display: block; }
.building-caption { background: var(--accent); color: var(--accent-ink); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.building-caption-arrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--bg);
  text-decoration: none;
  transition: transform .25s ease;
}

/* Rotate arrow when hovering the caption */
.building-caption:hover .building-caption-arrow {
  transform: rotate(45deg);
}
.contact-img-wrap a:hover,
.contact-img-wrap a:focus,
.contact-img-wrap a:active {
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .contact-section { padding: 60px 0; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .contact-cell:nth-child(odd)  { border-right: none; }
  .contact-cell { border-bottom: 2px solid var(--ink) !important; }
  .contact-cell:last-child { border-bottom: none !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #fff; padding: 48px 0 32px; }
.footer-logo { filter: invert(1) hue-rotate(180deg) saturate(1.2) brightness(1.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-tagline { font-size: 13px; opacity: .6; line-height: 1.55; margin-top: 1.25rem; max-width: 320px; }
.footer-col-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list li { font-size: 13px; opacity: .75; color: #fff; }
.footer-list a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-list a:hover { opacity: 1; color: var(--accent); }

/* e107 navigation shortcode in footer outputs <ul> — style it as footer-list */
.site-footer .navbar-nav,
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .navbar-nav li a,
.site-footer ul li a { font-size: 13px; color: rgba(255,255,255,.75); text-decoration: none; opacity: .75; }
.site-footer .navbar-nav li a:hover,
.site-footer ul li a:hover { opacity: 1; color: var(--accent); }

.footer-nav-inline { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav-inline li { display: inline; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .5; color: #fff; }

/* Social icons in footer */
.footer-socials a { color: rgba(255,255,255,.6); font-size: 18px; margin-right: 14px; text-decoration: none; transition: color 150ms; }
.footer-socials a:hover { color: var(--accent); }

@media (max-width: 991.98px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 575.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .px-section { padding-left: 1rem !important; padding-right: 1rem !important; }
  :root { --px: 1rem; }
}

/* ============================================================
   SCROLL FADE-UP ANIMATION
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   BS3 / BS5 CONFLICT RESET
   ============================================================ 
.container-fluid { padding-right: 0 !important; padding-left: 0 !important; }
.px-section > .row { margin-left: 0 !important; margin-right: 0 !important; }*/


/* ---- Login page: Bootstrap 5 classes not available in BS3 grid ---- */
#login-template {
  max-width: 500px !important;
}
