/*
Theme Name: StockResearch AI Theme
Theme URI: https://stockresearch.ai/
Author: StockResearch AI
Author URI: https://stockresearch.ai/
Description: A dark, modern landing + content theme for StockResearch.ai. On activation, it auto-creates key pages and a Primary Menu.
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stockresearch-landing
*/


:root {
  --sr-blue: #0b4fd8;
  --sr-blue-hover: #083aa3;
  --sr-ink: #0f172a;
  --sr-ink-soft: #334155;
  --sr-border: rgba(15, 23, 42, 0.12);
  --sr-ring: rgba(11, 79, 216, 0.22);
  --sr-bg: #ffffff;
  --sr-btn-height: 52px;
  --sr-btn-px: 1.6rem;
  --sr-btn-py: 0.95rem;
  --sr-btn-shadow: 0 10px 24px rgba(11, 79, 216, 0.18);
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--sr-bg);
  color: var(--sr-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: 78px; /* fixed navbar offset */
}

/* Headline safety: avoid any clipped ascenders in containers that use overflow-hidden */
h1, h2 {
  line-height: 1.2;
  padding-top: 0.14em;
  padding-bottom: 0.08em;
  overflow: visible;
}

body.admin-bar {
  padding-top: calc(78px + 32px);
}

@media (min-width: 768px) {
  body { padding-top: 86px; }
  body.admin-bar { padding-top: calc(86px + 32px); }
}

main, section, header, footer { scroll-margin-top: 96px; }

/* Headings: avoid clipped ascenders on tight leading */
h1, h2, h3, h4, h5, h6 {
  color: var(--sr-ink);
  line-height: 1.15;
  padding-top: 0.04em;
  padding-bottom: 0.02em;
}

p, li {
  color: var(--sr-ink-soft);
  line-height: 1.7;
}

a { color: var(--sr-blue); }
a:hover { color: var(--sr-blue-hover); }

/* =========================================
   BUTTONS / CTAs — enforce a single, crisp style everywhere
   ========================================= */

