/*
Theme Name: MarketingRx (Salient Child)
Description: MarketingRx company site — Salient child theme, Tether demo base (marketingrx.kr)
Theme URI:   https://marketingrx.kr
Author: MarketingRx
Author URI:  https://marketingrx.kr
Template: salient
Version: 0.1.0
*/

/* ==========================================================================
   Korean typography — apply Korean fonts over the Tether demo (Latin fonts)
   Body/headings: Pretendard Variable (jsDelivr CDN)
   ========================================================================== */

body,
p,
input,
textarea,
select,
button,
.nectar-button,
h1, h2, h3, h4, h5, h6,
#header-outer,
#footer-outer,
nav#top nav > ul > li > a,
#header-outer .sf-menu li ul li a {
	font-family: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
}

/* ==========================================================================
   MarketingRx design tokens (2026-08-31 mockup — docs/design/)
   Blue ground / white type / yellow accent. Applied per-section as the
   redesign progresses; keep overrides scoped, not global.
   ========================================================================== */

:root {
	--mrx-blue: #1225ec;   /* primary background (from mockup, verify against final palette) */
	--mrx-white: #ffffff;  /* text on blue */
	--mrx-yellow: #ffc21c; /* accent (annotations/CTA highlight, verify against final palette) */
	--mrx-navy: #001F3F;   /* heading/body type (carried over from the old brand palette) */
}

/* ==========================================================================
   Header — text logo ("MarketingRx·마케팅알엑스") kept on one line, with
   breathing room before the first menu item (mockup spacing).
   ========================================================================== */

#header-outer #logo {
	white-space: nowrap;
}

#header-outer nav > ul.sf-menu > li:first-of-type {
	margin-left: 80px;
}

/* CTA menu item (마케팅 진단하기) — bold, per mockup */
#header-outer nav > ul.sf-menu > li > a[href*="/marketing-checkup/"],
#header-outer nav > ul.sf-menu > li > a[href*="/marketing-checkup/"] span {
	font-weight: 700;
}

/* ==========================================================================
   Home (#667) — keep the Tether demo background, switch type to navy.
   Rows with a dark background are marked data-midnight="light" by Salient
   and keep their light text (excluded below).
   ========================================================================== */

.page-id-667 .container-wrap :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, .subtitle):not([data-midnight="light"] *) {
	color: var(--mrx-navy);
}

/* Hero H1 (마케팅이 매출로 이어지게) — heavier weight */
.page-id-667 #overview h1 {
	font-weight: 800;
}

/* nectar_responsive_text blocks carry their own theme color rules that
   outrank the tag-based rule above — force navy there too. */
.page-id-667 .container-wrap .nectar-responsive-text :is(h1, h2, h3, h4, h5, h6, p, li):not([data-midnight="light"] *) {
	color: var(--mrx-navy) !important;
}

/* Milestones — the subject label is a div (missed by the tag list above)
   and the count-up number uses the theme accent; both go navy. */
.page-id-667 .nectar-milestone .number,
.page-id-667 .nectar-milestone .number .symbol,
.page-id-667 .nectar-milestone .subject {
	color: var(--mrx-navy) !important;
}

/* ==========================================================================
   Solutions page (#1644) — industry icon columns: invert colors on hover
   (brand blue ground, white icon/text) and read as clickable cards.
   Each column carries column_link to its industry card row anchor.
   ========================================================================== */

.page-id-1644 .wpb_column:has(.nectar_icon_wrap) {
	border-radius: 15px;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.page-id-1644 .wpb_column:has(.nectar_icon_wrap):hover {
	background-color: var(--mrx-navy);
}

.page-id-1644 .wpb_column:has(.nectar_icon_wrap):hover :is(h1, h2, h3, h4, h5, h6, p, .wpb_text_column),
.page-id-1644 .wpb_column:has(.nectar_icon_wrap):hover .nectar_icon,
.page-id-1644 .wpb_column:has(.nectar_icon_wrap):hover .nectar_icon i,
.page-id-1644 .wpb_column:has(.nectar_icon_wrap):hover .nectar_icon [class*="icon-"] {
	color: #ffffff !important;
	transition: color 0.25s ease;
}

/* The linea icons render as inline SVG line art (stroke), so invert the
   stroke too; fill stays untouched where it is "none". */
.page-id-1644 .wpb_column:has(.nectar_icon_wrap) .nectar_icon_wrap svg :is(path, polyline, line, circle, rect, polygon, ellipse) {
	transition: stroke 0.25s ease;
}

.page-id-1644 .wpb_column:has(.nectar_icon_wrap):hover .nectar_icon_wrap svg :is(path, polyline, line, circle, rect, polygon, ellipse) {
	stroke: #ffffff !important;
}

/* Fill-based glyphs (e.g. iconsmind) — elements without a fill attribute
   included; fill="none" line-art shapes stay untouched. */
.page-id-1644 .wpb_column:has(.nectar_icon_wrap):hover .nectar_icon_wrap svg :is(path, polygon, circle, rect, ellipse):not([fill="none"]) {
	fill: #ffffff !important;
}

/* Arrival highlight — after an icon click scrolls to a card row, the two
   cards in the row pulse a navy glow twice (class added by mrx-solutions.js). */
@keyframes mrx-card-flash {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(0, 31, 63, 0);
	}
	35% {
		box-shadow: 0 0 0 7px rgba(0, 31, 63, 0.35);
	}
}

