/*
 * FollowHat site identity layer for Blocksy.
 *
 * This file intentionally excludes the service-store and checkout components.
 * Every rule is scoped to an explicit FollowHat body class so WordPress admin
 * and unrelated front-end pages remain untouched.
 */

:where(body.followhat-site, body.followhat-experience-page) {
  --fh-site-purple: #6d28d9;
  --fh-site-purple-dark: #4c1d95;
  --fh-site-purple-soft: #f5f3ff;
  --fh-site-pink: #be185d;
  --fh-site-pink-soft: #fdf2f8;
  --fh-site-orange: #c2410c;
  --fh-site-orange-soft: #fff7ed;
  --fh-site-ink: #17112e;
  --fh-site-muted: #625d73;
  --fh-site-line: #e8e3f1;
  --fh-site-surface: #ffffff;
  --fh-site-surface-soft: #faf9fd;
  --fh-site-focus: #f59e0b;
  --fh-site-gutter: clamp(16px, 4vw, 32px);
  --fh-site-radius-sm: 10px;
  --fh-site-radius-md: 16px;
  --fh-site-radius-lg: 24px;
  --fh-site-shadow-sm: 0 8px 24px rgba(45, 25, 85, 0.07);
  --fh-site-shadow-md: 0 18px 48px rgba(45, 25, 85, 0.12);
  background: var(--fh-site-surface);
  color: var(--fh-site-ink);
  text-rendering: optimizeLegibility;
}

:where(body.followhat-site, body.followhat-experience-page) ::selection {
  background: #ddd6fe;
  color: #2e1065;
}

:where(body.followhat-site, body.followhat-experience-page)
  :where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--fh-site-focus);
  outline-offset: 3px;
}

:where(body.followhat-site, body.followhat-experience-page)
  :where(.entry-content, .page-description)
  :where(p, li)
  a:not(.wp-element-button):not(.wp-block-button__link) {
  color: var(--fh-site-purple-dark);
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

:where(body.followhat-site, body.followhat-experience-page)
  :where(.entry-content, .page-description)
  :where(p, li)
  a:not(.wp-element-button):not(.wp-block-button__link):hover {
  color: var(--fh-site-pink);
  text-decoration-color: currentColor;
}

:where(body.followhat-site, body.followhat-experience-page) .site-main {
  min-block-size: 55vh;
}

body.followhat-site .site-main {
  padding-block: clamp(28px, 6vw, 72px);
}

body.followhat-experience-page .site-main {
  padding-block: 0;
}

:where(body.followhat-site, body.followhat-experience-page)
  :where(.entry-content, .page-description)
  > :where(h2, h3, h4) {
  color: var(--fh-site-ink);
  scroll-margin-top: 112px;
}

:where(body.followhat-site, body.followhat-experience-page)
  :where(.wp-element-button, .wp-block-button__link, .ct-button) {
  align-items: center;
  background: linear-gradient(135deg, var(--fh-site-purple), var(--fh-site-pink) 66%, var(--fh-site-orange));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.2);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-block-size: 48px;
  padding: 11px 20px;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

:where(body.followhat-site, body.followhat-experience-page)
  :where(.wp-element-button, .wp-block-button__link, .ct-button):hover {
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.28);
  color: #fff;
  transform: translateY(-2px);
}

/* Blocksy header */

