/**
 * Moka3ab theme — custom styles.
 *
 * Loaded after the compiled Bootstrap build (css/inc/bootstrap.custom.min.css).
 * Keep this file for site-specific overrides on top of Bootstrap; component
 * styles for the new design should live here as they're built out.
 *
 * css/inc/scss/_variables_bootstrap.scss still has the starter-theme's
 * default $primary/$font-family-base — the *compiled* bootstrap.custom.min.css
 * committed to the repo was never rebuilt from it, and there's no sass
 * toolchain wired into this project to do so. Rather than block on adding a
 * build step, the brand color/type is applied here as a plain CSS override on
 * top of the compiled defaults — this is what actually reaches the browser
 * for any native Bootstrap markup (Webform fields, mobile nav toggler, etc.),
 * since Drupal SDC CSS (components/) never touches that markup at all.
 */

:root {
  --bs-primary: #FF2D6B;
  --bs-primary-rgb: 255, 45, 107;
  --bs-body-font-family: 'Manrope', sans-serif;
  --bs-link-color: #FF2D6B;
  --bs-link-hover-color: #d81f56;
}

/* html/*.html's shared reset sets body{color:#0F0F12} on every page (only
 * Checkout's own body{background:...} differs, see the Checkout-only rule
 * below) — this theme never had an equivalent, so text fell back to
 * Bootstrap's default $body-color (#212529) everywhere a page/component
 * didn't set its own inline/explicit color. A real, theme-wide bug (found
 * verifying Checkout, where it's most visible on the H1/legends/labels, but
 * it affects any unstyled text on any page). */
