/*
Theme Name:   Varexa Markets (Astra Child)
Theme URI:    https://varexamarketsforex.onrender.com/
Description:  Forex & CFD brokerage theme for Varexa Markets. Child of Astra, built for Elementor, Contact Form 7 and TradingView chart widgets. Dark green and gold brand.
Author:       Varexa Markets
Template:     astra
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  varexa-astra-child
*/

/* Component styles live in assets/css/varexa-components.css (ported from the static site).
   This file holds the WordPress-specific glue: Astra overrides, Contact Form 7, TradingView, Elementor. */

/* ------------------------------------------------------------------
   Design tokens are defined in varexa-components.css (:root).
   Make them available on every page, including non-home Astra pages.
   ---------------------------------------------------------------- */
body.varexa-site {
	font-family: "Manrope", system-ui, sans-serif;
	background: var(--surface, #F7F7F1);
	color: var(--text, #0E3328);
}

/* ------------------------------------------------------------------
   Astra overrides: our own header/footer replace Astra's
   ---------------------------------------------------------------- */
.varexa-site #masthead,
.varexa-site .ast-above-header-wrap,
.varexa-site .ast-below-header-wrap,
.varexa-site .site-footer.ast-footer-wrap { display: none; }

/* Full-width Varexa template: no Astra gutters, no page title */
.varexa-home #content,
.varexa-home .site-content { padding: 0; margin: 0; }
.varexa-home .entry-header,
.varexa-home .entry-title { display: none; }
.varexa-main { display: block; width: 100%; }

/* Elementor sections: remove default padding/gaps so the imported HTML sections sit flush */
.varexa-home .elementor-section.elementor-top-section > .elementor-container { max-width: none; padding: 0; }
.varexa-home .elementor-column-gap-no > .elementor-column > .elementor-element-populated,
.varexa-home .elementor-widget-wrap { padding: 0; }
.varexa-home .elementor-widget:not(:last-child) { margin-bottom: 0; }
.varexa-home .elementor-widget-html .elementor-widget-container { padding: 0; }

/* Astra applies its own link/heading colours inside content; keep the Varexa look */
.varexa-home .btn-gold,
.varexa-home .btn-gold:hover { color: var(--gold-ink); }
.varexa-home .btn-outline-gold { color: var(--gold-light); }
.varexa-home .btn-outline-gold:hover { color: var(--gold-ink); }

/* Sticky header offset when the WordPress admin bar is showing */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Inner pages (blog, default pages) still get the dark header/footer; give them readable content */
.varexa-site:not(.varexa-home) .site-content { background: var(--surface); }
.varexa-site:not(.varexa-home) .ast-container { padding-top: 56px; padding-bottom: 72px; }
.varexa-site:not(.varexa-home) .entry-title,
.varexa-site:not(.varexa-home) h1,
.varexa-site:not(.varexa-home) h2,
.varexa-site:not(.varexa-home) h3 { color: var(--text); font-family: var(--font-display); letter-spacing: -0.02em; }
.varexa-site:not(.varexa-home) a { color: var(--gold-text); }
.varexa-site:not(.varexa-home) a:hover { color: var(--gold-deep); }

/* WordPress menu markup inside the Varexa nav (wp_nav_menu output) */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--gold); }
.screen-reader-text.skip-link:focus { background: var(--ink); color: var(--gold-light); z-index: 100000; padding: 10px 16px; top: 8px; left: 8px; }

/* ------------------------------------------------------------------
   TradingView widgets (forex charts)
   ---------------------------------------------------------------- */
.tv-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; }
.tv-panel { background: var(--ink); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.varexa-tv { position: relative; }
.varexa-tv iframe { border-radius: var(--r-md); }
.tradingview-widget-copyright { font-size: 0.72rem; line-height: 22px; text-align: right; color: var(--muted-dark); }
.tradingview-widget-copyright a { color: var(--gold) !important; }
.tradingview-widget-copyright .blue-text { color: var(--gold); }
.tv-ticker { min-height: 76px; }
.tv-ticker .varexa-tv { padding: 0; }
.tv-ticker .tradingview-widget-copyright { display: none; } /* attribution sits in the Market overview widgets */
@media (max-width: 960px) { .tv-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Contact Form 7 — matches the original form
   ---------------------------------------------------------------- */
.contact-form.cf7-wrap { display: block; }
.varexa-cf7,
.contact-form .wpcf7-form { display: grid; gap: 18px; margin: 0; }
.wpcf7-form p { margin: 0; }
.contact-form .wpcf7-form-control-wrap { display: block; }
.wpcf7 .field { display: grid; gap: 6px; margin: 0; }
.wpcf7 .field > span { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%; font: inherit; color: var(--text); padding: 13px 14px; border-radius: 12px;
	border: 1.5px solid var(--line); background: var(--surface); box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { resize: vertical; min-height: 120px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(227, 192, 120, .35); }
.wpcf7 .check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.wpcf7 .check .wpcf7-list-item { margin: 0; }
.wpcf7 .check .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; }
.wpcf7 .check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.wpcf7 .check a { text-decoration: underline; color: var(--text); }
.wpcf7 input[type="submit"].btn { width: 100%; cursor: pointer; border: 1.5px solid transparent; }
.wpcf7 input[type="submit"].btn-gold { background: var(--gold-btn); color: var(--gold-ink); }
.wpcf7 input[type="submit"].btn-gold:hover { filter: brightness(1.06) saturate(1.05); }
.wpcf7-spinner { margin: 8px auto 0; }
.wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--down); }
.wpcf7 .wpcf7-not-valid { border-color: var(--down); }
.wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; border-width: 1.5px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #1f8a55; color: #1f8a55; background: rgba(31, 138, 85, .08); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--down); color: var(--down); background: rgba(240, 82, 91, .07); }
@media (max-width: 600px) { .wpcf7 .field-row { grid-template-columns: 1fr; } }
