/* ==========================================================================
   Integration layer
   --------------------------------------------------------------------------
   The 2026 design was drawn as a whole page: full-bleed heroes, its own type
   scale, its own colours. On WordPress it lands inside whatever theme is active,
   which means a max-width content column, the theme's typography, its link
   colours and its button styles all leak in.

   This file neutralises the host so the design renders as drawn, without
   touching the theme itself. Everything is scoped to .adly2026, which the plugin
   adds to <body>, so no other page on the site is affected.

   On a real Elementor Canvas template there is no theme wrapper and most of this
   is inert — it exists so the templates also survive being dropped into a normal
   page, which is how they will be reviewed.
   ========================================================================== */

/* 1. The design owns the page they sit on: no theme content column. */
.adly2026 .site-content,
.adly2026 .entry-content,
.adly2026 .post-content,
.adly2026 .content-area,
.adly2026 #content,
.adly2026 #primary,
.adly2026 .container,
.adly2026 .container-fluid,
.adly2026 .row,
.adly2026 .col,
.adly2026 [class*="col-"]{
  max-width:none !important;
  width:auto !important;
  padding:0 !important;
  margin:0 !important;
  float:none !important;
  display:block !important;
}

/* 2. Nothing in the host may box-model over our sections. */
.adly2026 section[class*="hero"],
.adly2026 section.adly-sec{
  position:relative;
  width:100%;
  max-width:none;
  margin:0;
  padding-inline:0;
}