body { font-family: 'Manrope', sans-serif; color: #0F0F12; }

/* html/*.html's global reset (html/Home.css line 3: a{color:inherit;
 * text-decoration:none}) has no equivalent anywhere in this theme, so every
 * link without an *inline* color/text-decoration (nav links, footer links,
 * embedded-View row links, etc.) was falling back to Bootstrap's compiled
 * default: blue #0D6EFD with an underline — a real, theme-wide bug, not a
 * per-component one. A direct `a{color:...}` rule always wins over a color
 * only set on an ancestor, regardless of specificity math, which is why
 * `.mk3-nav{color:#3A3A42}` alone never reached its own `<a>` children. */
a { color: inherit; text-decoration: none; }
a:hover { color: #FF2D6B; }

/* Webform fields — matches the input/select/textarea styling in html/Contact.html
 * and html/Free Audit.html (height 52px, 1px #E0E0E4 border, 11px radius). */
.form-control,
.form-select {
  height: 52px;
  border: 1px solid #E0E0E4;
  border-radius: 11px;
  padding: 0 16px;
  color: #0F0F12;
}
textarea.form-control { height: auto; min-height: 130px; padding: 14px 16px; }
.form-control:focus,
.form-select:focus {
  border-color: #FF2D6B;
  box-shadow: 0 0 0 3px rgba(255, 45, 107, .15);
}
.form-control::placeholder { color: #9A9AA2; }

/* The contrib Bootstrap base theme this subtheme extends ships its own
 * `node.css` with `.node__content { font-size: 1.071em; }` — inflates every
 * un-sized text on every page to 17.136px instead of the mockups' plain
 * 16px browser default. Confirmed present in this repo too (not just
 * pending deploy) via live verification on Free Audit/About. */
.node__content { font-size: 1em; }

.btn-primary {
  background: #FF2D6B;
  border-color: #FF2D6B;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  border-radius: 11px;
  padding: 16px;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #d81f56 !important;
  border-color: #d81f56 !important;
}

.navbar-toggler { border-color: #E6E6EA; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 45, 107, .15); }

/* Webform radios/checkboxes (Checkout's package choice, add-ons, payment
 * method, VAT toggle) — had zero custom.css coverage, unlike the text/select
 * fields above, so they rendered as bare Bootstrap-default toggle switches.
 * Turned each option into a full-width selectable row matching the site's
 * card language, and reset the switch-track look back to a plain radio dot
 * (Bootstrap's compiled bundle gives `radios` elements a `.form-switch`
 * pill-track background — the wrong affordance for a mutually-exclusive
 * "choose one" field; the webform config itself uses plain #type: radios). */
.form-check {
  position: relative;
  border: 1px solid #E0E0E4;
  border-radius: 11px;
  padding: 14px 16px 14px 46px;
  margin: 0 0 10px;
  transition: border-color .15s ease, background-color .15s ease;
}
.form-check:has(.form-check-input:checked) {
  border-color: #FF2D6B;
  background: #FFF1F5;
}
.form-check-input {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: 20px;
  height: 20px;
  background-image: none !important;
  border-radius: 50% !important;
  border: 2px solid #C9C9D2;
}
.form-check-input:checked {
  background-color: #FF2D6B !important;
  border-color: #FF2D6B !important;
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 45, 107, .15);
  border-color: #FF2D6B;
}
.form-check-label { font-size: 15px; cursor: pointer; }

fieldset.webform-composite-visible-title,
.js-webform-type-radios,
.js-webform-type-checkboxes {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
fieldset legend,
.fieldset__label {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  padding: 0;
  margin: 0 0 14px;
  float: none;
  width: auto;
}

/* Wizard progress tracker (webform_wizard_progress) — Drupal core ships
 * plain <ul>/<li> markup here (`.progress-tracker`/`.progress-step`/
 * `.progress-marker`) with no visual styling anywhere in this theme's
 * Bootstrap bundle (confirmed: 0 `.progress-tracker`/`.pagination` rules in
 * bootstrap.custom.min.css — it's a purged/subset build), so it rendered as
 * a bare bullet list of step titles. */
.webform-progress { margin-bottom: 32px; }
.progress-tracker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  gap: 4px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 64px;
  text-align: center;
}
.progress-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #E0E0E4;
  background: #fff;
  color: #9A9AA2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
}
/* The marker div itself is empty in the DOM — Drupal core puts the step
 * number in a `data-text` attribute for exactly this purpose. */
.progress-marker::before { content: attr(data-text); }
.progress-step.is-active .progress-marker,
.progress-step.is-complete .progress-marker,
.progress-step.is-done .progress-marker {
  border-color: #FF2D6B;
  background: #FF2D6B;
  color: #fff;
}
.progress-title { font-size: 12px; font-weight: 700; color: #9A9AA2; }
.progress-step.is-active .progress-title { color: #0F0F12; }
.webform-progress__status { text-align: center; }
.webform-progress__summary {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #6A6A72;
  background: #F4F4F6;
  padding: 5px 12px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .progress-title { display: none; }
  .progress-step { min-width: 0; }
}

/* Read-only computed markup blocks (webform_computed_twig — Checkout's price
 * breakdown/order-summary elements). */
.webform-computed {
  background: #fff;
  border: 1px solid #EBEBEF;
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 20px;
}

.webform-actions { display: flex; gap: 12px; margin-top: 8px; }

/* Top-level webform embeds (Checkout's wizard, placed directly in
 * field_blocks with no SDC around it) get no centered/padded container at
 * all otherwise — Moka3abParagraphEmbedded.php's webform branch has no
 * equivalent to Drupal core Views' own `.views-element-container` wrapper,
 * so the <form> rendered flush to the browser edge. Forms embedded INSIDE
 * an SDC (Home's audit form, Contact, Blog's newsletter — all nested in
 * content-with-form) already get a container from that component's own
 * .mk3-sdc__inner, so the rule right after this one cancels the duplicate. */
.paragraph--embedded-type--webform {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 3rem;
  /* html/Checkout.html is the only page whose body carries its own
   * background (#F4F4F6 light-gray wash, vs. every other page's plain
   * white) — this reproduces that wash behind the wizard's white cards
   * without a page/body-level selector, since Checkout is a `page` node
   * indistinguishable by class from any other `page` node. Harmless no-op
   * on every other top-level webform embed (none currently sets a
   * background of their own to conflict with). */
  background: #F4F4F6;
}
.mk3-sdc--content-with-form .paragraph--embedded-type--webform {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
}
@media (max-width: 768px) {
  .paragraph--embedded-type--webform { padding: 0 1.25rem; }
}

/* ==========================================================================
   Site chrome — header/nav/footer, hardcoded in page.html.twig to match
   html/*.html (see that file's comments). Ported 1:1 from Home.html's inline
   styles; .mk3-logo-fx/.mk3-wa-float animations live in components/base/base.css.
   ========================================================================== */

.mk3-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ECECEF;
  animation: mk3-hdr-drop .6s cubic-bezier(.2, .8, .2, 1);
}
@keyframes mk3-hdr-drop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mk3-header { animation: none; } }

.mk3-header__wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: 74px; }
.mk3-header__left { display: flex; align-items: center; gap: 44px; min-width: 0; }
.mk3-header__right { display: flex; align-items: center; gap: 20px; flex: none; margin-left: 24px; }

/* Below 900px the lang switcher + full "Get started" button + hamburger
 * together don't reliably fit the header width on a real phone (the mockup
 * has no mobile layout to inherit spacing rules from here) — hiding the
 * lang switcher (footer still has it) and tightening the CTA's padding
 * keeps the toggle button on-screen and reachable instead of getting pushed
 * past the viewport edge. */
@media (max-width: 900px) {
  .mk3-header__right { gap: 12px; }
  .mk3-header__right .mk3-lang { display: none; }
  .mk3-header__cta { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 480px) {
  .mk3-header__cta { display: none; }
}

.mk3-brand { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 26px; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 9px; color: #0F0F12; }
.mk3-brand:hover { color: #0F0F12; }
.mk3-brand__icon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; }
.mk3-brand__dot { color: #FF2D6B; }

.mk3-nav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; color: #3A3A42; }
.mk3-nav a { position: relative; }
.mk3-nav a:hover { color: #FF2D6B; }
.mk3-nav a::after { content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%; background: #FF2D6B; border-radius: 2px; transform: scaleX(0); transform-origin: right center; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.mk3-nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
/* Current-page nav link — matches html/*.html's per-page inline
 * `style="color:#FF2D6B;"` on the active link (see mk3_nav_current_path in
 * moka3ab_preprocess_page(), moka3ab.theme). */
.mk3-nav a.is-active,
.mk3-mobile-nav a.is-active { color: #FF2D6B; }

/* Mobile nav toggle — no equivalent in html/*.html (see the comment in
 * page.html.twig next to the toggle button). Hidden entirely at desktop
 * widths; below 900px it replaces the now-hidden inline .mk3-nav with a
 * hamburger button that drops the same links down as a panel. */
.mk3-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: none;
}
.mk3-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #0F0F12;
  transition: transform .2s ease, opacity .2s ease;
}
.mk3-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mk3-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mk3-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .mk3-nav { display: none; }
  .mk3-nav-toggle { display: flex; }
}

/* Mobile full-screen nav panel (#mk3-mobile-nav in page.html.twig) — a
 * SIBLING of <header>, not a descendant, specifically so it isn't inside
 * .mk3-header's backdrop-filter containing block (see the comment in
 * page.html.twig for why that matters — nesting it inside the header
 * collapsed the panel to a sliver instead of covering the screen, a real
 * bug caught by a live mobile screenshot). `top: 74px` here is safe because
 * this element's containing block IS the viewport. */
.mk3-mobile-nav {
  display: none;
}
@media (max-width: 900px) {
  .mk3-mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 74px; /* below the sticky header, matches .mk3-header__wrap height */
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 8px 24px 24px;
    overflow-y: auto;
    z-index: 49; /* just under .mk3-header (50), sits below the sticky header */
    font-weight: 600;
    color: #3A3A42;
  }
  .mk3-mobile-nav.is-open a { padding: 16px 0; border-bottom: 1px solid #F4F4F6; font-size: 17px; }
  .mk3-mobile-nav.is-open a:last-of-type { border-bottom: 0; }

  /* Mobile-only lang switcher, pinned to the bottom of the full-screen
   * panel rather than sitting inline with the nav links. */
  .mk3-mobile-nav__lang {
    display: flex;
    margin-top: auto;
    padding-top: 20px;
    gap: 16px;
    font-size: 14px;
  }
}

.mk3-lang { display: flex; gap: 10px; font-size: 13px; font-weight: 700; color: #9A9AA2; flex: none; }
.mk3-lang .is-active { color: #0F0F12; }
.mk3-footer .mk3-lang .is-active { color: #fff; }

.mk3-header__cta { background: #0F0F12; color: #fff; font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 10px; white-space: nowrap; flex: none; transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, filter .2s ease; }
.mk3-header__cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 15, 18, .20); filter: brightness(1.06); }
.mk3-header__cta:active { transform: translateY(0) scale(.98); }

/* Same contrib-base-theme cascade gap as .node__content above: the base
 * theme's own `.site-footer { font-family: "Helvetica Neue", ... }` rule
 * beats this class on specificity ties by loading first (base theme CSS is
 * always aggregated before the subtheme's own) — confirmed live via
 * verification on Free Audit/About/Contact, all showing the footer falling
 * back to Helvetica instead of Manrope. */
.mk3-footer { background: #0F0F12; color: #C9C9D2; font-family: 'Manrope', sans-serif; }
.mk3-footer a:hover { color: #fff; }
.mk3-footer__top { max-width: 1280px; margin: 0 auto; padding: 56px 48px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.mk3-footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.mk3-footer__heading { color: #fff; font-weight: 700; margin-bottom: 5px; }
.mk3-footer__brand { gap: 0; }
.mk3-footer__wordmark-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mk3-footer__icon { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; }
.mk3-footer__wordmark { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 22px; color: #fff; }
.mk3-footer__brand p { font-size: 14px; line-height: 1.6; max-width: 280px; margin: 0; }
.mk3-footer__brand .mk3-lang { margin-top: 16px; }
.mk3-footer__wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; font-weight: 700; font-size: 14px; padding: 11px 16px; border-radius: 10px; width: fit-content; }
.mk3-footer__wa:hover { color: #fff; }
.mk3-footer__note { font-size: 13px; color: #9A9AA2; margin-top: 3px; }
.mk3-footer__note a { color: #FF2D6B; font-weight: 700; }
.mk3-footer__social { display: flex; gap: 9px; margin-top: 7px; }
.mk3-footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.mk3-footer__contact { font-size: 13px; margin-top: 9px; line-height: 1.7; }
.mk3-footer__bottom { background: #0A0A0C; color: #7A7A82; }
.mk3-footer__bottom-inner { max-width: 1280px; margin: 0 auto; padding: 16px 48px; display: flex; justify-content: space-between; font-size: 13px; }
@media (max-width: 900px) { .mk3-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .mk3-footer__top { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .mk3-footer__bottom-inner { flex-direction: column; gap: 6px; padding-left: 20px; padding-right: 20px; }
  .mk3-header__wrap { padding: 0 20px; }
}

/* ==========================================================================
   Scroll reveal — targets tagged by js/custom.js (Drupal.behaviors.moka3abReveal).
   Ported 1:1 from html/*.css's `.reveal`/`.reveal.in` rules.
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Footer wordmark letter-flip (moka[3/ع]ab) and floating WhatsApp button.
   Ported 1:1 from html/Home.css's `.mk3`/`.mk3f`/`.mk3b`/`.wa-float` rules —
   these have no dedicated SDC in this simplified architecture (see Site
   Structure Plan §2/§8), so they live directly in the theme's own CSS.
   ========================================================================== */
.mk3-logo-fx { position: relative; display: inline-block; }
.mk3-logo-fx__f { animation: mk3-logo-out 5.5s cubic-bezier(.6, 0, .25, 1) infinite; }
.mk3-logo-fx__b { position: absolute; left: 50%; top: 0; color: #FF2D6B; animation: mk3-logo-in 5.5s cubic-bezier(.6, 0, .25, 1) infinite; }
@keyframes mk3-logo-out {
  0%, 24% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  34%, 78% { opacity: 0; transform: translateY(-55%) scale(.35); filter: blur(4px); }
  88%, 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes mk3-logo-in {
  0%, 24% { opacity: 0; transform: translateX(-50%) translateY(55%) scale(.35); filter: blur(4px); }
  34%, 78% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0); }
  88%, 100% { opacity: 0; transform: translateX(-50%) translateY(-55%) scale(.35); filter: blur(4px); }
}

.mk3-wa-float { position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .5); transition: transform .2s ease; }
.mk3-wa-float::before, .mk3-wa-float::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: mk3-wa-pulse 2.4s ease-out infinite; }
.mk3-wa-float::after { animation-delay: 1.2s; }
.mk3-wa-float:hover { transform: scale(1.09); }
@keyframes mk3-wa-pulse {
  0% { transform: scale(1); opacity: .55; }
  80% { opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mk3-logo-fx__f, .mk3-logo-fx__b, .mk3-wa-float::before, .mk3-wa-float::after { animation: none; }
}

/* ==========================================================================
   Embedded Views (field_embedded_type: views) — portfolio + blog teasers on
   Home (html/Home.html §PORTFOLIO / §BLOG). These paragraphs have no SDC —
   Moka3abParagraphEmbedded.php calls views_embed_view() directly, so this is
   the only place their layout can be styled. Row style plugin is Drupal's
   stock "fields" (one <div class="views-row"> per row, one
   <div class="views-field-X"> per configured field inside it) — turned into
   the mockup's image-card grid here since there's no per-row Twig template.
   ========================================================================== */
.paragraph--type--embedded-element {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.paragraph--type--embedded-element .embedded-title h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -.02em;
}

.paragraph--type--embedded-element .views-element-container {
  max-width: 80rem; /* 1280px, matches every other section's .mk3-*__inner */
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .paragraph--type--embedded-element .views-element-container {
    padding: 0 1.25rem;
  }
}

/* Every embedded-View grid in this section sets `display:grid` on Drupal's
 * default row-style wrapper (`.view-content.row`), but `display` doesn't
 * touch Bootstrap's own `.row{margin-inline:-12px}` (from
 * `--bs-gutter-x:1.5rem`), so that negative margin silently survived
 * underneath every grid override — a flat ~12px horizontal overflow on any
 * page with an embedded View, independently re-flagged as "unisolated" in
 * several rounds of Home-page fidelity review before being traced here. */
.paragraph--type--embedded-element .view-content.row {
  margin: 0;
}

/* Portfolio teaser (view-portfolio/home_teaser): 4-column image cards,
   matching html/Home.html's <div style="border-radius:16px;overflow:hidden;
   border:1px solid #EEE"> card. */
.view-portfolio.view-display-id-home_teaser .view-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem; /* ~18px */
}

.view-portfolio.view-display-id-home_teaser .views-row {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #EEE;
}

.view-portfolio.view-display-id-home_teaser .views-field-field-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

/* html/Home.html's card is one padded wrapper around title/category/stat
 * (<div style="padding:18px"><title/><category/><stat/></div>); Views
 * renders each as a separate sibling div instead, so the 18px padding is
 * split across the three fields (top-only on the first, bottom-only on the
 * last) to reproduce the same look without double-padding between them. */
.view-portfolio.view-display-id-home_teaser .views-field-title {
  padding: 18px 18px 0;
  font-weight: 800;
}

.view-portfolio.view-display-id-home_teaser .views-field-field-category {
  padding: 0 18px;
  font-size: 14px;
  color: #6A6A72;
}

.view-portfolio.view-display-id-home_teaser .views-field-field-performance {
  padding: 0 18px 18px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .view-portfolio.view-display-id-home_teaser .view-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Blog teaser (view-articles/home_teaser): 3-column cards, matching
   html/Home.html's blog card (gradient thumbnail block, category label,
   bold title). No thumbnail-gradient/read-time field exists on this view
   yet — image + title + category are what's actually configured. */
.view-articles.view-display-id-home_teaser .view-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; /* ~20px */
}

.view-articles.view-display-id-home_teaser .views-row {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #EEE;
}

.view-articles.view-display-id-home_teaser .views-field-field-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.view-articles.view-display-id-home_teaser .views-field-field-category {
  padding: 14px 18px 0;
  font-size: 13px;
  color: #FF2D6B;
  font-weight: 700;
}

.view-articles.view-display-id-home_teaser .views-field-title {
  padding: 6px 18px 18px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .view-articles.view-display-id-home_teaser .view-content {
    grid-template-columns: 1fr;
  }
}

/* Portfolio listing page (view-portfolio/full_list) — the actual /portfolio
 * page. Same "fields" row style as home_teaser above, but with 2 extra
 * fields configured (field_tags, field_body) and a category exposed filter
 * ahead of the grid. Was completely unstyled (plain stacked divs) since
 * only the home_teaser/related teaser displays had card CSS. */
.view-portfolio.view-display-id-full_list .views-exposed-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.view-portfolio.view-display-id-full_list .views-exposed-form .form-item {
  margin: 0;
}

.view-portfolio.view-display-id-full_list .views-exposed-form label {
  font-size: 13px;
  font-weight: 700;
  color: #3A3A42;
}

.view-portfolio.view-display-id-full_list .views-exposed-form select {
  font-size: 13px;
  font-weight: 700;
  color: #3A3A42;
  background: #F4F4F6;
  border: 0;
  border-radius: 999px;
  padding: 7px 30px 7px 13px;
}

.view-portfolio.view-display-id-full_list .views-exposed-form .form-actions {
  margin: 0;
}

.view-portfolio.view-display-id-full_list .views-exposed-form .form-submit {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  background: #0F0F12;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.view-portfolio.view-display-id-full_list .view-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.view-portfolio.view-display-id-full_list .views-row {
  border: 1px solid #EBEBEF;
  border-radius: 22px;
  overflow: hidden;
}

.view-portfolio.view-display-id-full_list .views-field-field-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.view-portfolio.view-display-id-full_list .views-field-title {
  padding: 22px 22px 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 22px;
}

.view-portfolio.view-display-id-full_list .views-field-field-category {
  padding: 16px 22px 0;
  font-size: 14px;
  font-weight: 700;
  color: #FF2D6B;
  order: -1;
}

.view-portfolio.view-display-id-full_list .views-field-field-body {
  padding: 10px 22px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6A6A72;
}

.view-portfolio.view-display-id-full_list .views-field-field-tags {
  padding: 14px 22px 22px;
  font-size: 13px;
  font-weight: 700;
  color: #3A3A42;
}

@media (max-width: 900px) {
  .view-portfolio.view-display-id-full_list .view-content {
    grid-template-columns: 1fr;
  }
}

/* Blog listing page (view-articles/blog_listing) — the actual /blog page.
 * Same underlying markup shape as the home_teaser blog cards, just a wider
 * grid and paginated. Was completely unstyled for the same reason as
 * Portfolio above. */
.view-articles.view-display-id-blog_listing .view-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 8px;
}

.view-articles.view-display-id-blog_listing .views-row {
  display: flex;
  flex-direction: column;
}

.view-articles.view-display-id-blog_listing .views-field-field-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.view-articles.view-display-id-blog_listing .views-field-field-category {
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #FF2D6B;
}

.view-articles.view-display-id-blog_listing .views-field-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.view-articles.view-display-id-blog_listing .views-field-title a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 900px) {
  .view-articles.view-display-id-blog_listing .view-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .view-articles.view-display-id-blog_listing .view-content {
    grid-template-columns: 1fr;
  }
}

/* Bootstrap's compiled CSS bundle in this theme has no .pagination component
 * at all (confirmed: 0 matches in bootstrap.custom.min.css) — Drupal's
 * default mini-pager (used by Portfolio/Blog listings) renders these classes
 * with zero backing CSS, showing as a bare bullet list. Minimal pill-style
 * pager to match the site's other rounded-pill controls. */
.pager, nav[aria-label="Page navigation"] {
  margin-top: 3rem;
}

.pager .pagination,
nav[aria-label="Page navigation"] .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pager .page-item .page-link,
nav[aria-label="Page navigation"] .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #F4F4F6;
  color: #3A3A42;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.pager .page-item.active .page-link,
.pager .page-item.is-active .page-link,
nav[aria-label="Page navigation"] .page-item.active .page-link,
nav[aria-label="Page navigation"] .page-item.is-active .page-link {
  background: #FF2D6B;
  color: #fff;
}

/* ==========================================================================
   Blog article — full view mode (node--article--full.html.twig). Ported
   1:1 from html/Blog Article.html + html/Blog Article.css's `.wrap`/`.prose`
   rules, which this node template doesn't otherwise inherit (no SDC wraps
   field_body/field_image on `article` — see the template's own file
   comment). Font sizes/spacing are literal mockup values, not clamped —
   matches the project-wide convention of leaving inline-style-driven sizes
   fixed across breakpoints (see hero H1, structure plan note).
   ========================================================================== */
.mk3-article__wrap {
  max-width: 80rem; /* 1280px, matches every other section's container */
  margin: 0 auto;
  padding: 0 3rem;
}

.mk3-article__prose {
  max-width: 45rem; /* 720px */
  margin: 0 auto;
}

.mk3-article__back {
  color: #9A9AA2;
  font-weight: 700;
  font-size: 14px;
}

.mk3-article__meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
}

.mk3-article__badge {
  background: #FFE7EF;
  color: #FF2D6B;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
}

.mk3-article__title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 20px;
}

.mk3-article__byline {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6A6A72;
  font-size: 15px;
  border-bottom: 1px solid #ECECEF;
  padding-bottom: 26px;
}

.mk3-article__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7A3BFF, #3B7DFF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  flex: none;
}

.mk3-article__author {
  font-weight: 700;
  color: #0F0F12;
}

.mk3-article__submeta {
  font-size: 14px;
}

.mk3-article__hero {
  padding-top: 30px;
}

.mk3-article__hero img {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  background: #0F0F12;
}

.mk3-article__body {
  padding-top: 40px;
  padding-bottom: 20px;
}

.mk3-article__body p {
  font-size: 18px;
  line-height: 1.75;
  color: #2A2A30;
  margin: 0 0 22px;
}

.mk3-article__body h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.02em;
  margin: 44px 0 14px;
}

.mk3-article__body h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 21px;
  margin: 30px 0 10px;
}

.mk3-article__body ul,
.mk3-article__body ol {
  margin: 0 0 22px;
  padding-left: 1.25em;
}

.mk3-article__body li {
  font-size: 18px;
  line-height: 1.7;
  color: #2A2A30;
  margin-bottom: 10px;
}

.mk3-article__body a {
  color: #FF2D6B;
  font-weight: 700;
}

.mk3-article__body blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  background: #F4F4F6;
  border-left: 4px solid #FF2D6B;
  border-radius: 0 12px 12px 0;
}

.mk3-article__body blockquote p {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.5;
  color: #0F0F12;
}

@media (max-width: 768px) {
  .mk3-article__wrap {
    padding: 0 1.25rem;
  }
}

/* "Keep reading" related-articles embed (views/articles/related), styled
   like the near-identical Home blog teaser above but without its card
   border — matches html/Blog Article.html's plain image+label+title grid. */
.paragraph--type--embedded-element.related-articles {
  padding-top: 50px;
  padding-bottom: 80px;
}

.related-articles .embedded-title h2 {
  font-size: 26px;
  margin: 0 0 22px;
}

.view-articles.view-display-id-related .view-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.view-articles.view-display-id-related .views-row {
  display: flex;
  flex-direction: column;
}

.view-articles.view-display-id-related .views-field-field-image {
  order: 1;
}

.view-articles.view-display-id-related .views-field-field-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.view-articles.view-display-id-related .views-field-field-category {
  order: 2;
  color: #FF2D6B;
  font-weight: 700;
  font-size: 13px;
  margin: 14px 0 6px;
}

.view-articles.view-display-id-related .views-field-title {
  order: 3;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .view-articles.view-display-id-related .view-content {
    grid-template-columns: 1fr;
  }
}
.recaptcha-legal {
	display: none;
}