/* ============================================================
   Prismea — Site Stylesheet
   Fonts: Montserrat (headings) | Open Sans (body)
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --blue:        #0069b4;   /* Pantone 300 */
  --blue-dark:   #004070;   /* Pantone 300 dark */
  --orange:      #ec6608;
  --green:       #408927;
  --white:       #ffffff;
  --dark:        #2f3338;
  --border:      #dee2e6;

  --nav-height:  72px;
  --max-width:   1200px;
  --section-pad: 4rem;
  --gutter:      2rem;
  --radius:      4px;

  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--blue);
}

h3 { font-size: 22pt; margin-bottom: 0.75rem; }
h4 { font-size: 18pt; }
h5 { font-size: 1.1rem; }

b, strong { font-weight: 400; }

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

/* Semantic colour classes */
.text--highlight { color: var(--orange); font-weight: bold; }
.text--green     { color: var(--green); }

/* Banner subheading text is always white */
.subheading, .subheading h3 { color: var(--white); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* Nav utilities — still referenced in nav.html */
.d-flex            { display: flex; }
.d-xl-none         { display: none; }
.d-xl-inline       { display: inline; }
.d-xl-inline-block { display: inline-block; }
.align-items-center { align-items: center; }
.ml-auto           { margin-left: auto; }
.mr-1              { margin-right: 0.25rem; }
.mt-3              { margin-top: 1rem; }
.mt-xl-0           { margin-top: 0; }
.my-0              { margin-block: 0; }
.my-2              { margin-block: 0.5rem; }
.text-white        { color: var(--white) !important; }

@media (min-width: 1200px) {
  .d-xl-none         { display: none !important; }
  .d-xl-inline       { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
  .mt-xl-0           { margin-top: 0 !important; }
}
@media (max-width: 1199px) {
  .d-xl-inline, .d-xl-inline-block { display: none !important; }
  .d-xl-none { display: flex !important; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav.headroom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.navbar {
  display: flex;
  align-items: center;
  height: var(--nav-height);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand { display: flex; align-items: center; flex-shrink: 0; }
.navbar-brand img { height: 28px; width: auto; }
.navbar-brand-dark  { display: block; }

.navbar-collapse {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}
.navbar-collapse-header { display: none; }

.navbar-nav {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  color: var(--dark);
  white-space: nowrap;
  transition: color 0.15s;
  text-decoration: none;
}

.nav-link:hover,
.nav-item.active > .nav-link { color: var(--blue); text-decoration: none; }

.nav-link-arrow { font-size: 0.7rem; margin-left: 0.25rem; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 200;
}

.nav-item.dropdown:hover > .dropdown-menu { display: block; }

.dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--dark);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.dropdown-item:hover { background: var(--border); color: var(--orange); text-decoration: none; }
.dropdown-item.active { color: var(--blue); }

.nav-ctas { margin-left: 1rem; }
.cta_button {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--orange);
  color: var(--white) !important;
  font-weight: bold;
  font-family: var(--font-head);
  font-size: 0.875rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.cta_button:hover { background: var(--dark); text-decoration: none; transform: translateY(-1px); }

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.navbar-toggler-icon svg { display: block; }
.toggler { stroke: var(--dark); fill: none; width: 24px; height: 24px; }

@media (max-width: 1199px) {
  .navbar-toggler { display: block; }
  .nav-ctas.d-xl-inline { display: none !important; }

  .navbar-collapse {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    z-index: 999;
  }
  .navbar-collapse.open { display: flex; }
  .navbar-collapse .container { flex-direction: column; align-items: flex-start; width: 100%; padding: 0; }
  .navbar-collapse-header { display: flex; justify-content: flex-end; width: 100%; margin-bottom: 0.5rem; }
  .collapse-close a { font-size: 1.25rem; color: var(--dark); text-decoration: none; }
  .collapse-brand { display: none; }

  .navbar-nav { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .nav-item { width: 100%; }
  .nav-link { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: block; }
  .nav-ctas { margin: 1rem 0 0; }
}

/* ============================================================
   PAGE SHELL
   ============================================================ */
.body-container { padding-top: var(--nav-height); flex: 1; }

/* ============================================================
   ALL-PAGES VIEW
   ============================================================ */
.all-pages__divider { border: none; border-top: 8px solid var(--orange); max-width: var(--max-width); margin: 3rem auto; }
.all-pages__section { scroll-margin-top: var(--nav-height); }

.section--hero-banner { max-width: var(--max-width); margin-inline: auto; }
.section--hero-banner img { width: 100%; height: 400px; object-fit: cover; object-position: center; display: block; }

/* ============================================================
   BANNER (hero with background image)
   ============================================================ */
.banner-module {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--blue);
  max-width: var(--max-width);
  margin-inline: auto;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 64, 112, 0.65);
  z-index: 0;
}
.banner-module .container { position: relative; z-index: 1; }
.banner-content { padding: 3rem 1rem; text-align: center; }
.subheading h3 { font-size: clamp(2rem, 5vw, 4.5rem); color: var(--white); font-weight: 700; }

/* ============================================================
   LOGO SLIDER — CSS-only marquee
   ============================================================ */
.logo-carousel {
  padding: 1.5rem 0;
  background: var(--white);
  overflow: hidden;
  max-width: var(--max-width);
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-carousel__nav { overflow: hidden; }

.logo-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}

.logo-carousel:hover .logo-carousel__track { animation-play-state: paused; }

@keyframes logo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 180px;
  padding: 0 1.5rem;
}

.logo-carousel__img { display: block !important; }

.swiper-slide img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(50%);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}

.logo-carousel:hover .swiper-slide img { filter: grayscale(0); opacity: 1; }
.swiper-slide__description-text { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--orange);
  color: var(--white) !important;
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.btn:hover {
  background: #c4540a;
  text-decoration: none;
  transform: translateY(-1px);
}
.body-container--inner .section--light-grey .btn { font-size: 18pt; }

/* ============================================================
   SECTION TYPES
   ============================================================ */

/* White bg, max-width, padded — body copy on all pages */
.section--content {
  padding: 3rem var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
}
.section--content h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue);
  margin-top: 1.5rem;
}
.section--content h3:first-child { margin-top: 0; }
.section--content h3 a { color: var(--blue); text-decoration: none; }
.section--content h3 a:hover { text-decoration: underline; }
.section--content li { line-height: 1.7; margin-bottom: 0.75rem; }
.section--content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Two-column variant (training further courses) */
.section--content--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Testimonial pages — explicit white bg */
.aws-infrastructure-testimonials .section--content,
.training-testimonials .section--content,
.testimonials .section--content { background: var(--white); }

