/* root colour variables */
:root {
    --panel-bk-dark: #003;
    --panel-col-dark: #eee;
    --panel-bk-light: #eee;
    --panel-col-light: #222;

    --bs-primary-color: #258cfb;
    --bs-secondary-color: #6c757d;
    --bs-success-color: #28a745;
    --bs-danger-color: #dc3545;
    --bs-warning-color: #ffc107;
    --bs-info-color: #17a2b8;
    --bs-light-color: #f8f9fa;
    --bs-dark-color: #343a40;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.mainpagepanel {
    min-height: 100vh;
}

/* Shortened by the .header-offset height so the hero + logo strip
   together still fill one screenful, same as before that strip existed. */
#hero {
    min-height: calc(100vh - 200px);
}

    .mainpagepanel.dark {
        background: var(--panel-bk-dark);
        color: var(--panel-col-dark);
    }

    .mainpagepanel.light {
        background: var(--panel-bk-light);
        color: var(--panel-col-light);
    }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar-ch {
    background-color: var(--panel-bk-dark);
}

/* Pushes the sticky header down 200px from the top of the page on load;
   the header scrolls normally through this space, then sticks once it
   reaches the top of the viewport. */
.header-offset {
    height: 200px;
}

/* SVG placeholders */
.section-svg-placeholder {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* Fixed-size "window" onto an oversized graphic that drifts behind it,
   so the frame itself stays put while the artwork slowly pans underneath. */
.graphic-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 480 / 320;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Hero sits on a light panel, so its frame needs dark-on-light tinting
   instead of the default light-on-dark tint used elsewhere. */
#hero .graphic-frame {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

.graphic-frame-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 220%;
    height: 220%;
    animation: graphicFrameTranslate 16s ease-in-out infinite alternate;
}

.graphic-frame-content {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    transform-origin: 50% 50%;
    animation: graphicFrameRotate 20s ease-in-out infinite alternate;
}

@keyframes graphicFrameTranslate {
    from {
        transform: translate(-8%, -10%);
    }
    to {
        transform: translate(-58%, -55%);
    }
}

@keyframes graphicFrameRotate {
    from {
        transform: rotate(-30deg);
    }
    to {
        transform: rotate(30deg);
    }
}

/* Technology cards */
.tech-card {
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background 0.15s, box-shadow 0.15s;
    height: 100%;
}

.tech-card:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.tech-icon {
    width: 52px;
    height: 52px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.tech-card-text {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

/* Technology tabs on light background */
.tech-tabs {
    border-color: rgba(0, 0, 0, 0.15);
}

.tech-tabs .nav-link {
    color: rgba(0, 0, 0, 0.6);
    border-color: transparent;
    margin-bottom: 4px;
}

.tech-tabs .nav-link:hover {
    color: #222;
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
}

.tech-tabs .nav-link.active {
    color: #222;
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) transparent;
}

/* Application Modernisation process step badge */
.process-step-badge {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background-color: var(--panel-bk-dark);
    color: var(--panel-col-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--panel-bk-dark);
    color: var(--panel-col-dark);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.footer a {
    color: var(--panel-col-dark);
}

.footer a:hover {
    color: #fff;
}

.chlogo {
    display: inline-flex;
    font-size: 1.7rem;
    font-weight: 700;
}

    .chlogo .charlton {
        color: white
    }

    .chlogo .harris {
        color: gray;
    }

 #topLogo {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--panel-bk-dark);
    font-size: 5rem;
    font-weight: 700;
 }

 #topLogoText {
    display: inline-block;
    will-change: opacity, transform;
 }

 /* Entrance animation: Charlton flies in from the right, Harris from
    the left, both fading in, converging on their final position. */
 #topLogoText .charlton,
 #topLogoText .harris {
    display: inline-block;
    opacity: 0;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
 }

 #topLogoText .charlton {
    animation-name: topLogoTextInFromRight;
 }

 #topLogoText .harris {
    animation-name: topLogoTextInFromLeft;
 }

 @keyframes topLogoTextInFromRight {
    from {
        opacity: 0;
        transform: translateX(200%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
 }

 @keyframes topLogoTextInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-200%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
 }

 /* Starts hidden; site.js crossfades this in against #topLogoText as the
    page scrolls through .header-offset. */
 #navLogo {
    opacity: 0;
    will-change: opacity;
 }