/*
Theme Name: FOREXSTL
Theme URI: https://forexstl.com/
Author: Sylvia's Traders Lounge
Author URI: https://forexstl.com/
Description: Custom modern-fintech (dark) theme for FOREXSTL - Sylvia's Traders Lounge. Learn. Trade. Profit.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forexstl
*/

/* ============================================================
   Design tokens
============================================================ */
:root {
  --bg:        #0a0e1a;
  --bg-2:      #111729;
  --bg-3:      #1a2238;
  --surface:   #141b2e;
  --border:    #243049;
  --text:      #e8edf7;
  --text-dim:  #9aa7c2;
  --text-mute: #6b7896;
  --gold:      #d4af37;
  --gold-2:    #f0c14b;
  --green:     #16c784;
  --red:       #ea3943;
  --accent:    var(--gold);
  --radius:    14px;
  --radius-sm: 8px;
  --maxw:      1200px;
  --ff-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-head:   "Sora", "Inter", sans-serif;
  --shadow:    0 10px 40px rgba(0,0,0,.45);
}

/* ============================================================
   Base
============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.15; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; color: var(--text-dim); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.eyebrow { color: var(--gold); font-family: var(--ff-head); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--text-dim); max-width: 60ch; }

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn--primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,.35); color: #14110a; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   Header / nav
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.site-brand { display: flex; flex-direction: column; line-height: 1; }
.site-brand__name { font-family: var(--ff-head); font-weight: 800; font-size: 1.4rem; color: var(--text); letter-spacing: -.02em; }
.site-brand__tag { font-size: .62rem; letter-spacing: .28em; color: var(--gold); text-transform: uppercase; margin-top: 4px; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--text-dim); font-size: .95rem; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--text); background: var(--bg-3); }
.main-nav .sub-menu { display: none; position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; min-width: 220px; box-shadow: var(--shadow); flex-direction: column; }
.main-nav li { position: relative; }
.main-nav li:hover > .sub-menu { display: flex; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; font-size: 1.2rem; }

/* ============================================================
   Hero
============================================================ */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 80% -10%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(22,199,132,.10), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; }
.hero h1 span { color: var(--gold); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.stat__num { font-family: var(--ff-head); font-size: 2.2rem; font-weight: 800; color: var(--text); }
.stat__label { color: var(--text-mute); font-size: .9rem; }

/* ============================================================
   Cards / grids
============================================================ */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.5); }
.card h3 { color: var(--text); }
.card__meta { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.card__more { font-family: var(--ff-head); font-weight: 600; font-size: .9rem; }

/* Feature/value blocks */
.feature { text-align: left; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; color: var(--gold); font-size: 1.4rem; margin-bottom: 16px; border: 1px solid var(--border); }

/* Section header */
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   Posts / content
============================================================ */
.entry-content { max-width: 760px; }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }
.entry-content h2, .entry-content h3 { color: var(--text); margin-top: 1.6em; }
.entry-content ul, .entry-content ol { color: var(--text-dim); }
.entry-content blockquote { border-left: 3px solid var(--gold); margin: 1.5em 0; padding: .5em 0 .5em 1.2em; color: var(--text); font-style: italic; }
.post-hero { padding: 64px 0 24px; border-bottom: 1px solid var(--border); }
.post-meta { color: var(--text-mute); font-size: .9rem; }
.archive-grid { padding: 60px 0; }

/* Partners */
.partner { display: flex; flex-direction: column; gap: 14px; }
.partner__name { font-family: var(--ff-head); font-weight: 700; font-size: 1.3rem; color: var(--text); }

/* ============================================================
   Disclaimer / about strip (reusable)
============================================================ */
.info-strip { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.info-strip .grid--3 { gap: 40px; }
.info-block h4 { color: var(--gold); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.info-block p { font-size: .95rem; }
.disclaimer { font-size: .82rem; color: var(--text-mute); }

/* ============================================================
   Footer
============================================================ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-dim); }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-mute); font-size: .85rem; }
.site-footer h4 { color: var(--text); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--gold); }

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav .sub-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
  .main-nav li:hover > .sub-menu { display: flex; }
  .grid--3, .grid--2, .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
}

/* ============================================================
   Contact page
============================================================ */
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--border); display: grid; place-items: center; color: var(--gold); font-size: 1.3rem; }
.contact-item strong { display: block; color: var(--text); font-family: var(--ff-head); margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--text-dim); }
.contact-item a:hover { color: var(--gold); }

.contact-form-card { background: linear-gradient(135deg, var(--bg-3), var(--surface)); }
.contact-form { margin-top: 8px; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: .85rem; color: var(--text-dim); font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 14px; font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; border: 1px solid transparent; }
.form-notice--success { background: rgba(22,199,132,.12); border-color: rgba(22,199,132,.4); color: #7ee9bf; }
.form-notice--error { background: rgba(234,57,67,.12); border-color: rgba(234,57,67,.4); color: #ff9aa0; }

@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

/* WP core helpers */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.aligncenter { margin-left: auto; margin-right: auto; }
.aligncenter { display: block; margin: 1em auto; }
.sticky, .gallery-caption, .bypostauthor { font-size: inherit; }