/* Light background — centred content bands */
.section--light-grey {
  background-color: var(--border);
  padding: 2.5rem var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
  text-align: center;
}
.section--light-grey h3 { color: var(--dark); margin-bottom: 1.5rem; }
.section--light-grey h4 { color: var(--dark); max-width: 860px; margin-inline: auto; line-height: 1.5; }
.body-container--training .section--light-grey img { max-width: 80px; margin-inline: auto; }
.body-container--training .section--light-grey h4 { font-size: 1.1rem; line-height: 1.5; }

/* Blue background — centred content bands */
.section--blue {
  background-color: var(--blue);
  padding: 2.5rem var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
  text-align: center;
}
.section--blue h3,
.section--blue h4 { color: var(--white); max-width: 860px; margin-inline: auto; line-height: 1.6; }

/* Dark background — homepage intro band */
.section--intro {
  background-color: var(--dark);
  padding: var(--section-pad) var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
  color: var(--white);
}
.section--intro__inner { max-width: var(--max-width); margin-inline: auto; }
.section--intro h5 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--white);
}

/* Service rows — icon + text, alternating */
.section--service + .section--service { padding-top: 0.75rem; }
.section--service:has(+ .section--service) { padding-bottom: 0.75rem; }

.section--service {
  padding: 3rem var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.section--service .service-icon { width: 25%; flex-shrink: 0; text-align: center; }
.section--service .service-icon img { max-height: 96px; width: auto; margin-inline: auto; }
.section--service .service-text { width: 75%; }
.section--service .service-text--right { text-align: right; }

/* 3-column icon cards */
.section--cards {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.section--cards img { margin-inline: auto; max-height: 120px; width: auto; margin-bottom: 1rem; }


/* ============================================================
   FOOTER
   ============================================================ */
.tf-footer {
  background-color: var(--dark);
  color: var(--border);
  padding: 2.5rem 0;
  flex-shrink: 0;
}
.tf-footer .container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-main { flex: 1; }
.footer-heading { font-family: var(--font-head); font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.tf-footer p { font-size: 0.875rem; margin-bottom: 0.5rem; line-height: 1.5; }
.tf-footer a { color: var(--border); text-decoration: none; font-size: 0.875rem; }
.tf-footer a:hover { color: var(--orange); }
.footer-copyright {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.footer-social { display: flex; align-items: flex-start; padding-top: 0.25rem; }
.footer-social a { font-size: 1.5rem; color: var(--border); text-decoration: none; transition: color 0.15s; }
.footer-social a:hover { color: var(--orange); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-name {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--blue);
}
.testimonial-name span { color: inherit !important; }
.testimonial-name:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* Testimonial page h3 heading */
.training-testimonials h3,
.aws-infrastructure-testimonials h3,
.testimonials h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue);
}

/* Quote list (favourite quotes) */
.testimonials .section--content ul,
.training-testimonials .section--content ul,
.aws-infrastructure-testimonials .section--content ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
}
.testimonials .section--content ul li,
.training-testimonials .section--content ul li,
.aws-infrastructure-testimonials .section--content ul li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--dark) !important;
  line-height: 1.5;
}
.testimonials .section--content ul li::before,
.training-testimonials .section--content ul li::before,
.aws-infrastructure-testimonials .section--content ul li::before {
  content: '\201C';
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  font-size: 1.4rem;
  color: var(--blue);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Testimonials — non-name h4 (section headings like "Our favourite quotes:") */
.training-testimonials h4:not(.testimonial-name),
.aws-infrastructure-testimonials h4:not(.testimonial-name) { color: var(--dark); font-size: 1rem; margin-bottom: 0.5rem; }

/* ============================================================
   TRAINING PAGE — hero panels + quote carousel
   ============================================================ */
.tf-hero-01 {
  background-color: var(--blue);
  padding: 4rem var(--gutter) 3rem;
  max-width: var(--max-width);
  margin-inline: auto;
  text-align: center;
  color: var(--white);
}
.tf-hero-01 h1, .tf-hero-01 .heading { color: var(--white); font-size: clamp(1.75rem, 4vw, 3rem); }

.tf-hero-01 > .hero-panels { padding: 0; }

.hero-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}
.hero-panels .tf-cover {
  background-color: var(--blue);
  padding: 2.5rem var(--gutter);
  border-right: 1px solid rgba(255,255,255,0.15);
}
.hero-panels .tf-cover:last-child { border-right: none; }
.hero-panels .tf-cover-inner { color: var(--white); }
.hero-panels h3,
.hero-panels .h3 { font-size: 1.25rem; color: var(--white); margin-bottom: 0.75rem; }
.hero-panels .description p { font-size: 0.95rem; color: var(--white); line-height: 1.6; margin-bottom: 0.5rem; }

