/*
Theme Name: Y4T MarTech
Theme URI: https://y4t.top/
Author: Y4T MarTech
Description: Editor-first Y4T block theme and WooCommerce design. Migration staging only.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: y4t
*/
:root{--ink:#0d1b2a;--navy:#07111f;--accent:#2ee6a6;--accent-2:#71a7ff}
body{overflow-x:hidden}
.wp-site-blocks>.wp-block-group{margin-block-start:0}
.wp-block-post-content{margin-block-start:0!important}
.wp-block-post-content>.wp-block-group,.wp-block-post-content>section{max-width:none}
.wp-block-post-content .wp-block-group.is-layout-constrained>:where(:not(.alignwide):not(.alignfull)){max-width:unset}
.wp-block-post-content>.wp-block-group{padding:0}
.wp-block-post-content .wp-block-heading{margin-block:0}
.wp-block-post-content p{margin-block:0}
.y4t-header{position:sticky;top:0;z-index:100;background:rgba(7,17,31,.96);color:white;border-bottom:1px solid rgba(255,255,255,.10)}
.y4t-header .wp-block-navigation a{color:white;text-decoration:none}
.y4t-header .wp-block-navigation a:hover{color:var(--accent)}
.y4t-header>.wp-block-group{min-height:82px}
.y4t-header .wp-block-site-title a{color:white;text-decoration:none}
.y4t-footer{background:var(--navy);color:white;padding:32px 20px}
.y4t-footer a{color:var(--accent)}
.woocommerce{max-width:1180px;margin:64px auto;padding:0 20px}
.woocommerce .button,.woocommerce button.button,.woocommerce a.button{background:var(--accent);color:var(--navy);border-radius:999px}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price{color:#087e63}
.y4t-content-wrap{max-width:1180px;margin:auto;padding:64px 20px}
.wp-block-post-title{overflow-wrap:anywhere}
html:has(body.admin-bar) .y4t-header{top:32px}
@media(max-width:782px){html:has(body.admin-bar) .y4t-header{top:46px}}

/* Mobile-first visual refinement — compact hierarchy, spacing, and cards. */
:root {
  --y4t-section-space: 56px;
}

.wp-block-post-content .wp-block-group.section,
.wp-block-post-content .contact-section {
  padding-block: var(--y4t-section-space);
}

.wp-block-post-content .hero-grid {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-block: 44px 36px;
}

.wp-block-post-content .hero-copy {
  padding-top: 0;
}

.wp-block-post-content .hero .hero-copy h1 {
  max-width: 22ch;
  font-size: clamp(2.25rem, 9vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.wp-block-post-content .page-hero h1,
.page-main .page-hero h1 {
  font-size: clamp(2.15rem, 8vw, 3.2rem);
  line-height: 1.08;
  text-wrap: balance;
}

.wp-block-post-content .section-heading h2,
.wp-block-post-content .about-copy h2,
.wp-block-post-content .faq-intro h2,
.wp-block-post-content .contact-copy h2 {
  font-size: clamp(1.8rem, 7vw, 2.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

.wp-block-post-content .hero-lead,
.wp-block-post-content .contact-copy > p {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.65;
}

.wp-block-post-content .hero-actions {
  gap: 10px;
  margin-top: 24px;
}

.wp-block-post-content .hero-proof {
  margin-top: 30px;
}

.wp-block-post-content .hero-visual {
  width: 100%;
  min-height: 300px;
  margin: 0 auto;
  transform: none;
}

.wp-block-post-content .hero-visual::before {
  width: min(78vw, 300px);
  height: min(78vw, 300px);
}

.wp-block-post-content .hero-visual::after {
  width: min(96vw, 370px);
  height: min(96vw, 370px);
}

.wp-block-post-content .section-heading,
.wp-block-post-content .section-heading.narrow {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 32px;
}

.wp-block-post-content .section-heading > p {
  max-width: 62ch;
  font-size: .98rem;
  line-height: 1.65;
}

.wp-block-post-content .services-grid,
.wp-block-post-content .principles-grid,
.wp-block-post-content .outcomes-grid,
.wp-block-post-content .tech-layout,
.wp-block-post-content .about-grid,
.wp-block-post-content .faq-grid,
.wp-block-post-content .contact-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.wp-block-post-content .service-card {
  min-height: 0;
  padding: 24px 20px;
  border-radius: 18px;
}

.wp-block-post-content .service-number {
  margin-bottom: 24px;
}

.wp-block-post-content .service-card h3,
.wp-block-post-content .work-content h3 {
  font-size: 1.35rem;
  line-height: 1.18;
  text-wrap: balance;
}

.wp-block-post-content .service-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
}

.wp-block-post-content .process-grid {
  grid-template-columns: minmax(0, 1fr);
}

.wp-block-post-content .process-step,
.wp-block-post-content .process-step:not(:first-child) {
  min-height: 0;
  padding: 20px 0;
  border-right: 0;
  border-top: 1px solid #d7e0e8;
}

.wp-block-post-content .process-step > span {
  margin-bottom: 20px;
}

.wp-block-post-content .tech-panel {
  min-height: 0;
  padding: 20px;
}

.wp-block-post-content .tech-cloud {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wp-block-post-content .tech-cloud span {
  min-height: 68px;
  padding: 12px;
  font-size: .8rem;
}

.wp-block-post-content .about-copy {
  position: static;
}

.wp-block-post-content .principles-grid article,
.wp-block-post-content .outcome {
  min-height: 0;
  padding: 22px;
}

.wp-block-post-content .principles-grid article > span,
.wp-block-post-content .outcome > span {
  margin-bottom: 24px;
}

.wp-block-post-content .faq-grid,
.wp-block-post-content .contact-grid {
  gap: 24px;
}

.wp-block-post-content .contact-points {
  margin-top: 28px;
}

.wp-block-post-content .contact-form {
  padding: 22px 18px;
  border-radius: 20px;
}

.wp-block-post-content .footer-top {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 28px;
}

.wp-block-post-content .footer-links {
  justify-self: stretch;
}

.wp-block-post-content .footer-bottom {
  flex-direction: column;
  gap: 8px;
}

.wp-block-post-content summary {
  padding: 18px 42px 18px 0;
  font-size: .98rem;
  line-height: 1.45;
}

.wp-block-post-content summary::after {
  top: 13px;
}

@media (min-width: 600px) {
  :root { --y4t-section-space: 68px; }

  .wp-block-post-content .hero-grid {
    padding-block: 56px 48px;
  }

  .wp-block-post-content .hero .hero-copy h1 {
    font-size: clamp(2.7rem, 7vw, 3.65rem);
  }

  .wp-block-post-content .page-hero h1,
  .page-main .page-hero h1 {
    font-size: clamp(2.6rem, 6vw, 3.65rem);
  }

  .wp-block-post-content .section-heading h2,
  .wp-block-post-content .about-copy h2,
  .wp-block-post-content .faq-intro h2,
  .wp-block-post-content .contact-copy h2 {
    font-size: clamp(2rem, 4.8vw, 2.9rem);
  }

  .wp-block-post-content .hero-visual {
    min-height: 360px;
  }

  .wp-block-post-content .principles-grid,
  .wp-block-post-content .outcomes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-block-post-content .tech-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wp-block-post-content .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  :root { --y4t-section-space: 84px; }

  .wp-block-post-content .hero-grid {
    padding-block: 68px 64px;
  }

  .wp-block-post-content .section-heading,
  .wp-block-post-content .section-heading.narrow {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 44px;
  }

  .wp-block-post-content .section-heading h2,
  .wp-block-post-content .about-copy h2,
  .wp-block-post-content .faq-intro h2,
  .wp-block-post-content .contact-copy h2 {
    font-size: clamp(2.25rem, 4vw, 3.35rem);
  }

  .wp-block-post-content .services-grid,
  .wp-block-post-content .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .wp-block-post-content .service-card {
    padding: 30px;
  }

  .wp-block-post-content .service-card h3 {
    font-size: 1.5rem;
  }

  .wp-block-post-content .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-block-post-content .process-step,
  .wp-block-post-content .process-step:not(:first-child) {
    padding: 24px;
    border-right: 1px solid #d7e0e8;
  }

  .wp-block-post-content .tech-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .wp-block-post-content .about-grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
  }

  .wp-block-post-content .about-copy {
    position: sticky;
    top: calc(var(--header-h) + 30px);
  }

  .wp-block-post-content .faq-grid {
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
  }

  .wp-block-post-content .tech-cloud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wp-block-post-content .footer-top {
    grid-template-columns: .65fr 1fr .7fr;
    gap: 32px;
  }

  .wp-block-post-content .footer-links {
    justify-self: end;
  }

  .wp-block-post-content .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  .wp-block-post-content .hero-grid {
    min-height: min(900px, calc(100vh - var(--header-h)));
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    gap: 44px;
    align-items: center;
    padding-block: 60px;
  }

  .wp-block-post-content .hero .hero-copy h1 {
    max-width: 700px;
    font-size: clamp(3.15rem, 4.2vw, 4.25rem);
    line-height: 1.04;
  }

  .wp-block-post-content .page-hero h1,
  .page-main .page-hero h1 {
    font-size: clamp(3rem, 4vw, 3.75rem);
  }

  .wp-block-post-content .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-block-post-content .process-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .wp-block-post-content .process-step {
    min-height: 220px;
    padding: 24px 20px 8px 0;
  }

  .wp-block-post-content .process-step:not(:first-child) {
    padding-left: 20px;
  }

  .wp-block-post-content .process-step:last-child {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-post-content .service-card,
  .wp-block-post-content .work-card,
  .wp-block-post-content .button {
    transition: none;
  }
}

/* Prevent WordPress flow spacing from offsetting the hero proof columns. */
.wp-block-post-content .hero-proof > .wp-block-group {
  margin-block-start: 0;
}

/* Give the desktop hero illustration room so its orbit cards do not crowd the core. */
@media (min-width: 1100px) {
  .wp-block-post-content .hero-grid {
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    gap: clamp(32px, 3vw, 48px);
  }

  .wp-block-post-content .hero .hero-copy h1 {
    max-width: 700px;
    font-size: clamp(3rem, 3.8vw, 4rem);
    line-height: 1.05;
  }

  .wp-block-post-content .hero-visual {
    min-height: 560px;
  }

  .wp-block-post-content .hero-visual::before {
    width: min(54vw, 360px);
    height: min(54vw, 360px);
  }

  .wp-block-post-content .hero-visual::after {
    width: min(68vw, 460px);
    height: min(68vw, 460px);
  }

  .wp-block-post-content .system-card-main {
    width: min(310px, 58%);
    padding: 24px;
  }

  .wp-block-post-content .orbit-card {
    min-width: 112px;
    padding: 12px 13px;
  }

  .wp-block-post-content .orbit-one { top: 14%; left: 0; }
  .wp-block-post-content .orbit-two { top: 16%; right: 0; }
  .wp-block-post-content .orbit-three { bottom: 16%; right: 0; }
  .wp-block-post-content .orbit-four { bottom: 9%; left: 0; }
  .wp-block-post-content .orbit-five { top: 48%; left: 0; }
}

@media (min-width: 1100px) and (max-width: 1399px) {
  .wp-block-post-content .hero .hero-copy h1 {
    font-size: clamp(2.9rem, 4.2vw, 3.6rem);
  }

  .wp-block-post-content .hero-visual {
    min-height: 520px;
  }

  .wp-block-post-content .hero-visual::before {
    width: min(48vw, 320px);
    height: min(48vw, 320px);
  }

  .wp-block-post-content .hero-visual::after {
    width: min(62vw, 410px);
    height: min(62vw, 410px);
  }

  .wp-block-post-content .system-card-main {
    width: min(290px, 56%);
    padding: 22px;
  }

  .wp-block-post-content .orbit-card {
    min-width: 100px;
    padding: 10px 11px;
  }
}

/* Render Gutenberg-wrapped bars inside the hero chart. */
.wp-block-post-content .mini-chart {
  align-items: stretch;
}

.wp-block-post-content .mini-chart > .wp-block-paragraph {
  display: flex;
  flex: 1 1 0;
  align-items: flex-end;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.wp-block-post-content .mini-chart > .wp-block-paragraph > span {
  display: block;
  width: 100%;
}
/* Y4T navigation refinement: full-bleed header, clear hierarchy, responsive spacing. */
.y4t-header {
  box-sizing: border-box;
  width: 100vw !important;
  max-width: none !important;
  margin-inline: calc(50% - 50vw) !important;
  padding-inline: 0 !important;
  background: #07111f;
}

.y4t-header > .wp-block-group.alignwide {
  box-sizing: border-box;
  display: flex;
  width: min(100%, 1480px) !important;
  max-width: 1480px !important;
  min-height: 76px !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  gap: 32px;
  margin: 0 auto !important;
  padding-inline: clamp(22px, 4vw, 48px);
}

.y4t-header .wp-block-site-title {
  flex: 0 0 auto;
  margin: 0;
  line-height: 1;
}

.y4t-header .wp-block-site-title a {
  color: #f5f8fb;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.y4t-header .wp-block-navigation {
  flex: 0 0 auto;
  margin-left: auto;
}

.y4t-header .wp-block-navigation__container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(12px, 1.45vw, 22px);
}

.y4t-header .wp-block-navigation-item {
  margin: 0 !important;
}

.y4t-header .wp-block-navigation-item > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 0;
  border-radius: 999px;
  color: #d5dfea;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.y4t-header .wp-block-navigation-item > a:hover {
  color: #fff;
}

.y4t-header .wp-block-navigation-item > a:focus-visible {
  outline: 2px solid #2ee6a6;
  outline-offset: 4px;
}

.y4t-header .wp-block-navigation__container > .wp-block-navigation-item:nth-last-child(2) > a {
  min-height: 40px;
  padding-inline: 16px;
  border: 1px solid rgba(46, 230, 166, .48);
  background: rgba(46, 230, 166, .10);
  color: #93ffd9;
  font-weight: 700;
}

.y4t-header .wp-block-navigation__container > .wp-block-navigation-item:nth-last-child(2) > a:hover {
  border-color: #2ee6a6;
  background: #2ee6a6;
  color: #07111f;
}

.y4t-header .wp-block-navigation__container > .wp-block-navigation-item:last-child > a {
  min-height: 36px;
  padding-inline: 13px;
  border: 1px solid rgba(255, 255, 255, .17);
  color: #aebdcd;
  font-size: .82rem;
  font-weight: 700;
}

.y4t-header .wp-block-navigation__container > .wp-block-navigation-item:last-child > a:hover {
  border-color: rgba(255, 255, 255, .36);
  color: #fff;
}

@media (max-width: 781px) {
  .y4t-header > .wp-block-group.alignwide {
    min-height: 68px !important;
    gap: 16px;
    padding-inline: 20px;
  }

  .y4t-header .wp-block-navigation__responsive-container-open,
  .y4t-header .wp-block-navigation__responsive-container-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: #f5f8fb;
  }

  .y4t-header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 18px 24px 30px;
    background: #07111f;
    color: #f5f8fb;
  }

  .y4t-header .wp-block-navigation__responsive-container-content {
    padding-top: 30px;
  }

  .y4t-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    width: min(100%, 560px);
    align-items: stretch;
    gap: 0;
    margin-inline: auto;
  }

  .y4t-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
  }

  .y4t-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item > a {
    display: flex;
    min-height: 56px;
    justify-content: flex-start;
    padding: 14px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #e3eaf1;
    font-size: 1rem;
  }

  .y4t-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:nth-last-child(2) {
    margin-top: 16px !important;
    border: 0;
  }

  .y4t-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:nth-last-child(2) > a {
    min-height: 50px;
    justify-content: center;
    padding-inline: 18px;
    border: 1px solid rgba(46, 230, 166, .48);
    border-radius: 999px;
    background: rgba(46, 230, 166, .10);
    color: #93ffd9;
  }

  .y4t-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:last-child {
    margin-top: 10px !important;
    border: 0;
  }

  .y4t-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:last-child > a {
    width: fit-content;
    min-height: 40px;
    justify-content: center;
    margin-inline: auto;
    padding-inline: 14px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    color: #aebdcd;
    font-size: .84rem;
  }
}

@media (max-width: 380px) {
  .y4t-header > .wp-block-group.alignwide {
    padding-inline: 16px;
  }

  .y4t-header .wp-block-navigation__responsive-container.is-menu-open {
    padding-inline: 18px;
  }
}

/* Remove WordPress root spacing above the navigation on WooCommerce pages. */
body.woocommerce-page {
  margin-block-start: 0 !important;
}
