/* WordPress integration and compatibility layer. */
:root {
  --navy: #17315f;
  --navy-deep: #0e1e3e;
  --blue: #1683f8;
  --blue-soft: #62adf8;
  --emerald: #14b884;
  --orange: #ff6a0a;
  --orange-hover: #e95300;
  --ink: #20273a;
  --muted: #687184;
  --border: #e5e9f0;
  --surface-soft: #f8f9fc;
}

/* Keep the saved Homepage blocks in the approved desktop positions. */
.home-hero .hero-grid > .hero-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  justify-self: stretch;
  text-align: left;
}
.home-hero .hero-grid > .dashboard-wrap {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  justify-self: end;
}
.home-hero .hero-copy h1,
.home-hero .hero-copy > p { margin-left: 0; text-align: left; }
.home-hero .hero-copy .hero-actions,
.home-hero .hero-copy .trust-row { justify-content: flex-start; }

/* Visual page-builder affordances; these selectors only exist in wp-admin. */
.editor-styles-wrapper .wp-block-adclub-container {
  position: relative;
  min-height: 34px;
  outline: 1px dashed transparent;
  outline-offset: 3px;
}
/* Span containers hold decorative SVG blocks and use a safe div in wp-admin. */
.editor-styles-wrapper .industry-grid .adclub-editor-tag-span {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #0782fb;
  border-radius: 20px;
  background: linear-gradient(135deg, #e5f2ff, #e3f8f2);
}
.editor-styles-wrapper .industry-grid .adclub-editor-tag-span svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.editor-styles-wrapper .adclub-editor-tag-a,
.editor-styles-wrapper .adclub-editor-tag-button { cursor: text; }
/*
 * Gutenberg's normal content canvas is 780px wide. Use the design's stacked
 * responsive composition there instead of squeezing 1180px desktop columns
 * into the editor. The public two-column layouts remain unchanged.
 */
.editor-styles-wrapper .home-hero {
  min-height: auto;
  padding: 90px 0 72px;
}
.editor-styles-wrapper .hero-grid,
.editor-styles-wrapper .cta-grid,
.editor-styles-wrapper .solutions-layout,
.editor-styles-wrapper .content-grid {
  grid-template-columns: minmax(0, 1fr);
}
.editor-styles-wrapper .hero-grid,
.editor-styles-wrapper .cta-grid { gap: 42px; }
.editor-styles-wrapper .home-hero .hero-grid > .hero-copy {
  grid-column: 1;
  grid-row: 1;
}
.editor-styles-wrapper .home-hero .hero-grid > .dashboard-wrap {
  grid-column: 1;
  grid-row: 2;
}
.editor-styles-wrapper .dashboard-wrap {
  width: min(100%, 620px);
  margin: 12px auto 0;
}
.editor-styles-wrapper .cta-section { padding: 72px 0; }
.editor-styles-wrapper .cta-copy,
.editor-styles-wrapper .contact-form,
.editor-styles-wrapper .adclub-form-slot { min-width: 0; }
.editor-styles-wrapper .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-styles-wrapper .reasons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-styles-wrapper .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editor-styles-wrapper .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-styles-wrapper .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
.editor-styles-wrapper .stories-grid,
.editor-styles-wrapper .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-styles-wrapper .contact-details,
.editor-styles-wrapper .rich-content .service-intro-grid { grid-template-columns: minmax(0, 1fr); }
.editor-styles-wrapper .scroll-cue { display: none; }
.editor-styles-wrapper .wp-block-adclub-container.is-selected,
.editor-styles-wrapper .wp-block-adclub-container.has-child-selected {
  outline-color: rgba(22,131,248,.45);
}
.editor-styles-wrapper .wp-block-adclub-image > .components-button,
.editor-styles-wrapper .wp-block-adclub-video > .components-button { margin-top: 8px; }
.editor-styles-wrapper .story-image > .wp-block-adclub-image {
  position: relative;
  height: 100%;
}
.editor-styles-wrapper .story-image > .wp-block-adclub-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}
.editor-styles-wrapper .story-image > .wp-block-adclub-image > .components-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