/* Button-like anchors in this theme are usually inline-flex + padding + rounded */
a[class*="sr-btn"],
a[class*="btn"],
a[class*="button"],
a[class*="cta"],
a[role="button"],
a[class*="inline-flex"][class*="px-"][class*="py-"][class*="rounded"],
a[class*="rounded-full"][class*="px-"][class*="py-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:not(.nav-hamburger),
input[type="button"],
input[type="submit"],
input[type="reset"],
a.button,
.button,
.btn,
.sr-btn,
.cta-button,
.wp-element-button,
.wp-block-button__link,
a[class*="sr-btn"],
a[class*="btn"],
a[class*="button"],
a[class*="cta"],
a[role="button"],
a[class*="inline-flex"][class*="px-"][class*="py-"][class*="rounded"],
a[class*="rounded-full"][class*="px-"][class*="py-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: var(--sr-btn-height);
  padding: var(--sr-btn-py) var(--sr-btn-px) !important;
  background-color: var(--sr-blue) !important;
  border: 2px solid var(--sr-blue) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  background-image: none !important;
  box-shadow: var(--sr-btn-shadow) !important;
  text-shadow: none !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.1 !important;
  letter-spacing: -0.01em;
  border-radius: 9999px !important;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

/* Keep nested labels/icons consistent */
button:not(.nav-hamburger) *,
input[type="button"] *,
input[type="submit"] *,
input[type="reset"] *,
a.button *,
.button *,
.btn *,
.sr-btn *,
.cta-button *,
.wp-element-button *,
.wp-block-button__link *,
a[class*="sr-btn"] *,
a[class*="btn"] *,
a[class*="button"] *,
a[class*="cta"] *,
a[role="button"] *,
a[class*="inline-flex"][class*="px-"][class*="py-"][class*="rounded"] *,
a[class*="rounded-full"][class*="px-"][class*="py-"] * {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

button:not(.nav-hamburger):hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
a.button:hover,
.button:hover,
.btn:hover,
.sr-btn:hover,
.cta-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
a[class*="sr-btn"]:hover,
a[class*="btn"]:hover,
a[class*="button"]:hover,
a[class*="cta"]:hover,
a[role="button"]:hover,
a[class*="inline-flex"][class*="px-"][class*="py-"][class*="rounded"]:hover,
a[class*="rounded-full"][class*="px-"][class*="py-"]:hover {
  background-color: var(--sr-blue-hover) !important;
  border-color: var(--sr-blue-hover) !important;
  box-shadow: 0 14px 30px rgba(11, 79, 216, 0.24) !important;
  transform: translateY(-1px);
}

button:not(.nav-hamburger):focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
a.button:focus,
.button:focus,
.btn:focus,
.sr-btn:focus,
.cta-button:focus,
.wp-element-button:focus,
.wp-block-button__link:focus,
a[class*="sr-btn"]:focus,
a[class*="btn"]:focus,
a[class*="button"]:focus,
a[class*="cta"]:focus,
a[role="button"]:focus,
a[class*="inline-flex"][class*="px-"][class*="py-"][class*="rounded"]:focus,
a[class*="rounded-full"][class*="px-"][class*="py-"]:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px var(--sr-ring), var(--sr-btn-shadow) !important;
}

/* Prevent normal inline text links from turning into buttons */
p a:not(.sr-btn):not(.btn):not(.button):not(.wp-block-button__link)[class=""],
li a:not(.sr-btn):not(.btn):not(.button):not(.wp-block-button__link)[class=""] {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* =========================================
   Vbout Embedded Forms (Contact + Newsletter)
   ========================================= */

#vboutEmbedFormWrapper-181700,
#vboutEmbedFormWrapper-181930 {
  width: 100%;
  background: linear-gradient(180deg, #dbeafe 0%, #ffffff 70%) !important;
  border: 3px solid var(--sr-blue) !important;
  outline: 6px solid rgba(11, 79, 216, 0.18) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 18px 50px rgba(11, 79, 216, 0.22) !important;
  position: relative;
  overflow: hidden;
}

#vboutEmbedFormWrapper-181700::before,
#vboutEmbedFormWrapper-181930::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--sr-blue) 0%, #3b82f6 50%, #60a5fa 100%);
}

#vboutEmbedFormWrapper-181700 form,
#vboutEmbedFormWrapper-181930 form {
  max-width: 100% !important;
  padding: 0 !important;
}

#vboutEmbedFormWrapper-181700 h1,
#vboutEmbedFormWrapper-181930 h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: var(--sr-ink) !important;
  letter-spacing: -0.02em;
}

#vboutEmbedFormWrapper-181700 .vboutEmbedFormRow,
#vboutEmbedFormWrapper-181930 .vboutEmbedFormRow {
  padding-bottom: 14px;
}

#vboutEmbedFormWrapper-181700 label,
#vboutEmbedFormWrapper-181930 label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--sr-ink) !important;
}

#vboutEmbedFormWrapper-181700 input,
#vboutEmbedFormWrapper-181930 input,
#vboutEmbedFormWrapper-181700 textarea,
#vboutEmbedFormWrapper-181930 textarea,
#vboutEmbedFormWrapper-181700 select,
#vboutEmbedFormWrapper-181930 select {
  width: 100% !important;
  max-width: 100% !important;
  height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 3px solid rgba(11, 79, 216, 0.65) !important;
  background: #f8fbff !important;
  color: var(--sr-ink) !important;
}

#vboutEmbedFormWrapper-181700 textarea,
#vboutEmbedFormWrapper-181930 textarea {
  min-height: 120px;
  height: auto;
}

#vboutEmbedFormWrapper-181700 input:focus,
#vboutEmbedFormWrapper-181930 input:focus,
#vboutEmbedFormWrapper-181700 textarea:focus,
#vboutEmbedFormWrapper-181930 textarea:focus,
#vboutEmbedFormWrapper-181700 select:focus,
#vboutEmbedFormWrapper-181930 select:focus {
  outline: none !important;
  border-color: var(--sr-blue) !important;
  box-shadow: 0 0 0 4px var(--sr-ring) !important;
}