/* 3. Full bleed: pull each section to the viewport edges regardless of parent. */
.adly2026 .adly-bleed{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

/* 4. Block-theme wrappers carry their own global padding; drop it on the
      ancestors of our sections only, so page titles and other content keep
      whatever the theme intended. */
.adly2026 .wp-block-group.has-global-padding,
.adly2026 .wp-site-blocks > main,
.adly2026 .alignfull{ padding-inline:0 !important; margin-inline:0 !important; }
.adly2026 .is-layout-constrained > *{ max-width:none !important; margin-inline:0 !important; }

/* 5. Host link and button styles would win on specificity; the design's own
      rules take over inside our sections. */
.adly2026 section a{ text-decoration:none; }
.adly2026 section button{ -webkit-appearance:none; appearance:none; }
.adly2026 section img,
.adly2026 section svg,
.adly2026 section video{ max-width:100%; }

/* 6. A theme's own header/footer sit above and below the design. When we are
      rendering a full-page template they should not appear at all. */
.adly2026.adly-canvas .site-header,
.adly2026.adly-canvas .site-footer,
.adly2026.adly-canvas #masthead,
.adly2026.adly-canvas #colophon{ display:none; }

/* 7. Keep the admin bar from covering the fixed design header. */
body.admin-bar .adly2026 .hdr{ top:32px; }
@media screen and (max-width:782px){
  body.admin-bar .adly2026 .hdr{ top:46px; }
}

/* 8. Reduced motion: the design already honours this; make sure host layers do
      not re-introduce movement. */
@media (prefers-reduced-motion: reduce){
  .adly2026 *,
  .adly2026 *::before,
  .adly2026 *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

/* ==========================================================================
   WordPress integration layer (2)
   --------------------------------------------------------------------------
   Everything below exists because a real WordPress install brings the host
   theme, Elementor's global kit CSS, Bootstrap, a CDN and a caching plugin.
   None of it changes the design; it removes the host's claims on the page.
   All rules are scoped to .adly2026 (kit pages only).
   ========================================================================== */

/* 9.  Canvas. The host theme paints <body> and <html> white and loads after us. */
html:has(.adly2026){ font-size:16px !important; background:var(--ink); }
html:has(.adly2026) body{
  background:var(--ink) !important;
  color:var(--ivory);
  font-size:clamp(.95rem,.55vw + .82rem,1.0625rem);
}
.adly2026,.adly2026 .site,.adly2026 .site-content,.adly2026 .content-area,
.adly2026 .site-main,.adly2026 main,.adly2026 article,.adly2026 .entry-content,
.adly2026 .post-content,.adly2026 .inner-post,.adly2026 .post-inner{
  background-color:var(--ink) !important;
}
.adly2026 .entry-content > *:first-child,
.adly2026 .inner-post > *:first-child{ margin-top:0 !important; }
.adly2026 .entry-header,.adly2026 .page-header,.adly2026 .entry-title,
.adly2026 .breadcrumbs,.adly2026 .post-thumbnail{ display:none !important; }

/* 10. Headings and links.
   The theme colours h1-h6 and a by element selector and loads later, so it
   flattens the design's cascade: reset to `inherit` rather than forcing a
   colour, then let the design decide. :where() keeps the link reset below the
   specificity of the design's own component rules (.nav a, .btn). */
.adly2026 h1,.adly2026 h2,.adly2026 h3,
.adly2026 h4,.adly2026 h5,.adly2026 h6,
.adly2026 blockquote{ color:inherit; }
.adly2026 :where(a){ color:inherit; }
.adly2026 a:hover{ color:inherit; }

/* 11. Light-section modifiers.
   .display--dark / .eyebrow--dark and .section.reviews carry the light-section
   palette. Prefixed with the section so they outrank .adly2026 h2 above. */
.adly2026 .section .display--dark,
.adly2026 .section h1.display--dark,
.adly2026 .section h2.display--dark{ color:var(--graphite); }
.adly2026 .section .display--dark em{ color:var(--graphite-2); }
.adly2026 .section .eyebrow--dark{ color:var(--graphite-2); }
.adly2026 .section .eyebrow--dark .sec-num{ color:var(--graphite-2); }
/* `inherit` resolves to the body's ivory, which is exactly what a light section
   must not be. State the design's own value: light sections use --graphite. */
.adly2026 .section.reviews{ color:var(--graphite); }

/* 12. Header colour.
   The theme owns a bare `.is-stuck{background:#fff}` that applies to any
   element, which collided with the design's sticky-header class. */
.adly2026 .hdr{ background-color:transparent !important; top:0; }
.adly2026 .hdr.is-stuck{ background-color:transparent !important; }
.adly2026 .hdr::after{ background:linear-gradient(180deg,var(--veil),transparent) !important; }
.adly2026 .hdr.is-stuck::after{
  background:linear-gradient(180deg,var(--veil),transparent) !important;
  border-bottom-color:var(--line-soft) !important;
}
.adly2026 .brand,.adly2026 .brand-name{ color:var(--ivory); }
.adly2026 .nav a{ color:var(--ivory-dim); }
.adly2026 .nav a:hover,.adly2026 .nav a[aria-current]{ color:var(--ivory); }
.adly2026 .btn{ color:var(--ink); background:var(--ivory); }
.adly2026 .btn--ghost{ color:var(--ivory); background:transparent; }
.adly2026 .btn--ghost:hover{ color:var(--ink); }
.adly2026 .eyebrow,.adly2026 .brand-sub{ color:inherit; }

/* 13. The host theme's page furniture: a widget sidebar (search / recent posts
   / categories) that rendered a 1,688px column underneath the design, plus its
   floating scroll-to-top control. */
.adly2026 #secondary,.adly2026 #sidebar,.adly2026 .widget-area,
.adly2026 .sidebar,.adly2026 .sidebar-area,
.adly2026 .widget,.adly2026 .widget-title{ display:none !important; }
.adly2026 .back-to-top,.adly2026 #back-to-top,.adly2026 .scroll-top,
.adly2026 .engitech-scroll-top,.adly2026 .floating-bar{ display:none !important; }

/* 14. Cursor fallback: if the design's custom cursor is not in the markup, the
   real pointer must stay visible. */
html.has-cursor:not(:has(#cursor)){ cursor:auto; }
html.has-cursor:not(:has(#cursor)) a,
html.has-cursor:not(:has(#cursor)) button{ cursor:pointer; }

/* 15. Third-party overlays on kit pages only. The plugins stay active and keep
   working everywhere else; only the staging pages hide the chrome. */
.adly2026 #hubspot-messages-iframe-container,
.adly2026 #hubspot-messages-iframe-container iframe,
.adly2026 iframe[id^="hubspot-messages"],
.adly2026 #trustindex-badge,
.adly2026 .trustindex-badge{ display:none !important; }

/* 16. Drawer scroll-lock (belt and braces — the design stylesheet owns it). */
.adly2026.is-locked,
.adly2026.is-locked body{ overflow:hidden; }

/* 17. Mobile: the theme's responsive breakpoints reintroduce container padding. */
@media (max-width:767px){
  .adly2026 .entry-content,.adly2026 .inner-post,
  .adly2026 .site-main,.adly2026 main{ padding-inline:0 !important; margin-inline:0 !important; }
  .adly2026 .wrap{ padding-inline:var(--pad) !important; max-width:100% !important; }
}

/* 18. Reduced motion. */
@media (prefers-reduced-motion: reduce){
  .adly2026 *,.adly2026 *::before,.adly2026 *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}


/* 19. Text metrics.
   The theme sets its own body line-height (and Bootstrap sets another on
   p/li), so every paragraph in the design rendered ~18% taller than drawn —
   the source of the remaining height drift between the preview and WordPress.
   Paraphrasing the design's own base values at kit scope, plus a zero-specificity
   box reset so the host's element margins do not add spacing the design never
   asked for. No blanket margin/padding reset: the design document has none
   either, so adding one changes its spacing. */
/* Only <body> inherits the design's base value. Paragraphs, lists and quotes
   must keep their own line-heights — .rev blockquote sets 1.4, and forcing a
   base value on it made every quote 25% taller than drawn. */
.adly2026{ line-height:1.62; font-weight:350; }
/* The theme sets blockquote{font-weight:600}. The design inherits 350 from
   <body>; the heavier weight re-wraps every quote and is the last measurable
   difference between the preview and WordPress. */
.adly2026 blockquote,.adly2026 .rev blockquote{ font-weight:inherit; }
/* The theme also pads every blockquote (50px/30px). The design's quotes have no
   padding of their own, and inside a 560px column that padding costs a third of
   the measure — five lines of quote became seven. The design's card and section
   supply their own spacing, so the quote itself resets to none. */
.adly2026 blockquote{
  padding:0; margin:0; border:0; background:none;
  font-style:inherit; quotes:none;
}
/* The theme gives headings and paragraphs its own vertical rhythm (h3 alone adds
   20px below). The design sets spacing explicitly per component, so the host's
   element margins are removed here. Zero-specificity :where() keeps every design
   rule above this, so components that do want a margin still get theirs. */
.adly2026 :where(h1,h2,h3,h4,h5,h6){ margin:0; }


/* 20. Hero-study switcher placement.
   The switcher is a staging aid that sits above the hero. The design's header is
   fixed, and these study pages have no offset, so the strip rendered underneath
   the wordmark. Give the strip the same top offset the design gives its heroes
   and keep it in the header's stacking context below. */
.adly2026 .hero-switch{
  position:relative;
  z-index:30;
  padding-top:clamp(5.4rem,9vh,6.4rem) !important;
}
.adly2026 .hero-switch__inner{ padding-block:.5rem; }

/* 21. Staging chrome hidden for the launch build.
   The hero switcher and the hero index are internal review aids. With the
   design locked they are removed from the page entirely, so the output matches
   the static preview exactly. Re-enable with:
       add_filter( 'adly_2026_show_hero_switcher', '__return_true' );
   which drops the .adly-no-switcher body class and restores both. */
body.adly-no-switcher .hero-switch,
body.adly-no-switcher .hero-index{
  display:none !important;
}

/* 22. Third-party overlays that do not belong to the design.
   TrustedSite injects a fixed badge into the bottom-right corner of every page
   on the site. On the 2026 layout it lands on top of the FAQ list and the CTA,
   because it knows nothing about this page's spacing. It is scoped away here
   only — every page still on the current design keeps its badge, so nothing is
   lost for the rest of the site. Same treatment the chat bubble gets.
   Whether the badge should survive launch is a decision, not a default: delete
   this block and it is back. */
.adly2026 .ti-sticky-button,
.adly2026 .ti-modal-container{
  display:none !important;
}
