/* themes/lykos/static/styles.css */

@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/montserrat/montserrat-latin-400.woff2') format('woff2')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/montserrat/montserrat-latin-500.woff2') format('woff2')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/montserrat/montserrat-latin-700.woff2') format('woff2')}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/roboto/roboto-latin-400.woff2') format('woff2')}
@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/roboto/roboto-latin-500.woff2') format('woff2')}

/* ===== Base ===== */
html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: Roboto, sans-serif;
  background-color: #212121;
  color: #E0E0E0;
  counter-reset: figureCounter tableCounter;
}

a {
  color: #F57C00;
  text-decoration: none;
  font-weight: bold;
}

p, ul li, ol li {
  font-size: 1.2rem;
  margin: 0;
  color: #E0E0E0;
}

p { padding: 0 0 1rem 0; }

ul li, ol li { padding: 0.1rem 0 0 0; }

/* sensible base list rhythm */
ul, ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

li > ul,
li > ol {
  margin-top: -0.6rem;
  margin-bottom: 0.6rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, section h2 { font-family: Montserrat, sans-serif; }

h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.15;
}

section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: #1D7FA8;
}

h3, details > summary {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

/* ===== Section Layout ===== */
section {
  padding: 1rem 0.5rem;
  max-width: 1000px;
  margin: auto;
}

main#content {
  max-width: 1000px;
  margin: auto;
  padding: 1rem 0.5rem;
  box-sizing: border-box;
}

/* A simple content wrapper for use inside header/footer to center content */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 12px; }

/* ===== Header / Topbar ===== */
header { font-family: Montserrat, sans-serif !important; }

header .brand-name { margin: 0; color: #1D7FA8; }

header p { color: #1D7FA8; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(to right, #0A1F44, #2e677f);
  padding: 0.25rem 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand img { width: 80px; height: auto; }

.brand .brand-name {
  font-size: clamp(2rem, 6vw, 2.2rem);
  color: #E0E0E0;
  padding: 0;
  line-height: 1.05;
}

.tagline {
  font-size: 1rem;
  font-style: italic;
  color: #E0E0E0;
  padding: 0;
  line-height: 1.1;
}

/* ===== Navigation ===== */
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav li { position: relative; }

nav a {
  color: #ffffff;
  font-weight: bold;
  font-size: clamp(0.9rem, 4vw, 1.2rem);
}

nav li:hover > ul,
nav li:focus-within > ul,
nav li.open > ul { display: block; }

nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0.5rem;
  background-color: #E0E0E0;
  border-radius: 0.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

nav ul ul li { margin: 0; }

nav ul ul li a {
  color: #212121;
  white-space: nowrap;
}

nav ul li ul li a {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem; /* adjust to match your spacing */
  box-sizing: border-box;
}

nav ul li ul li a:hover {
  background-color: #00797D;
}

/* Dropdown with icon */
.has-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.has-dropdown .dropdown-trigger {
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  margin: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0.1rem;
}

.has-dropdown .dropdown-trigger:focus-visible {
  outline: 2px solid #F57C00;
  outline-offset: 2px;
}

.icon-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

.has-dropdown .dropdown-toggle .icon-svg {
  font-size: 1.3rem;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 2px;
  color: inherit;
}

/* ===== CTA ===== */
.cta-button {
  font-family: Roboto, sans-serif !important;
  font-size: 2rem !important;
  font-weight: bold !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.5rem !important;
  line-height: 1.2 !important;
  display: inline-block !important;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.cta-banner {
  padding: 2rem;
  text-align: center;
}

.cta-banner .cta-button {
  background-color: #00797D;
  color: #fff;
}

/* ===== Speaker Logo Grid ===== */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
}

/* Cap logo size */
.logo-grid img {
  max-width: 140px;     /* horizontal cap */
  width: 100%;
  height: auto;
  object-fit: contain;
  justify-self: center;
}

details > summary {
  transition: color 0.2s ease;
}

details > summary:hover {
  color: #F57C00;
  cursor: pointer;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  margin: 0 auto 0.75rem;
  max-width: 1000px;
}

.breadcrumbs ol {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  color: #8CC7DF;
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0;
}

.breadcrumbs li + li::before {
  color: rgba(224, 224, 224, 0.65);
  content: "/";
  margin-right: 0.35rem;
}

.breadcrumbs a {
  color: #8CC7DF;
  font-weight: 700;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: #F57C00;
}

/* ===== Service Cards ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: #0A1F44;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  min-height: 200px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-top: 0;
  color: #00797D;
}

.service-card a { margin-top: auto; font-weight: bold; }

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-header .icon-svg {
  font-size: 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  line-height: 1;
  color: #00797D;
  margin-top: 0.15rem;
}

.card-header h3 { margin: 0; color: #00797D; }

/* ===== Solutions Hub ===== */
.solution-path {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.solution-step {
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.92), rgba(10, 31, 68, 0.72));
  border: 1px solid rgba(29, 127, 168, 0.45);
  border-radius: 0.75rem;
  padding: 1rem;
}

.solution-step__label {
  color: #F57C00;
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: 0.4rem;
  text-transform: uppercase;
}

.solution-step h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}