@media (max-width: 560px) {
  .editor-styles-wrapper .service-grid,
  .editor-styles-wrapper .reasons-grid,
  .editor-styles-wrapper .stats-grid,
  .editor-styles-wrapper .industry-grid,
  .editor-styles-wrapper .process-grid,
  .editor-styles-wrapper .stories-grid,
  .editor-styles-wrapper .resource-grid { grid-template-columns: minmax(0, 1fr); }
}

@supports (color: oklch(50% .1 200)) {
  :root {
    --navy: oklch(28% .08 262);
    --navy-deep: oklch(20% .07 260);
    --blue: oklch(60% .2 255);
    --blue-soft: oklch(72% .14 250);
    --emerald: oklch(68% .15 165);
    --orange: oklch(70% .19 45);
    --orange-hover: oklch(64% .2 42);
    --ink: oklch(22% .04 260);
    --muted: oklch(48% .03 260);
    --border: oklch(92% .01 250);
    --surface-soft: oklch(98.5% .005 250);
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  color: #17315f;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #62adf8;
  outline-offset: 3px;
}

#primary:focus { outline: 0; }

.brand-image {
  width: auto;
  max-width: 190px;
  height: 42px;
  object-fit: contain;
}

/* Native WordPress menu markup. */
.desktop-nav .desktop-menu,
.desktop-nav .sub-menu,
.mobile-nav .mobile-menu-list,
.mobile-nav .sub-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.desktop-nav .desktop-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.desktop-nav .menu-item { position: relative; }
.desktop-nav .menu-item > a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,.84);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}
.desktop-nav .menu-item > a:hover,
.desktop-nav .menu-item > a:focus-visible,
.desktop-nav .current-menu-item > a,
.desktop-nav .current-menu-ancestor > a { color: var(--blue-soft); }

.home-header .desktop-nav .menu-item > a { color: var(--navy); }
.home-header .desktop-nav .menu-item > a:hover,
.home-header .desktop-nav .menu-item > a:focus-visible,
.home-header .desktop-nav .current-menu-item > a,
.home-header .desktop-nav .current-menu-ancestor > a { color: var(--blue); }

.desktop-nav .sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  width: 250px;
  padding: 10px;
  transform: translate(-50%, 8px);
  visibility: hidden;
  opacity: 0;
  background: rgba(19,38,76,.98);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  box-shadow: 0 24px 48px rgba(8,26,60,.24);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.desktop-nav .menu-item-has-children:hover > .sub-menu,