#vboutEmbedFormWrapper-181700 .vfb-submit button,
#vboutEmbedFormWrapper-181930 .vfb-submit button,
#vboutEmbedFormWrapper-181700 input[type="submit"],
#vboutEmbedFormWrapper-181930 input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: var(--sr-btn-height) !important;
  padding: var(--sr-btn-py) var(--sr-btn-px) !important;
  background-color: var(--sr-blue) !important;
  border: 2px solid var(--sr-blue) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: var(--sr-btn-shadow) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

#vboutEmbedFormWrapper-181700 .vfb-submit button:hover,
#vboutEmbedFormWrapper-181930 .vfb-submit button:hover,
#vboutEmbedFormWrapper-181700 input[type="submit"]:hover,
#vboutEmbedFormWrapper-181930 input[type="submit"]:hover {
  background-color: var(--sr-blue-hover) !important;
  border-color: var(--sr-blue-hover) !important;
  box-shadow: 0 14px 30px rgba(11, 79, 216, 0.24) !important;
  transform: translateY(-1px);
}


/* Accessibility overrides */
.text-slate-400{ color: rgb(71 85 105) !important; } /* slate-600 */


/* === Mobile overflow fix === */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

section,
main,
header,
footer,
div {
  max-width: 100%;
}





/* ===== Blog single-post content: restore native list markers + nice typography ===== */
body.single-post .prose ul,
body.single-post article ul,
body.single-post main ul {
    list-style: disc !important;
    padding-left: 1.75rem !important;
    margin: 1em 0 !important;
}
body.single-post .prose ol,
body.single-post article ol,
body.single-post main ol {
    list-style: decimal !important;
    padding-left: 1.75rem !important;
    margin: 1em 0 !important;
}
body.single-post .prose li,
body.single-post article li {
    margin: 0.5em 0 !important;
    display: list-item !important;
    color: #1e293b !important;
}
body.single-post .prose ul ul,
body.single-post article ul ul {
    list-style: circle !important;
    margin: 0.25em 0 !important;
}
body.single-post .prose blockquote,
body.single-post article blockquote {
    border-left: 4px solid #e2e8f0 !important;
    padding: 0.5em 1em !important;
    margin: 1em 0 !important;
    color: #475569 !important;
    font-style: italic !important;
    background: #f8fafc !important;
    border-radius: 4px !important;
}
body.single-post .prose p,
body.single-post article p {
    margin: 1em 0 !important;
    line-height: 1.7 !important;
    color: #1e293b !important;
}
body.single-post .prose h2,
body.single-post article h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 1.5em 0 0.5em !important;
    color: #0f172a !important;
}
body.single-post .prose h3,
body.single-post article h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin: 1.25em 0 0.5em !important;
    color: #0f172a !important;
}
body.single-post .prose strong,
body.single-post article strong {
    font-weight: 700 !important;
    color: #0f172a !important;
}
body.single-post .prose em,
body.single-post article em {
    font-style: italic !important;
}
body.single-post .prose a,
body.single-post article a {
    color: #2563eb !important;
    text-decoration: underline !important;
}
body.single-post .prose a:hover,
body.single-post article a:hover { color: #1d4ed8 !important; }
body.single-post .prose hr,
body.single-post article hr {
    border: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    margin: 2em 0 !important;
}
body.single-post .prose img,
body.single-post article img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 1em auto !important;
    display: block !important;
}
body.single-post .prose figure,
body.single-post article figure { margin: 1.5em 0 !important; }
body.single-post .prose figcaption,
body.single-post article figcaption {
    text-align: center !important;
    color: #64748b !important;
    font-size: 0.875rem !important;
    margin-top: 0.5em !important;
}
/* Override prose-invert (dark) which the theme applies inappropriately on light bg */
body.single-post .prose-invert {
    color: #1e293b !important;
}
/* ===== End blog typography ===== */
