@import url('/custom/assets/fonts/fonts.css');

/* ── Variables ── */
:root {
  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --col-primary: #FF5500;
  --col-primary-dark: #C93F00;
  --col-ink: #14171c;
  --col-ink-soft: #1f242c;
  --col-secondary: #1fb6a6;
  --col-text: #262a31;
  --col-muted: #636a75;
  --col-bg: #f3f1ec;
  --col-card: #ffffff;
  --col-border: #e0ddd5;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,23,28,.06), 0 8px 24px -12px rgba(20,23,28,.18);
  --shadow-hover: 0 2px 4px rgba(20,23,28,.08), 0 18px 36px -14px rgba(20,23,28,.32);
  --t: .25s cubic-bezier(.2,.7,.2,1);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--col-bg);
  color: var(--col-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--col-ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
}

a { color: var(--col-primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t); }
a:hover { color: var(--col-primary); }
:focus-visible { outline: 3px solid var(--col-secondary); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

/* ── Header ── */
.site-header,
.outer-mainmenu-container {
  background-color: var(--col-ink);
  border-bottom: 3px solid var(--col-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav { padding: 12px 0; gap: 16px; }
.logo-wrapper { display: inline-flex; line-height: 0; flex-shrink: 0; }
.logo-wrapper .logo { height: 70px; width: auto; max-width: none; }
.site-nav .navbar-nav { gap: 2px; align-items: center; }
.site-nav .nav-link {
  color: #e8eaee;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.site-nav .nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav .nav-link.active { background: rgba(255,85,0,.18); color: #ffb08a; }
.site-nav .nav-link.is-cta { background: var(--col-primary); color: var(--col-ink); margin-left: 6px; }
.site-nav .nav-link.is-cta:hover { background: #ff7433; color: var(--col-ink); }

.navbar-toggler {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  padding: 12px 11px;
  background: transparent;
}
.navbar-toggler-bars,
.navbar-toggler-bars::before,
.navbar-toggler-bars::after {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; content: '';
  position: relative;
}
.navbar-toggler-bars::before { position: absolute; top: -7px; }
.navbar-toggler-bars::after { position: absolute; top: 7px; }

@media (max-width: 1199.98px) {
  .logo-wrapper .logo { height: 52px; }
  .site-nav .navbar-nav { align-items: stretch; padding: 12px 0 8px; }
  .site-nav .nav-link { border-radius: 10px; }
  .site-nav .nav-link.is-cta { margin: 6px 0 0; text-align: center; }
}

/* ── Breadcrumb ── */
.container > .row > .col-lg-12 > p,
.container > .row > .col-lg-12 > nav,
.container > .row > .col-lg-12 > div { font-size: 14px; margin: 18px 0 0; color: var(--col-muted); }
.container > .row > .col-lg-12 a { color: var(--col-muted); }
.container > .row > .col-lg-12 a:hover { color: var(--col-primary-dark); }

/* ── Home hero ── */
.home-hero {
  background:
    radial-gradient(900px 340px at 85% -10%, rgba(255,85,0,.38), transparent 60%),
    radial-gradient(500px 260px at 0% 110%, rgba(31,182,166,.22), transparent 70%),
    linear-gradient(var(--col-ink), var(--col-ink-soft));
  color: #d6d9df;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.home-hero .container { position: relative; }
.hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--col-primary);
  border: 1px solid rgba(255,85,0,.5);
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.home-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 800;
  max-width: 17ch;
  margin: 0 0 18px;
}
.hero-text { max-width: 62ch; font-size: 20px; color: #c3c8d1; }
.hero-text p { margin: 0; }
.hero-chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips a {
  display: block; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background var(--t), color var(--t), transform var(--t);
}
.hero-chips a:hover { background: var(--col-primary); color: var(--col-ink); transform: translateY(-2px); }

/* ── Layout ── */
.inner-wrapper { padding: 36px 0 64px; }

.intro { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--col-border); }
.intro h1, .article-head h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  margin: 0 0 12px;
}
.intro h1::after {
  content: ''; display: block; width: 64px; height: 5px; margin-top: 14px;
  background: var(--col-primary); border-radius: 3px;
}
.intro-text { font-size: 20px; color: var(--col-muted); max-width: 62ch; }
.intro-text p { margin: 0; }

/* ── Article list / cards ── */
.article-list { margin-bottom: 56px; }
.list-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--col-ink);
}
.list-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.list-head h2 a { color: var(--col-ink); text-decoration: none; }
.list-head h2 a:hover { color: var(--col-primary-dark); }
.list-more { font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }

.article-item {
  height: 100%;
  background: var(--col-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  animation: rise .6s both;
}
.article-list .col-md-6:nth-child(2) .article-item { animation-delay: .06s; }
.article-list .col-md-6:nth-child(3) .article-item { animation-delay: .12s; }
.article-list .col-md-6:nth-child(n+4) .article-item { animation-delay: .18s; }
.article-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.article-item > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.article-item .image { overflow: hidden; aspect-ratio: 66 / 40; background: var(--col-ink-soft); }
.article-item .image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--t); }
.article-item:hover .image img { transform: scale(1.05); }
.article-body { padding: 18px 20px 22px; border-top: 4px solid var(--col-primary); }
.article-item .date { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--col-muted); margin-bottom: 6px; }
.article-item h2, .article-item h3 { font-size: 21px; margin: 0 0 8px; transition: color var(--t); }
.article-item:hover h2, .article-item:hover h3 { color: var(--col-primary-dark); }
.article-item .excerpt {
  margin: 0; font-size: 16px; line-height: 1.55; color: var(--col-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .article-item { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── Article detail ── */
.article-head { margin-bottom: 22px; }
.article-cat {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--col-ink); color: #fff; padding: 5px 12px; border-radius: 6px; text-decoration: none;
}
.article-cat:hover { background: var(--col-primary); color: var(--col-ink); }
.article-detail .date { color: var(--col-muted); font-size: 15px; }
.article-detail .image { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-detail .image img { display: block; width: 100%; height: auto; }
.content { font-size: 19px; }
.content h2 { font-size: 30px; margin: 1.8em 0 .5em; }
.content h3 { font-size: 24px; margin: 1.6em 0 .5em; }
.content p, .content ul, .content ol { margin-bottom: 1.2em; }
.content img { border-radius: 10px; margin: .5em 0; }
.content blockquote {
  margin: 1.6em 0; padding: 12px 22px; border-left: 5px solid var(--col-primary);
  background: #fff; border-radius: 0 10px 10px 0; font-style: italic;
}
.content table { width: 100%; margin-bottom: 1.4em; }
.content th, .content td { padding: 8px 10px; border-bottom: 1px solid var(--col-border); }

.related-articles { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--col-border); }
.related-title { font-size: 28px; margin-bottom: 22px; }
.page-content { font-size: 19px; }

/* ── Sidebar ── */
.sidebar { display: grid; gap: 24px; position: sticky; top: 112px; }
@media (max-width: 991.98px) { .sidebar { position: static; margin-top: 40px; } }
.sidebar-label {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--col-primary); margin: 0 0 8px;
}
.fi-newsletter-cta {
  background: linear-gradient(160deg, var(--col-ink), var(--col-ink-soft));
  color: #cdd1d8; border-radius: var(--radius); padding: 24px 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.fi-newsletter-cta::after {
  content: ''; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,85,0,.55), transparent 70%);
}
.fi-newsletter-cta > * { position: relative; z-index: 1; }
.fi-newsletter-cta__title { color: #fff; font-size: 22px; margin: 0 0 10px; }
.fi-newsletter-cta__text { font-size: 16px; line-height: 1.55; margin: 0 0 18px; }
.btn-newsletter {
  display: inline-block; background: var(--col-primary); color: var(--col-ink); font-family: var(--font-display);
  font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px; text-decoration: none;
  transition: transform var(--t), background var(--t);
}
.btn-newsletter:hover { background: #ff7433; color: var(--col-ink); transform: translateY(-2px); }

.sidebar-categories { background: var(--col-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 12px; }
.sidebar-categories ul { list-style: none; margin: 0; padding: 0; }
.sidebar-categories li + li { border-top: 1px solid var(--col-border); }
.sidebar-categories a {
  display: flex; justify-content: space-between; gap: 8px; padding: 11px 0;
  color: var(--col-ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.sidebar-categories a:hover { color: var(--col-primary-dark); }
.cat-arrow { color: var(--col-primary); transition: transform var(--t); }
.sidebar-categories a:hover .cat-arrow { transform: translateX(4px); }

/* ── Pagination ── */
.pagination { gap: 6px; flex-wrap: wrap; }
.pagination .page-link {
  border: 0; border-radius: 10px !important; color: var(--col-ink); background: var(--col-card);
  font-family: var(--font-display); font-weight: 600; box-shadow: var(--shadow); min-width: 42px; text-align: center;
}
.pagination .page-link:hover { background: var(--col-ink); color: #fff; }
.pagination .active .page-link { background: var(--col-primary); color: var(--col-ink); }
.pagination .disabled .page-link { background: transparent; box-shadow: none; color: var(--col-muted); }

/* ── Footer ── */
.site-footer {
  background: var(--col-ink); color: #aab0ba; text-align: center;
  padding: 44px 0 36px; border-top: 3px solid var(--col-primary);
}
.footer-logo { display: inline-block; line-height: 0; margin-bottom: 16px; }
.footer-logo img { height: 60px; width: auto; }
.footer-copy { margin: 0 0 14px; font-size: 15px; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.footer-nav a:hover { color: var(--col-primary); }

/* ── Forms / misc ── */
.cms-form input, .cms-form textarea, .cms-form select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--col-border); border-radius: 10px; background: #fff; font: inherit;
}
.cms-form button[type=submit] {
  background: var(--col-primary); color: var(--col-ink); border: 0; border-radius: 999px; padding: 11px 26px; font-family: var(--font-display); font-weight: 700;
}
.cookieicon { background-color: var(--col-ink) !important; }
