/*
Theme Name: GtoCups Precision — Server First 1.0.18
Theme URI: https://gtocups.com/
Author: GtoCups
Description: WordPress conversion of the supplied GtoCups AI Studio React theme with real WordPress pages, Customizer-managed advertising, logo/site icon support, and editable footer menus.
Version: 1.0.18
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gtocups
*/

html { scroll-behavior: smooth; }
body { margin: 0; }
body.admin-bar .gtocups-app-shell > .sticky.top-0 { top: 32px; }
@media (max-width: 782px) { body.admin-bar .gtocups-app-shell > .sticky.top-0 { top: 46px; } }

#gtocups-noscript-fallback { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem; font-family: system-ui, sans-serif; }
#gtocups-noscript-fallback h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .75rem; }
#gtocups-noscript-fallback p { color: #52443B; line-height: 1.65; }

/* WordPress-authored blog content rendered inside the React /blog view. */
.gtocups-wp-post-content > * + * { margin-top: 1rem; }
.gtocups-wp-post-content h2 { margin-top: 2rem; font-size: 1.5rem; line-height: 1.25; font-weight: 800; color: #0f172a; }
.gtocups-wp-post-content h3 { margin-top: 1.5rem; font-size: 1.2rem; line-height: 1.35; font-weight: 800; color: #0f172a; }
.gtocups-wp-post-content ul, .gtocups-wp-post-content ol { padding-left: 1.5rem; }
.gtocups-wp-post-content ul { list-style: disc; }
.gtocups-wp-post-content ol { list-style: decimal; }
.gtocups-wp-post-content a { color: #b45309; text-decoration: underline; }
.gtocups-wp-post-content img { max-width: 100%; height: auto; border-radius: 1rem; }
.gtocups-wp-post-content blockquote { border-left: 3px solid #d97706; padding-left: 1rem; color: #475569; }

/* 1.0.10 — Mobile sticky ad readability.
 * The original banner truncated the only mobile message to one line while the
 * badge, CTA and dismiss button were all non-shrinking. On narrow screens the
 * message therefore collapsed to just a few characters. Keep the compact
 * single-line desktop treatment, but give the mobile message its own full-width
 * row and allow natural wrapping. */
@media (max-width: 639px) {
  .gtocups-sticky-ad {
    padding: 0.625rem 0.75rem;
  }

  .gtocups-sticky-ad .gtocups-sticky-ad-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.625rem;
    row-gap: 0.4rem;
  }

  .gtocups-sticky-ad .gtocups-sticky-ad-copy {
    display: contents;
  }

  .gtocups-sticky-ad .gtocups-sticky-ad-visual {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
  }

  .gtocups-sticky-ad .gtocups-sticky-ad-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 0.375rem;
  }

  .gtocups-sticky-ad .gtocups-sticky-ad-message {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .gtocups-sticky-ad .gtocups-sticky-ad-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 44vw;
    min-height: 1.75rem;
    padding: 0.3rem 0.65rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .gtocups-sticky-ad .gtocups-sticky-ad-close {
    flex: 0 0 auto;
  }
}

/* 1.0.13 — First-paint bootstrap shell.
 * Keep one genuine server-rendered H1 for crawler/SEO parity, but make the
 * pre-React frame visually resemble the real homepage instead of exposing a
 * bare title + meta-description paragraph. React replaces #root completely on
 * mount, so this shell never remains alongside the interactive app. */
#gtocups-seo-shell {
  min-height: 100vh;
  background: #FDFBF7;
  color: #1A1412;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}
.gtocups-bootstrap-header {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #E6DEC8;
  background: rgba(253,251,247,.97);
}
.gtocups-bootstrap-header-inner {
  width: min(80rem, 100%);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gtocups-bootstrap-brand { display:flex; align-items:center; gap:.7rem; min-width:0; }
.gtocups-bootstrap-logo { display:block; max-width:230px; height:44px; width:auto; object-fit:contain; }
.gtocups-bootstrap-mark {
  width: 38px; height: 38px; border-radius: 12px; background:#C86D3B;
  box-shadow: 0 1px 2px rgba(26,20,18,.12);
}
.gtocups-bootstrap-wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem; font-weight: 900; letter-spacing: -.025em; white-space: nowrap;
}
.gtocups-bootstrap-wordmark b { color:#C86D3B; }
.gtocups-bootstrap-nav { display:flex; align-items:center; gap:.5rem; }
.gtocups-bootstrap-nav span {
  display:block; width:68px; height:32px; border-radius:10px; background:#F4F0EA;
}
.gtocups-bootstrap-nav span:nth-child(2) { width:92px; }
.gtocups-bootstrap-nav span:nth-child(3) { width:74px; }
.gtocups-bootstrap-hero { padding: 2rem 1rem 3rem; border-bottom:1px solid #E6DEC8; }
.gtocups-bootstrap-hero-inner { width:min(72rem,100%); margin:0 auto; text-align:center; }
.gtocups-bootstrap-badge {
  display:inline-block; margin-bottom:.75rem; padding:.32rem .8rem; border:1px solid #E6DEC8;
  border-radius:999px; background:#F4F0EA; color:#3D312A; font-size:.72rem; font-weight:800;
  letter-spacing:.06em; text-transform:uppercase;
}
#gtocups-seo-shell h1 {
  max-width: 58rem; margin:0 auto;
  font-family:"Playfair Display", Georgia, serif;
  font-size:clamp(2rem, 6vw, 3.75rem); line-height:1.05; letter-spacing:-.035em; font-weight:900;
}
#gtocups-seo-shell .gtocups-bootstrap-subtitle {
  max-width: 44rem; margin:.8rem auto 0; color:#52443B; font-size:clamp(.9rem, 2vw, 1rem); line-height:1.65;
}
.gtocups-bootstrap-actions { display:flex; justify-content:center; gap:.65rem; margin-top:1rem; }
.gtocups-bootstrap-pill { width:120px; height:34px; border-radius:16px; background:#1A1412; }
.gtocups-bootstrap-pill.alt { width:104px; background:#F4F0EA; border:1px solid #E6DEC8; }
.gtocups-bootstrap-card {
  width:min(64rem,100%); min-height:280px; margin:1.7rem auto 0; padding:1rem;
  box-sizing:border-box; border:1px solid #E6DEC8; border-radius:24px; background:rgba(244,240,234,.82);
  box-shadow:0 16px 40px rgba(67,49,38,.08); text-align:left;
}
.gtocups-bootstrap-region { height:72px; border:1px solid #E6DEC8; border-radius:16px; background:#FDFBF7; }
.gtocups-bootstrap-grid { display:grid; grid-template-columns: 1.3fr .9fr; gap:1rem; margin-top:1rem; }
.gtocups-bootstrap-block { height:146px; border:1px solid #E6DEC8; border-radius:16px; background:#FDFBF7; }
.gtocups-bootstrap-block:last-child { background:#FFF8EE; }
@media (max-width: 767px) {
  .gtocups-bootstrap-header { height:64px; }
  .gtocups-bootstrap-nav span:nth-child(1), .gtocups-bootstrap-nav span:nth-child(2) { display:none; }
  .gtocups-bootstrap-nav span:nth-child(3) { width:40px; height:40px; border-radius:12px; }
  .gtocups-bootstrap-hero { padding:1.75rem .9rem 2rem; }
  .gtocups-bootstrap-badge { max-width:92%; font-size:.64rem; }
  .gtocups-bootstrap-grid { grid-template-columns:1fr; }
  .gtocups-bootstrap-block:last-child { display:none; }
  .gtocups-bootstrap-card { min-height:250px; border-radius:20px; }
}

