/*
Theme Name: On Top 2025 Child
Theme URI: https://ontopdigitalmarketing.com
Description: Child theme of Twenty Twenty-Five carrying the On Top Digital Marketing brand system — Space Grotesk / Space Mono, brand palette, and the approved homepage section styles.
Author: On Top Digital Marketing
Template: twentytwentyfive
Version: 1.0.9
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ontop-2025-child
*/

/* ============================================================
   TOKENS
   theme.json is the source of truth. These aliases exist so the
   section styles below stay readable, with hard-coded fallbacks
   in case a preset is ever renamed.
   ============================================================ */
:root {
  --ot-white:      var(--wp--preset--color--white, #FFFFFF);
  --ot-ink:        var(--wp--preset--color--ink, #221F20);
  --ot-gray-50:    var(--wp--preset--color--gray-50, #FAFAFA);
  --ot-gray-100:   var(--wp--preset--color--gray-100, #EDEDED);
  --ot-gray-500:   var(--wp--preset--color--gray-500, #6E6C6D);
  --ot-gray-700:   var(--wp--preset--color--gray-700, #3A3739);
  --ot-blue:       var(--wp--preset--color--blue, #0C1DF5);
  --ot-blue-dark:  var(--wp--preset--color--blue-dark, #0716C2);
  --ot-blue-soft:  var(--wp--preset--color--blue-soft, #EFFBFF);
  --ot-orange:     var(--wp--preset--color--orange, #FF4D1D);

  --ot-font-display: var(--wp--preset--font-family--display, 'Space Grotesk', sans-serif);
  --ot-font-mono:    var(--wp--preset--font-family--mono, 'Space Mono', monospace);

  --ot-fs-micro: 0.75rem;
  --ot-fs-small: 0.9375rem;

  --ot-section-y: clamp(4.5rem, 9vw, 8rem);
  --ot-transition: 200ms ease;
}

/* ============================================================
   SECTION SHELL
   Every section on the page is a full-width group with one of
   these classes. Vertical rhythm lives here, not in the markup,
   so spacing is a CSS-only change.
   ============================================================ */
.ot-section {
  padding-block: var(--ot-section-y);
}
.ot-section--tight { padding-block: 4rem; }

.ot-bg-offwhite  { background-color: var(--ot-gray-50); }
.ot-bg-accent    { background-color: var(--ot-blue-soft); }
.ot-bg-ink       { background-color: var(--ot-ink); color: var(--ot-white); }
.ot-bg-ink :is(h1,h2,h3,h4) { color: var(--ot-white); }

/* Hairline rules above and below the stats strip */
.ot-rule-y {
  border-top: 1px solid var(--ot-gray-100);
  border-bottom: 1px solid var(--ot-gray-100);
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.ot-measure-narrow { max-width: 14ch; }
.ot-measure-mid    { max-width: 18ch; }
.ot-measure-lead   { max-width: 42ch; }
.ot-measure-prose  { max-width: 820px; margin-inline: auto; }

.ot-lead {
  font-size: var(--wp--preset--font-size--large, 1.25rem);
  color: var(--ot-gray-700);
}

/* Small uppercase mono label — used for stat labels and eyebrows */
.ot-label {
  font-family: var(--ot-font-mono);
  font-size: var(--ot-fs-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ot-gray-500);
}
.ot-label--blue { color: var(--ot-blue); }

/* ============================================================
   BUTTONS
   theme.json handles colour and shape. This adds the outline
   variant and the hover lift.
   ============================================================ */
.wp-block-button__link { transition: all var(--ot-transition); }
.wp-block-button__link:hover { transform: translateY(-1px); }

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1.5px solid var(--ot-blue);
  background: transparent;
  color: var(--ot-blue);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--ot-blue);
  color: var(--ot-white);
}
.ot-bg-ink .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: var(--ot-white);
  color: var(--ot-white);
}
.ot-bg-ink .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--ot-white);
  color: var(--ot-ink);
}

/* Text link with a trailing arrow */
.ot-link-cta a,
a.ot-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ot-font-mono);
  font-size: var(--ot-fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ot-orange);
}
.ot-link-cta a::after,
a.ot-link-cta::after {
  content: '\2192';
  transition: transform var(--ot-transition);
}
.ot-link-cta a:hover::after,
a.ot-link-cta:hover::after { transform: translateX(4px); }

/* ============================================================
   STATS STRIP
   ============================================================ */
.ot-stat__num {
  font-family: var(--ot-font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ot-ink);
  margin-bottom: 0.25rem;
}

/* ============================================================
   PROBLEM CARDS
   ============================================================ */
.ot-problem-card {
  padding: 3rem;
  background: var(--ot-blue-soft);
  border-radius: 8px;
}
.ot-problem-card p:not(.ot-label) {
  font-size: var(--wp--preset--font-size--large, 1.25rem);
  line-height: 1.55;
}

/* ============================================================
   SERVICE / WHY ITEMS — rule above, numbered label, body copy
   ============================================================ */
.ot-ruled-item {
  padding-top: 2rem;
  border-top: 2px solid var(--ot-ink);
}
.ot-ruled-item--hairline { border-top-width: 1px; }
.ot-ruled-item h3 { margin-block: 0.75rem 1rem; }
.ot-ruled-item p:not(.ot-label) {
  color: var(--ot-gray-700);
  font-size: var(--ot-fs-small);
}

/* ============================================================
   FOUNDER
   ============================================================ */
.ot-founder-photo img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
}
.ot-founder-body p { color: var(--ot-gray-700); }
.ot-founder-emphasis {
  color: var(--ot-ink) !important;
  font-weight: 700;
  font-size: var(--wp--preset--font-size--large, 1.25rem);
}
.ot-founder-sig {
  font-family: var(--ot-font-mono);
  font-size: var(--ot-fs-small);
  color: var(--ot-ink) !important;
}
.ot-founder-sig em {
  display: block;
  font-style: normal;
  color: var(--ot-gray-500);
  font-size: var(--ot-fs-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ============================================================
   LONG-FORM PROSE BLOCK
   ============================================================ */
.ot-prose p {
  font-size: var(--wp--preset--font-size--large, 1.25rem);
  color: var(--ot-gray-700);
  line-height: 1.7;
}
.ot-prose p strong { color: var(--ot-ink); font-weight: 700; }

/* ============================================================
   VIDEO
   ============================================================ */
.ot-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ot-video-frame p {
  font-family: var(--ot-font-mono);
  font-size: var(--ot-fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
/* Once a real embed replaces the placeholder, keep the rounded frame */
.ot-video-frame .wp-block-embed__wrapper iframe { border-radius: 6px; }

.ot-video-list li {
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--ot-fs-small);
  color: rgba(255, 255, 255, 0.82);
  list-style: none;
}
.ot-video-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.ot-video-list { padding-left: 0; margin: 0; }

/* ============================================================
   REVIEWS
   ============================================================ */
.ot-review {
  padding: 2rem;
  background: var(--ot-white);
  border: 1px solid var(--ot-gray-100);
  border-radius: 6px;
  height: 100%;
}
.ot-review::before {
  content: '\201C';
  display: block;
  font-family: var(--ot-font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ot-blue);
  line-height: 0.5;
  margin-bottom: 1.5rem;
}
.ot-review p {
  font-size: var(--ot-fs-small);
  line-height: 1.65;
  color: var(--ot-ink);
}

/* ============================================================
   PROCESS
   ============================================================ */
.ot-step__num {
  font-family: var(--ot-font-display);
  font-weight: 500;
  font-size: 4rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ot-blue);
  margin-bottom: 1.5rem;
}
.ot-step h3 { margin-bottom: 1rem; }
.ot-step p:not(.ot-step__num) {
  color: var(--ot-gray-700);
  font-size: var(--ot-fs-small);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.ot-final-cta { text-align: center; }
.ot-final-cta h2 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  margin-bottom: 1.5rem;
}
.ot-final-cta p {
  font-size: var(--wp--preset--font-size--large, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 36ch;
  margin-inline: auto;
}

/* ============================================================
   HEADER — sticky, hairline bottom rule
   Set the logo and menu in Appearance > Editor > Patterns > Header.
   ============================================================ */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ot-gray-100);
}
.wp-block-navigation .wp-block-navigation-item__content {
  font-family: var(--ot-font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ot-ink);
}
.wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--ot-blue); }
.wp-block-site-logo img { height: 32px; width: auto; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   OT CONSOLIDATED OVERRIDES (moved from Additional CSS)
   ========================================================= */
.wp-block-site-logo img { height: 40px !important; width: auto !important; }

/* OT-FIX-V1 */
.wp-site-blocks :is(.ot-measure-narrow,.ot-measure-mid,.ot-measure-lead,.ot-measure-prose){margin-inline:auto;}
.wp-site-blocks .ot-measure-narrow{max-width:17ch;}
.wp-site-blocks .ot-measure-mid{max-width:22ch;}
.wp-site-blocks .ot-measure-lead{max-width:46ch;}
body .wp-block-button.is-style-outline .wp-block-button__link{color:#221F20;border:2px solid #0C1DF5;background-color:transparent;}
body .wp-block-button.is-style-outline .wp-block-button__link:hover{background-color:#0C1DF5;color:#ffffff;border-color:#0C1DF5;}
body .ot-bg-ink .wp-block-button.is-style-outline .wp-block-button__link{color:#ffffff;}
/* OT-HERO */
body .ot-section:first-of-type{text-align:center;}
body .ot-section:first-of-type .wp-block-buttons{justify-content:center;}
/* OT-HEADALIGN */
body .ot-section > .wp-block-heading{text-align:center;}
/* OT-GRID */
body .is-layout-grid:has(> .ot-problem-card){grid-template-columns:repeat(2,minmax(0,1fr));}
/* OT-V2 */
body .ot-hero-title{max-width:none;margin-inline:auto;text-align:center;font-size:clamp(2.5rem,6.8vw,6.25rem);line-height:1.0;letter-spacing:-0.03em;}
body .ot-hero-title .ot-hero-sm{font-family:"Space Mono",ui-monospace,monospace;font-size:clamp(0.65rem,0.95vw,0.95rem);letter-spacing:0.2em;text-transform:uppercase;vertical-align:middle;margin:0 0.55em;position:relative;top:-0.15em;}
body .ot-section > .wp-block-buttons{justify-content:center;}
body .ot-section{padding-block-start:clamp(3rem,6vw,5.5rem);padding-block-end:clamp(3rem,6vw,5.5rem);}
body .ot-section--tight{padding-block-start:clamp(2rem,3.5vw,3rem);padding-block-end:clamp(2rem,3.5vw,3rem);}
/* OT-GRID2 */
body .is-layout-grid:has(> .ot-stat){grid-template-columns:repeat(4,minmax(0,1fr));}
body .is-layout-grid:has(> .ot-ruled-item){grid-template-columns:repeat(3,minmax(0,1fr));}
body .is-layout-grid:has(> .ot-step){grid-template-columns:repeat(3,minmax(0,1fr));}
body .is-layout-grid:has(> .ot-review){grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:781px){body .is-layout-grid:has(> .ot-ruled-item),body .is-layout-grid:has(> .ot-step),body .is-layout-grid:has(> .ot-review),body .is-layout-grid:has(> .ot-problem-card){grid-template-columns:minmax(0,1fr);}body .is-layout-grid:has(> .ot-stat){grid-template-columns:repeat(2,minmax(0,1fr));}}
/* OT-FOOTER */
body .ot-footer{background-color:#221F20;color:#FFFFFF;padding-top:clamp(3rem,5vw,4.5rem);padding-bottom:1.75rem;}
body .ot-footer .ot-footer-top{margin-bottom:clamp(2.5rem,4vw,3.5rem);}
body .ot-footer .ot-footer-bottom{align-items:center;}
body .ot-footer .ot-fsub{font-size:clamp(1.75rem,2.6vw,2.25rem);letter-spacing:-0.02em;margin:0 0 1.25rem;color:#FFFFFF;}
body .ot-footer .ot-fhead{font-size:0.95rem;text-transform:uppercase;letter-spacing:0.06em;font-weight:700;margin:0 0 1rem;color:#FFFFFF;}
body .ot-footer .ot-flink{margin:0 0 0.6rem;font-size:0.8rem;letter-spacing:0.06em;text-transform:uppercase;}
body .ot-footer .ot-flink a{color:#D8D6D6;text-decoration:none;}
body .ot-footer .ot-flink a:hover{color:#FFFFFF;}
body .ot-subscribe{display:flex;align-items:center;border:1px solid #6E6C6D;max-width:360px;}
body .ot-subscribe__input{flex:1;background:transparent;border:0;color:#FFFFFF;font-family:"Space Mono",ui-monospace,monospace;font-size:0.75rem;letter-spacing:0.1em;text-transform:uppercase;padding:0.9rem 1rem;outline:none;}
body .ot-subscribe__input::placeholder{color:#8A8788;}
body .ot-subscribe__go{background:transparent;border:0;color:#D8D6D6;font-size:1.1rem;padding:0.6rem 1rem;cursor:pointer;line-height:1;}
body .ot-subscribe__go:hover{color:#FFFFFF;}
body .ot-footer .ot-fcopy{font-family:"Space Mono",ui-monospace,monospace;font-size:0.7rem;letter-spacing:0.08em;text-transform:uppercase;color:#8A8788;margin:0;}
body .ot-footer .ot-social{gap:0.6rem;}
body .ot-footer .ot-social .wp-social-link{border:1px solid #6E6C6D;border-radius:4px;padding:0.45rem;}
body .ot-footer .ot-social .wp-social-link:hover{border-color:#FFFFFF;}
@media(max-width:781px){body .ot-footer .ot-footer-bottom{gap:1.5rem;}body .ot-footer .ot-social{justify-content:flex-start;}}
/* OT-GAP */
body .wp-site-blocks > main.wp-block-group{margin-top:0 !important;margin-bottom:0 !important;}
/* OT-GAP2 */
body .wp-site-blocks > main > .wp-block-group.alignfull{padding-top:0 !important;padding-bottom:0 !important;}
/* OT-GAP3 */
body .wp-block-post-content > *{margin-block-start:0;}
body .wp-site-blocks > *{margin-block-start:0;}
/* OT-HEADER */
body .wp-site-blocks > header.wp-block-template-part{background-color:#FFFFFF !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;border-bottom:1px solid #EAEAEA;}
body .ot-header{padding-top:0 !important;padding-bottom:0 !important;}
body .ot-header > .wp-block-group{padding-top:0.85rem !important;padding-bottom:0.85rem !important;}
body .ot-header .wp-block-site-logo img{height:34px !important;width:auto !important;}


/* ============================================================
   BLOG (index + single post)
   ============================================================ */
body .wp-site-blocks > main > .wp-block-group.alignfull.ot-blog-wrap { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.ot-blog-title { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; }
.ot-blog-list { list-style: none; padding: 0; margin: 0; }
.ot-blog-list > li { padding: 2rem 0; border-top: 1px solid var(--ot-gray-100); margin: 0; }
.ot-blog-item-title { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin: 0.6rem 0; }
.ot-blog-item-title a { color: var(--ot-ink); text-decoration: none; }
.ot-blog-item-title a:hover { color: var(--ot-blue); }
.ot-blog .wp-block-post-excerpt__excerpt { font-size: 1rem; line-height: 1.7; margin: 0; }
.ot-blog .wp-block-post-excerpt__more-text { margin-top: 0.75rem; }
.ot-blog .wp-block-post-excerpt__more-link { color: var(--ot-blue); font-family: var(--ot-font-mono); font-size: var(--ot-fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ot-blog-date, .ot-post-meta { font-family: var(--ot-font-mono); font-size: 0.8rem; color: var(--ot-gray-500); }
.ot-blog-date { margin-top: 0.75rem; }
.ot-post-cats, .ot-post-cats a { font-family: var(--ot-font-mono); font-size: var(--ot-fs-micro); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ot-blue); text-decoration: none; }
body .wp-site-blocks > main > .wp-block-group.alignfull.ot-post-head { padding-top: 4rem !important; padding-bottom: 1rem !important; }
.ot-post-title { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; margin-top: 0.75rem; }
.ot-post-meta { gap: 0.5em; margin-top: 1rem; }
.ot-post-meta p { margin: 0; }
.ot-post-feature { margin-top: 2rem; }
.ot-post-feature img { border-radius: 6px; }
body .wp-site-blocks > main > .ot-post-body { padding-top: 1rem !important; padding-bottom: 2rem !important; }
.ot-post-body p { margin-top: 0; margin-bottom: 1.1rem; }
.ot-post-body img { max-width: 100%; height: auto; }
.ot-post-body figure { margin: 2rem 0; }
.ot-post-body p, .ot-post-body li { font-size: 1rem; line-height: 1.75; }
.ot-post-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin-top: 2.75rem; }
.ot-post-body h3 { font-size: 1.25rem; margin-top: 2rem; }
.ot-post-body a { display: inline; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; color: var(--ot-blue); text-decoration: underline; }
body .wp-site-blocks > main > .wp-block-group.alignfull.ot-post-back { padding-bottom: 4rem !important; }
.ot-post-back a { color: var(--ot-ink); }
.ot-blog-thumb { margin: 0 0 1.25rem; }
.ot-blog-thumb img { border-radius: 6px; }
body .wp-site-blocks > main > .wp-block-group.alignfull.ot-404-hero,
body .wp-site-blocks > main > .wp-block-group.alignfull.ot-final-cta { padding-top: var(--ot-section-y) !important; padding-bottom: var(--ot-section-y) !important; }

/* ============================================================
   RESPONSIVE FIXES (Nov 2026)
   ============================================================ */
.ot-header .wp-block-button__link { white-space: nowrap; }
.ot-review::before { margin-bottom: 0.75rem; }
.ot-review p:first-of-type { margin-top: 0; }
@media (max-width: 600px) {
  .ot-header > .wp-block-group { gap: 0.75rem; }
  .ot-header > .wp-block-group > .wp-block-group { gap: 0.75rem; }
  .ot-header .wp-block-button__link { font-size: 10px !important; letter-spacing: 0.06em; padding: 0.55rem 0.9rem !important; }
  .ot-hero-title { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0; }
  .ot-hero-title br { display: none; }
  .ot-hero-title .ot-hero-mid { flex: 0 0 100%; text-align: center; margin: 0.9rem 0 0.75rem; line-height: 1; }
  .ot-hero-title .ot-hero-sm { font-size: 0.7rem !important; top: 0 !important; margin: 0 0.3em !important; }
  .ot-problem-card { padding: 1.75rem 1.5rem; }
  .ot-problem-card p:not(.ot-label) { font-size: 1.1rem; }
}