.display-4 { font-size: clamp(1.5rem, 4vw, 3rem); color: var(--white); text-align: center; }


/* Quote carousel — 3 slides × 3s = 9s cycle */
.quote-carousel { overflow: hidden; margin: 1.5rem 0 0.5rem; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); }
.quote-carousel__track { display: flex; width: max-content; animation: quote-scroll 30s linear infinite; }
.quote-carousel:hover .quote-carousel__track { animation-play-state: paused; }
.quote-carousel__slide { width: 480px; flex-shrink: 0; padding-right: 3rem; }
.quote-carousel__name { margin-top: 0.75rem; color: var(--dark); font-size: 0.9rem; }

@keyframes quote-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   TRAINING PAGE — image grid
   ============================================================ */
.section--content:has(+ .section--content:has(.photo-grid)) { padding-bottom: 0.5rem; }
.section--content:has(.photo-grid) { padding-top: 0.5rem; }
.section--content:has(+ .section--content.section--content--two-col) { padding-bottom: 0.5rem; }
.body-container--training .section--content--two-col { padding-top: 2rem; }

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.photo-grid__item {
  flex: 1 1 220px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.photo-grid__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.photo-grid__item:hover .photo-grid__img { transform: scale(1.03); }
.photo-grid__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 45, 90, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
}
.photo-grid__item:hover .photo-grid__overlay { opacity: 1; }
.photo-grid__caption { padding: 0.75rem 1rem; color: var(--white); font-size: 0.875rem; }

/* ============================================================
   AWS HEALTH CHECK
   ============================================================ */
.aws-health-check .section--light-grey h3 { max-width: var(--max-width); margin-inline: auto; margin-bottom: 1.5rem; }

.aws-health-check .section--content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.aws-health-check .section--content h3:first-child { margin-top: 0; }
.aws-health-check .section--content ul { padding-left: 1.5rem; margin: 0.75rem 0 1rem; }
.aws-health-check .section--content li { margin-bottom: 0.4rem; }

/* AWS quote bands — italic */
.aws-health-check .section--blue h4 { font-style: italic; }

/* Price display */
[style*="font-size: 36px"] {
  font-size: 2.5rem !important;
  font-family: var(--font-head);
  color: var(--orange) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 2.5rem; }

  .section--intro,
  .section--service,
  .section--light-grey,
  .section--blue,
  .section--cards { padding: 2rem var(--gutter); }

  .section--service { flex-direction: column; }
  .section--service--icon-right { flex-direction: column-reverse; }
  .section--service .service-icon,
  .section--service .service-text { width: 100%; }

  .section--cards { grid-template-columns: 1fr; }
  .section--content--two-col { grid-template-columns: 1fr; }

  .hero-panels { grid-template-columns: 1fr; }
  .hero-panels .tf-cover { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }

  .logo-carousel__track { gap: 1.5rem 2rem; }
  .swiper-slide img { max-height: 44px; }
}

@media (max-width: 480px) {
  .nav-link { font-size: 0.8rem; padding: 0.5rem; }
  h3 { font-size: 1.2rem; }
}

@media print {
  :root { --section-pad: 4rem; }

  .tf-navbar,
  .navbar-toggler { display: none !important; }

  .body-container { padding-top: 0; }

  .section--service { flex-direction: row; }
  .section--service .service-icon,
  .section--service .service-text { width: auto; }

  .section--cards { grid-template-columns: repeat(3, 1fr); }
  .section--content--two-col { grid-template-columns: 1fr 1fr; }

  .hero-panels { grid-template-columns: repeat(3, 1fr); }
  .hero-panels .tf-cover { border-right: 1px solid rgba(255,255,255,0.15); border-bottom: none; }

  .logo-carousel, .quote-carousel { display: none; }

  a { color: inherit; text-decoration: none; }
  .tf-footer { margin-top: 2rem; }
}