.solution-guide {
  border-left: 4px solid #F57C00;
  background: rgba(10, 31, 68, 0.5);
  padding: 1rem 1rem 0.2rem;
}

/* ===== Certification Badge Section ===== */
/* Design guardrail: preserve the scrolling marquee on desktop/mobile.
   Perf work should favor sharper source assets and containment tweaks over
   replacing this with a static grid, except for prefers-reduced-motion. */
.cert-badges {
  text-align: left;
  padding: 3rem 1rem;
  background-color: #212121;
}

.badge-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.badge-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  will-change: transform;
  animation: scroll 36s linear infinite;
}

.badge-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
}

.badge-list__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-list__item img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  image-rendering: auto;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

@media (prefers-reduced-motion: reduce) {
  .badge-track { animation: none; }
  .badge-marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .badge-list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Footer ===== */
.site-footer {
  background-color: #0A1F44;
  color: #E0E0E0;
  padding: 3rem 2rem;
  font-family: Roboto, sans-serif;
  text-align: center;
}

.site-footer address {
  font-style: normal;
  margin: 0 0 .5rem;
  color: inherit;
  font-size: 1.2rem;
}

.site-footer address a {
  color: #F57C00;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

.site-footer .footer-col p,
.site-footer .footer-col address {
  margin: 0 0 .5rem;
  line-height: 1.6;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 0 1 260px;
  min-width: 220px;
  margin: 0 0 1rem 0;
}

.footer-col > * {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 28rem;
}

.footer-col h3 {
  margin: 0 0 1rem;
  color: #1D7FA8;
  font-family: Montserrat, sans-serif;
}

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

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul li a { color: #E0E0E0; }

.footer-col ul li a:hover { text-decoration: underline; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  justify-content: center;
}

.footer-brand h2 {
  font-size: 2rem;
  margin: 0;
  color: #ffffff;
  font-family: Montserrat, sans-serif;
}

.footer-logo { height: 50px; width: auto; margin: 0; }

.brand-col { text-align: center; }

.social-links { margin-top: 1rem; }

.social-links a {
  margin-right: 0.75rem;
  color: #E0E0E0;
  display: inline-block;
  transition: color 0.3s ease;
}

.social-links .icon-svg {
  width: 1.5rem;
  height: 1.5rem;
}

.social-links a:hover { color: #F57C00; }

/* ===== Blog typography tweaks ===== */
article.post h1, .post-card {
  color: #E0E0E0;
  font-family: Montserrat, sans-serif;
}

article.post h2 {
  font-size: 3rem;
  color: #1D7FA8;
  font-family: Montserrat, sans-serif;
}

article.post h3 {
  font-size: 2rem;
  color: #E0E0E0;
  font-family: Montserrat, sans-serif;
  margin: 0 0 1rem 0;
}

.post-featured-image {
  margin: 1.5rem auto 2rem;
  max-width: 760px;
  width: 100%;
}

.post-featured-image img {
  aspect-ratio: 1200 / 630;
  border: 1px solid rgba(29, 127, 168, 0.45);
  border-radius: 0.5rem;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.post-featured-image picture,
.post-card__image-link picture {
  display: block;
}

.post-card__image-link {
  border-radius: 0.5rem;
  display: block;
  margin-bottom: 1rem;
  max-width: 420px;
  overflow: hidden;
  width: 100%;
}

.post-card__image {
  aspect-ratio: 1200 / 630;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.18s ease;
  width: 100%;
}

.post-card__image-link:hover .post-card__image,
.post-card__image-link:focus-visible .post-card__image {
  transform: scale(1.02);
}

.post-card__image-link:focus-visible {
  outline: 2px solid #F57C00;
  outline-offset: 3px;
}

.post-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}

.post-pagination__link,
.post-pagination__spacer {
  min-height: 100%;
}

.post-pagination__link {
  background: linear-gradient(180deg, rgba(29, 127, 168, 0.22), rgba(10, 31, 68, 0.7));
  border: 1px solid rgba(245, 124, 0, 0.28);
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-pagination__link:hover,
.post-pagination__link:focus-visible {
  border-color: rgba(245, 124, 0, 0.7);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.post-pagination__link:focus-visible {
  outline: 2px solid #F57C00;
  outline-offset: 2px;
}

.post-pagination__link--next {
  text-align: right;
}

.post-pagination__eyebrow {
  color: #8CC7DF;
  font-family: Montserrat, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-pagination__title {
  color: #E0E0E0;
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.35;
}

.post-pagination__spacer {
  visibility: hidden;
}

.posts-feed-loading {
  color: #E0E0E0;
  font-size: 1rem;
  margin: 1rem 0 2rem;
  text-align: center;
}

.posts-feed-noscript {
  margin-top: 1.5rem;
}

.posts-feed-noscript h2 {
  color: #1D7FA8;
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

/* ===== Callouts (admonitions) ===== */
.callout {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin: 1.25rem 0;
  font-family: Roboto, sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.callout__icon {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.callout__icon .icon-svg {
  width: 1.6rem;
  height: 1.6rem;
}

.callout__title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.callout__content p {
  margin: 0 0 0.75rem 0;
  font: inherit;
  line-height: inherit;
}
.callout__content p:last-child { margin-bottom: 0; }

.callout--info {
  background-color: #1D7FA8;
  color: #E3F2FD;
  border-left: 6px solid #64B5F6;
}
.callout--info .callout__icon { color: #64B5F6; }
.callout--info a { color: #BBDEFB; }

.callout--success {
  background-color: #1B5E20;
  color: #E8F5E9;
  border-left: 6px solid #4CAF50;
}
.callout--success .callout__icon { color: #81C784; }
.callout--success a { color: #A5D6A7; }
.callout--success li { color: #E8F5E9; font-size: 1.2rem; }

.callout--warning {
  background-color: #d66b00;
  color: #FFF3E0;
  border-left: 6px solid #E65100;
}
.callout--warning .callout__icon { color: #FFB74D; }
.callout--warning a { color: #FFE0B2; }
.callout--warning li { color: #FFF3E0; font-size: 1.2rem; }

.callout--danger {
  background-color: #B71C1C;
  color: #FFEBEE;
  border-left: 6px solid #F44336;
}
.callout--danger .callout__icon { color: #E57373; }
.callout--danger a { color: #FFCDD2; }

.callout:not([class*="callout--"]) {
  background-color: #0A1F44;
  color: #E0E0E0;
  border-left: 6px solid #1D7FA8;
}

@media (max-width: 640px) {
  .post-pagination {
    grid-template-columns: 1fr;
  }

  .post-pagination__link--next {
    text-align: left;
  }

  .post-pagination__spacer {
    display: none;
  }

  .callout { padding: 0.9rem 1rem; }
}

/* ===== Figures & Tables ===== */
:root{
  --fig-label-col: #F57C00;
  --tbl-label-col: #F57C00;
}

.figure { text-align: center; max-width: 100%; }

.figure--image { counter-increment: figureCounter; border-radius: 0.5rem; }

.figure--table { counter-increment: tableCounter; }

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

.figure figcaption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #F57C00;
}

.figure--image .figure__label::before{
  content: "Figure " counter(figureCounter) ": ";
  color: var(--fig-label-col);
  font-weight: 700;
  margin-right: .25rem;
}

.figure--table .table__label::before{
  content: "Table " counter(tableCounter) ": ";
  color: var(--tbl-label-col);
  font-weight: 700;
  margin-right: .25rem;
}

.table-wrap,
.prose > table {
  overflow-x: auto;
}

.table-wrap table,
.prose > table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.prose > table {
  display: block;
  margin: 1.5rem 0;
}

.table-wrap th,
.table-wrap td,
.prose > table th,
.prose > table td {
  border: 1px solid #444;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.table-wrap th,
.prose > table th,
.project-flow th {
  background-color: #156082;
  color: #E0E0E0;
  font-family: Montserrat, sans-serif;
}

.figure--image img[style*="width"]{
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.25rem;
}

/* ===== FAQ (toggle) ===== */
.faq-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.cta-banner,
.cert-badges,
.faq-section,
.resource-form,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.faq-section h2 {
  font-family: Montserrat, sans-serif;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #444;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F57C00;
  cursor: pointer;
  padding: 1rem 0;
  font-family: Roboto, sans-serif;
}

/* closed */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.35s ease, padding 0.2s ease;
}

/* open */
.faq-item.active .faq-answer {
  max-height: 2000px;
  padding: 0 0 1rem;
}

/* ===== Tables used in CMF etc ===== */
.project-flow {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.2rem;
}

.project-flow th,
.project-flow td {
  border: 1px solid #444;
  padding: 0.75rem 1rem;
  text-align: left;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .topbar nav {
    flex-basis: 100%;
  }

  .topbar nav > ul {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    justify-content: center;
  }

  .topbar nav > ul > li > a,
  .topbar .dropdown-toggle > a {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-col { width: 100%; max-width: 32rem; }
}