.page-id-1644 .wpb_column.mrx-arrived-card {
	border-radius: 15px;
	animation: mrx-card-flash 1.1s ease-out 2;
}

@media (prefers-reduced-motion: reduce) {
	.page-id-1644 .wpb_column.mrx-arrived-card {
		animation: none;
	}
}

/* ==========================================================================
   Insight page (#1646) — topic cards: deep beige ground, navy type.
   ========================================================================== */

.page-id-1646 .wpb_column[data-has-bg-color="true"] :is(h1, h2, h3, h4, h5, h6, p, li) {
	color: var(--mrx-navy);
}

/* Hover highlight — cards lift with a soft navy shadow. */
.page-id-1646 .wpb_column[data-has-bg-color="true"] {
	border-radius: 15px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-id-1646 .wpb_column[data-has-bg-color="true"]:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(0, 31, 63, 0.18);
}

@media (prefers-reduced-motion: reduce) {
	.page-id-1646 .wpb_column[data-has-bg-color="true"]:hover {
		transform: none;
	}
}

/* ==========================================================================
   Contact page (#1647) — consult form. Warm card ground (matches the
   solutions cards), navy labels/type, navy button with brand-blue hover.
   ========================================================================== */

.page-id-1647 .bc-cn-field {
	margin-bottom: 18px;
}

.page-id-1647 .bc-cn-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--mrx-navy);
	font-weight: 600;
	font-size: 14px;
}

.page-id-1647 .bc-cn-req {
	color: #C0392B;
}

.page-id-1647 .bc-cn-field input[type="text"],
.page-id-1647 .bc-cn-field select,
.page-id-1647 .bc-cn-field textarea {
	width: 100%;
	padding: 12px 14px;
	background: #ffffff;
	border: 1px solid rgba(0, 31, 63, 0.2);
	border-radius: 8px;
	color: var(--mrx-navy);
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.page-id-1647 .bc-cn-field input[type="text"]:focus,
.page-id-1647 .bc-cn-field select:focus,
.page-id-1647 .bc-cn-field textarea:focus {
	outline: none;
	border-color: var(--mrx-navy);
}

.page-id-1647 .bc-cn-check label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
}

.page-id-1647 .bc-cn-check input[type="checkbox"] {
	margin-top: 3px;
	accent-color: var(--mrx-navy);
}

/* Honeypot — visually removed, still in the DOM for bots */
.page-id-1647 .bc-cn-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.page-id-1647 .bc-cn-btn {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: var(--mrx-navy);
	color: #ffffff;
	border: 0;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.page-id-1647 .bc-cn-btn:hover {
	background: var(--mrx-blue);
}

.page-id-1647 .bc-cn-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.page-id-1647 .bc-cn-btn:disabled:hover {
	background: var(--mrx-navy);
}

.page-id-1647 .bc-note {
	margin-top: 12px;
	font-size: 14px;
	color: var(--mrx-navy);
	min-height: 1.4em;
}

.page-id-1647 .bc-note.ok {
	color: #1E7A46;
	font-weight: 600;
}

.page-id-1647 .bc-note.err {
	color: #C0392B;
	font-weight: 600;
}

/* ==========================================================================
   Footer (global section #267) — brand line in navy, business registration
   info as a small muted block above the copyright.
   ========================================================================== */

.mrx-footer-brand {
	color: var(--mrx-navy) !important;
}

.mrx-footer-bizinfo {
	font-size: 13px;
	line-height: 1.9;
	color: rgba(0, 31, 63, 0.6);
	margin-bottom: 10px;
}

.mrx-footer-bizinfo strong {
	color: var(--mrx-navy);
	font-weight: 700;
}

/* Legal links (terms/privacy/refund) — own line under the social icons in
   the bottom-right column; the flex item is the wpb_text_column wrapper. */
.wpb_text_column:has(.mrx-footer-legal) {
	flex-basis: 100%;
}

.mrx-footer-legal {
	font-size: 13px;
	text-align: right;
	color: rgba(0, 31, 63, 0.6);
}

.mrx-footer-legal a {
	color: rgba(0, 31, 63, 0.7);
}

.mrx-footer-legal a:hover {
	color: var(--mrx-navy);
}

/* Phone: the column left-aligns its content (flex-start) — follow suit. */
@media (max-width: 690px) {
	.mrx-footer-legal {
		text-align: left;
	}
}

/* Home — extra air between the header and the hero text.
   margin-top, not padding: the section's own top padding is inline.
   !important: parent-theme rules on .nectar_section otherwise win. */
body.page-id-667 #ajax-content-wrap .main-content > .row > .nectar_section:first-of-type {
	margin-top: 156px !important; /* 56px + 100px per user request */
}