:where(body.followhat-site, body.followhat-experience-page) #header.ct-header {
  background: rgba(255, 255, 255, 0.96);
  border-block-end: 1px solid rgba(232, 227, 241, 0.92);
  box-shadow: 0 8px 28px rgba(45, 25, 85, 0.06);
  color: var(--fh-site-ink);
  isolation: isolate;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  [data-row] {
  background: transparent;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  [data-row="middle"]
  > div {
  min-block-size: 68px;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  :where(.ct-container, .ct-container-fluid) {
  padding-inline: var(--fh-site-gutter);
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .site-branding {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-inline-size: 0;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .site-branding
  :where(.site-logo-container, .site-logo-container a) {
  align-items: center;
  display: inline-flex;
  min-inline-size: 0;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .site-branding
  img {
  block-size: auto;
  inline-size: auto;
  max-block-size: 42px;
  max-inline-size: min(190px, 46vw);
  object-fit: contain;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .site-branding
  :where(.site-title, .site-title a) {
  color: var(--fh-site-ink);
  font-weight: 900;
  letter-spacing: -0.02em;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .header-menu-1
  :where(.menu, ul) {
  align-items: center;
  gap: 4px;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .header-menu-1
  .menu
  > li
  > a {
  border-radius: 10px;
  color: var(--fh-site-ink);
  font-weight: 750;
  min-block-size: 44px;
  padding-inline: 13px;
  transition: background-color 160ms ease, color 160ms ease;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .header-menu-1
  .menu
  > li
  > a:hover,
:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .header-menu-1
  .menu
  > li
  > a:focus-visible {
  background: var(--fh-site-purple-soft);
  color: var(--fh-site-purple-dark);
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .header-menu-1
  .menu
  > :where(.current-menu-item, .current-menu-ancestor)
  > a {
  background: linear-gradient(135deg, var(--fh-site-purple-soft), var(--fh-site-pink-soft));
  color: var(--fh-site-purple-dark);
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .header-menu-1
  .sub-menu {
  background: #fff;
  border: 1px solid var(--fh-site-line);
  border-radius: var(--fh-site-radius-md);
  box-shadow: var(--fh-site-shadow-md);
  padding: 8px;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .header-menu-1
  .sub-menu
  a {
  border-radius: 9px;
  color: var(--fh-site-ink);
  min-block-size: 42px;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .header-menu-1
  .sub-menu
  a:hover,
:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .header-menu-1
  .sub-menu
  a:focus-visible {
  background: var(--fh-site-purple-soft);
  color: var(--fh-site-purple-dark);
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  :where(.ct-header-trigger, .ct-menu-link) {
  color: var(--fh-site-ink);
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .ct-header-trigger {
  align-items: center;
  background: var(--fh-site-purple-soft);
  border: 1px solid #ddd6fe;
  border-radius: 11px;
  display: inline-flex;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 44px;
}

:where(body.followhat-site, body.followhat-experience-page)
  #header.ct-header
  .ct-header-trigger:hover {
  background: #ede9fe;
  color: var(--fh-site-purple-dark);
}

:where(body.followhat-site, body.followhat-experience-page)
  :where(.mobile-menu, [data-id="mobile-menu"])
  a {
  border-radius: 10px;
  color: var(--fh-site-ink);
  font-weight: 750;
  min-block-size: 46px;
}

:where(body.followhat-site, body.followhat-experience-page)
  :where(.mobile-menu, [data-id="mobile-menu"])
  :where(.current-menu-item, .current-menu-ancestor)
  > a {
  background: var(--fh-site-purple-soft);
  color: var(--fh-site-purple-dark);
}

/* Blocksy footer */

:where(body.followhat-site, body.followhat-experience-page) #footer.ct-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(190, 24, 93, 0.25), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(194, 65, 12, 0.2), transparent 30%),
    linear-gradient(145deg, #160f2f, #27124d 58%, #3d174f);
  border-block-start: 1px solid rgba(255, 255, 255, 0.12);
  color: #eeeaf7;
  margin-block-start: clamp(48px, 8vw, 96px);
  position: relative;
}

body.followhat-experience-page #footer.ct-footer {
  margin-block-start: 0;
}

:where(body.followhat-site, body.followhat-experience-page) #footer.ct-footer::before {
  background: linear-gradient(90deg, var(--fh-site-purple), var(--fh-site-pink), var(--fh-site-orange));
  content: "";
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 4px;
  position: absolute;
}

:where(body.followhat-site, body.followhat-experience-page)
  #footer.ct-footer
  [data-row] {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

:where(body.followhat-site, body.followhat-experience-page)
  #footer.ct-footer
  :where(.ct-container, .ct-container-fluid) {
  gap: clamp(24px, 5vw, 56px);
  padding-inline: var(--fh-site-gutter);
}

:where(body.followhat-site, body.followhat-experience-page)
  #footer.ct-footer
  :where(.widget-title, h2, h3, h4) {
  color: #fff;
  font-weight: 850;
  letter-spacing: -0.01em;
}

:where(body.followhat-site, body.followhat-experience-page)
  #footer.ct-footer
  :where(p, li, .ct-footer-copyright) {
  color: #d8d2e5;
  line-height: 1.8;
}

:where(body.followhat-site, body.followhat-experience-page)
  #footer.ct-footer
  a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

:where(body.followhat-site, body.followhat-experience-page)
  #footer.ct-footer
  a:hover,
:where(body.followhat-site, body.followhat-experience-page)
  #footer.ct-footer
  a:focus-visible {
  color: #fed7aa;
  text-decoration-color: currentColor;
}

:where(body.followhat-site, body.followhat-experience-page)
  #footer.ct-footer
  :where(.menu, .widget ul) {
  display: grid;
  gap: 8px;
}

:where(body.followhat-site, body.followhat-experience-page)
  #footer.ct-footer
  .ct-footer-copyright {
  font-size: 0.92rem;
}

@media (min-width: 48rem) {
  :where(body.followhat-site, body.followhat-experience-page)
    #header.ct-header
    [data-row="middle"]
    > div {
    min-block-size: 76px;
  }

  :where(body.followhat-site, body.followhat-experience-page)
    #header.ct-header
    .site-branding
    img {
    max-block-size: 50px;
    max-inline-size: 230px;
  }
}

@media (min-width: 64rem) {
  :where(body.followhat-site, body.followhat-experience-page)
    #header.ct-header
    .header-menu-1
    .menu
    > li
    > a {
    padding-inline: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(body.followhat-site, body.followhat-experience-page) *,
  :where(body.followhat-site, body.followhat-experience-page) *::before,
  :where(body.followhat-site, body.followhat-experience-page) *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

@media (forced-colors: active) {
  :where(body.followhat-site, body.followhat-experience-page)
    :where(.wp-element-button, .wp-block-button__link, .ct-button, .ct-header-trigger) {
    border: 1px solid ButtonText;
  }

  :where(body.followhat-site, body.followhat-experience-page) #footer.ct-footer::before {
    background: CanvasText;
  }
}
