/*
Theme Name: Curious Monkey
Theme URI: https://curiousmonkey.co.kr
Author: 주식회사 큐리어스몽키
Description: 주식회사 큐리어스몽키 공식 홈페이지 블록 테마. Curious Lab, Curious Studio, Curious Press, Monkey Market, CURIO 브랜드 페이지를 포함합니다.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: curiousmonkey
*/

/* ---------- Hand-drawn look (matches the logo's sketchy frame) ---------- */
.cm-sketch {
	border: 3px solid var(--wp--preset--color--ink);
	border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
	background: var(--wp--preset--color--white);
}
.cm-card {
	transition: transform .2s ease, box-shadow .2s ease;
	box-shadow: 6px 6px 0 var(--wp--preset--color--ink);
}
/* Equal-height cards only when a card is alone in its column */
.wp-block-column > .cm-card:only-child,
.wp-block-column > .cm-curio-card:only-child { height: 100%; }
.cm-card:hover {
	transform: translate(-3px, -3px);
	box-shadow: 9px 9px 0 var(--wp--preset--color--banana);
}
.cm-tilt { transform: rotate(-2deg); }
.cm-tilt-r { transform: rotate(2deg); }

/* Highlighter underline */
.cm-mark {
	background: linear-gradient(transparent 58%, var(--wp--preset--color--banana) 58%, var(--wp--preset--color--banana) 92%, transparent 92%);
	padding: 0 .1em;
}

/* Buttons: offset shadow */
.wp-block-button__link {
	box-shadow: 4px 4px 0 var(--wp--preset--color--banana);
	transition: transform .15s ease, box-shadow .15s ease;
}
.wp-block-button__link:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--wp--preset--color--banana);
}
.is-style-outline > .wp-block-button__link {
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
}

/* Eyebrow label */
.cm-eyebrow {
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
}

/* Marquee strip */
.cm-marquee {
	overflow: hidden;
	white-space: nowrap;
}
.cm-marquee p {
	display: inline-block;
	padding-left: 100%;
	animation: cm-scroll 28s linear infinite;
	margin: 0;
}
@keyframes cm-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.cm-marquee p { animation: none; padding-left: 0; }
}

/* Step number badges */
.cm-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 3px solid var(--wp--preset--color--ink);
	border-radius: 50% 45% 55% 50%;
	background: var(--wp--preset--color--banana);
	font-weight: 800;
}

/* Header */
.cm-header { border-bottom: 3px solid var(--wp--preset--color--ink); }
.cm-header .wp-block-navigation a:hover {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--wp--preset--color--banana);
}

/* CURIO premium section */
.cm-curio a { color: var(--wp--preset--color--gold); }
.cm-curio .wp-block-button__link {
	box-shadow: none;
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 0;
}
.cm-curio .wp-block-button__link:hover {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
	transform: none;
	box-shadow: none;
}
.cm-curio-card { border: 1px solid #3a3a3a; }

/* Footer */
.cm-footer a { text-decoration: none; }
.cm-footer a:hover { color: var(--wp--preset--color--banana); }

/* Keep Korean words from breaking mid-word */
h1, h2, h3, h4, p { word-break: keep-all; overflow-wrap: break-word; }

@media (max-width: 781px) {
	.cm-tilt, .cm-tilt-r { transform: none; }
}
.cm-btn-white .wp-block-button__link { box-shadow: 4px 4px 0 var(--wp--preset--color--white); }
.cm-btn-white .wp-block-button__link:hover { box-shadow: 6px 6px 0 var(--wp--preset--color--white); }

/* Checklist */
.cm-checks { list-style: none; padding-left: 0; }
.cm-checks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.cm-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	width: 1.1rem;
	height: 1.1rem;
	border: 3px solid currentColor;
	border-radius: 45% 55% 50% 50%;
	background: var(--wp--preset--color--banana);
}
.cm-curio .cm-checks li::before { background: transparent; border: 1px solid var(--wp--preset--color--gold); border-radius: 0; transform: rotate(45deg) scale(.7); }

/* Plain list (footer) */
.cm-plain-list { list-style: none; padding-left: 0; line-height: 2; }

/* Company info table */
.cm-info-table table { border-collapse: collapse; width: 100%; }
.cm-info-table th, .cm-info-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 1rem .5rem; text-align: left; vertical-align: top; }
.cm-info-table th { width: 8rem; font-weight: 700; white-space: nowrap; }

/* Sections butt up against each other; no gap before the footer */
.wp-site-blocks > * + * { margin-block-start: 0; }

@media (max-width: 781px) {
	.cm-hero-logo { max-width: 260px; margin-inline: auto; }
}

/* Contact Form 7 */
.cm-form label { display: block; font-weight: 700; margin-bottom: 1.1rem; }
.cm-form input[type="text"],
.cm-form input[type="email"],
.cm-form input[type="tel"],
.cm-form select,
.cm-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: .4rem;
	padding: .75rem .9rem;
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 10px;
}
.cm-form textarea { min-height: 9rem; resize: vertical; }
.cm-form input:focus, .cm-form select:focus, .cm-form textarea:focus {
	outline: 3px solid var(--wp--preset--color--banana);
	outline-offset: 1px;
}
.cm-form .wpcf7-acceptance { display: block; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin: .5rem 0 1.25rem; }
.cm-form .wpcf7-acceptance input { margin-right: .4rem; }
.cm-form input[type="submit"] {
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--ink);
	border: 3px solid var(--wp--preset--color--ink);
	border-radius: 999px;
	padding: .8rem 1.8rem;
	box-shadow: 4px 4px 0 var(--wp--preset--color--banana);
}
.cm-form input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7-not-valid-tip { font-size: .85rem; font-weight: 600; color: #c0392b; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; }