.desktop-nav .menu-item-has-children:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}
.desktop-nav .sub-menu a {
  display: block;
  padding: 10px 12px;
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
}
.desktop-nav .sub-menu a:hover,
.desktop-nav .sub-menu a:focus-visible { color: #fff; background: rgba(255,255,255,.1); }

/* The floating header uses dark link text, but dropdowns stay on navy. */
.home-header .desktop-nav .sub-menu a { color: #fff; }
.home-header .desktop-nav .sub-menu a:hover,
.home-header .desktop-nav .sub-menu a:focus-visible { color: #fff; background: rgba(255,255,255,.1); }

.mobile-nav .mobile-menu-list { display: grid; }
.mobile-nav .sub-menu { padding-left: 16px; }
.mobile-nav .sub-menu a { color: var(--muted); font-size: 13px; }
.mobile-nav .current-menu-item > a { color: var(--blue); background: rgba(22,131,248,.08); }

body.menu-open > main,
body.menu-open > footer { filter: blur(6px); pointer-events: none; }

body.admin-bar .inner-header .site-header { top: 32px; }
body.admin-bar .home-header .site-header { top: 48px; }

/* Gutenberg and legacy WordPress content. */
.legacy-article h3 { margin: 36px 0 14px; color: #fff; font-size: 24px; }
.legacy-article h6 { margin: 28px 0 12px; color: #fff; font-size: 16px; }
.legacy-article figure { max-width: 100%; margin: 28px 0; }
.legacy-article figcaption { margin-top: 8px; color: rgba(255,255,255,.58); font-size: 12px; text-align: center; }
.legacy-article iframe { max-width: 100%; }
.legacy-article blockquote {
  margin: 32px 0;
  padding: 8px 0 8px 24px;
  border-left: 4px solid var(--emerald);
}
.legacy-article blockquote p { color: rgba(255,255,255,.9); font-size: 19px; }
.legacy-article .alignwide { width: min(100%, 1080px); max-width: 1080px; margin-left: auto; margin-right: auto; }
.legacy-article .alignfull { width: 100%; max-width: none; }
.legacy-article .alignleft { float: left; margin: 8px 28px 20px 0; }
.legacy-article .alignright { float: right; margin: 8px 0 20px 28px; }
.legacy-article .aligncenter { margin-left: auto; margin-right: auto; }
.legacy-article .wp-block-button__link {
  display: inline-flex;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a19, #ff5b09);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}
.legacy-article .wp-block-gallery { padding-left: 0; }
.legacy-article .wp-block-gallery li { padding-left: 0; }
.legacy-article .wp-block-gallery li::before { display: none; }
.legacy-article .wp-block-embed__wrapper { position: relative; overflow: hidden; }
.legacy-article::after { content: ""; display: table; clear: both; }

/* Dynamic blog output. */
.blog-page-intro { padding: 52px 0 0; background: var(--navy-deep); }
.blog-page-intro .legacy-article { max-width: 1180px; }
.blog-list-thumbnail { display: block; margin-bottom: 24px; text-decoration: none !important; }
.blog-list-thumbnail img { width: 100%; max-height: 420px; object-fit: cover; }
.legacy-blog-post .category { margin-bottom: 12px; color: var(--blue-soft); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.legacy-blog-post .category a { color: inherit; text-decoration: none; }
.legacy-blog-post .entry-summary p { margin-bottom: 12px; }
.legacy-pagination nav { width: 100%; }
.legacy-pagination .nav-links,
.legacy-pagination .page-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 0; margin: 0; list-style: none; }
.legacy-pagination .page-numbers li { padding: 0; }
.legacy-pagination .page-numbers li::before { display: none; }
.legacy-pagination a.page-numbers,
.legacy-pagination span.page-numbers,
.legacy-pagination .page-numbers a,
.legacy-pagination .page-numbers span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  color: #355173;
  background: #f1f5fb;
  border-radius: 9px;
  text-decoration: none;
}
.legacy-pagination .current { color: #fff !important; background: #1d71f4 !important; }
.single-post-hero .legacy-entry-meta { color: rgba(255,255,255,.72) !important; }
.legacy-feature-image { overflow: hidden; margin-bottom: 32px; }
.legacy-feature-image img { width: 100%; height: auto; margin: 0; box-shadow: none; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.post-tags a { padding: 7px 10px; color: #fff; background: rgba(255,255,255,.08); border-radius: 999px; font-size: 12px; text-decoration: none; }
.post-navigation-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 30px; margin-top: 38px; border-top: 1px solid rgba(255,255,255,.14); }
.post-navigation-links > div:last-child { text-align: right; }
.post-navigation-links a { text-decoration: none; }

/* Sidebar and search. */
.legacy-sidebar .widget { margin-bottom: 34px; }
.legacy-sidebar ul { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.legacy-sidebar li { color: rgba(255,255,255,.72); }
.legacy-sidebar a { color: rgba(255,255,255,.78); }
.legacy-sidebar a:hover { color: #fff; }
.legacy-sidebar .adclub-form-slot--contact,
.legacy-sidebar .adclub-form-fallback {
  padding: 18px;
  border-radius: 14px;
  box-shadow: none;
}
.legacy-sidebar .adclub-form-slot--contact .gform_wrapper,
.legacy-sidebar .adclub-form-slot--contact .wpforms-container { margin: 0; }
.search-form { display: flex; max-width: 620px; gap: 10px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #14284d;
  background: #fff;
  border: 1px solid #ccd8e9;
  border-radius: 10px;
}

/* Real plugin form slots. There are deliberately no fake form handlers. */
.adclub-form-slot,
.adclub-form-fallback {
  width: 100%;
}
.adclub-form-slot--home,
.adclub-form-slot--contact {
  padding: 30px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(15,31,60,.12);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(8,26,60,.14);
}
.adclub-form-slot--perm {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
}
.adclub-form-slot form,
.adclub-form-slot .gform_fields,
.adclub-form-slot .wpforms-field-container { display: grid; gap: 16px; }
.adclub-form-slot label,
.adclub-form-slot .gfield_label,
.adclub-form-slot .wpforms-field-label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.adclub-form-slot--perm label,
.adclub-form-slot--perm .gfield_label,
.adclub-form-slot--perm .wpforms-field-label { color: #fff; }
.adclub-form-slot input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.adclub-form-slot textarea,
.adclub-form-slot select,
.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpforms-container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.wpforms-container textarea,
.wpforms-container select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #14284d;
  background: #fbfcff;
  border: 1px solid #ccd8e9;
  border-radius: 10px;
}
.adclub-form-slot textarea,
.wpcf7-form-control.wpcf7-textarea,
.wpforms-container textarea { min-height: 130px; resize: vertical; }
.adclub-form-slot input[type="checkbox"],
.adclub-form-slot input[type="radio"] { width: 18px; height: 18px; accent-color: var(--blue); }
.adclub-form-slot input[type="submit"],
.adclub-form-slot button[type="submit"],
.wpcf7-submit,
.wpforms-submit {
  min-height: 48px;
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a19, #ff5b09);
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.adclub-form-slot .gfield_validation_message,
.adclub-form-slot .validation_message,
.adclub-form-slot .wpforms-error,
.adclub-form-slot .wpcf7-not-valid-tip { color: #d63638; font-size: 12px; }
.adclub-form-slot .gform_confirmation_message,
.adclub-form-slot .wpforms-confirmation-container,
.adclub-form-slot .wpcf7-response-output { padding: 14px; border-radius: 10px; background: #e8f8f2; color: #116a50; }
.adclub-form-fallback { display: grid; gap: 14px; }
.adclub-form-fallback .form-heading { margin-bottom: 4px; }
.adclub-form-fallback .form-email-link { color: var(--blue); text-align: center; font-weight: 700; }
.adclub-form-admin-note { padding: 10px; margin: 8px 0 0; color: #6b4d00 !important; background: #fff4ce; border-radius: 8px; font-size: 12px !important; }
.adclub-form-admin-note a { color: #5b4100 !important; }
.newsletter-fallback a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .adclub-form-slot--newsletter { max-width: 390px; }
.site-footer .adclub-form-slot--newsletter form { display: flex; gap: 8px; }
.site-footer .adclub-form-slot--newsletter label,
.site-footer .adclub-form-slot--newsletter .gfield_label,
.site-footer .adclub-form-slot--newsletter .wpforms-field-label { color: #fff; }
.site-footer .adclub-form-slot--newsletter .gform-body,
.site-footer .adclub-form-slot--newsletter .wpforms-field-container { flex: 1; }
.site-footer .adclub-form-slot--newsletter .gform_footer { margin: 0; padding: 0; }
.site-footer .adclub-form-slot--newsletter input:not([type="submit"]) { min-width: 0; color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.footer-bottom .footer-legal-menu { display: flex; gap: 20px; margin: 0; }

/* Comments. */
.comments-area { margin-top: 54px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.14); }
.comment-list { display: grid; gap: 24px; padding: 0; list-style: none; }
.comment-list li { padding: 20px; background: rgba(255,255,255,.05); border-radius: 12px; }
.comment-list li::before { display: none; }
.comment-meta { font-size: 12px; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; margin-bottom: 6px; color: #fff; font-weight: 700; }
.comment-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #ccd8e9; border-radius: 10px; }
.comment-form .submit { min-height: 48px; padding: 13px 22px; color: #fff; background: var(--orange); border: 0; border-radius: 12px; font-weight: 700; }

@media (max-width: 782px) {
  body.admin-bar .inner-header .site-header { top: 46px; }
  body.admin-bar .home-header .site-header { top: 56px; }
  body.admin-bar .mobile-menu nav { top: 134px; max-height: calc(100dvh - 154px); }
}

@media (max-width: 820px) {
	.desktop-nav { display: none; }
	.home-hero .hero-grid > .hero-copy { grid-column: 1; grid-row: 1; }
	.home-hero .hero-grid > .dashboard-wrap { grid-column: 1; grid-row: 2; justify-self: center; }
	.post-navigation-links { grid-template-columns: 1fr; }
  .post-navigation-links > div:last-child { text-align: left; }
  .legacy-article .alignleft,
  .legacy-article .alignright { float: none; margin: 24px auto; }
  .site-footer .adclub-form-slot--newsletter form { display: grid; }
}

@media (max-width: 560px) {
  .adclub-form-slot--home,
  .adclub-form-slot--contact,
  .adclub-form-slot--perm { padding: 20px; }
  .search-form { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
