/*
Theme Name: R&C Recruiting & Consulting
Theme URI: https://example.com
Author: R&C LLC
Description: Custom block theme for R&C LLC (Recruiting and Consulting). Includes job listings, employer and candidate forms, and ready-made page sections.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rc-recruiting
*/

/* ---------- small extras theme.json can't express ---------- */
html { scroll-behavior: smooth; }
:where(a) { text-underline-offset: .18em; }
img { height: auto; }

/* sticky header */
.rc-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent) !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .rc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rc-header { top: 46px; } }
.rc-logo img, .rc-logo svg { display: block; height: 44px; width: auto; }

/* eyebrow label */
.rc-eyebrow { display: inline-flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.rc-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; }

/* hero */
.rc-hero { position: relative; overflow: hidden; }
.rc-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent) 0%, transparent 65%); pointer-events: none; }
.rc-hero > * { position: relative; z-index: 1; }
.rc-hero-card { box-shadow: 0 30px 60px -20px rgba(8, 20, 38, .45); }

/* cards */
.rc-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; height: 100%; }
.rc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(18, 38, 63, .35); border-color: var(--wp--preset--color--accent) !important; }
.rc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--primary); }
.rc-icon svg { width: 26px; height: 26px; }
.rc-step-num { font-family: var(--wp--preset--font-family--heading); font-size: 2.6rem; line-height: 1; color: var(--wp--preset--color--accent); }
.rc-stat strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; color: var(--wp--preset--color--accent); }
.rc-check-list { list-style: none; padding-left: 0 !important; }
.rc-check-list li { position: relative; padding-left: 1.9em; margin-bottom: .7em; }
.rc-check-list li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312263F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/68% no-repeat; }

/* details / FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.1rem 0; }
.wp-block-details summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: 1.08rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--accent); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: .7rem; color: var(--wp--preset--color--muted); }

/* forms */
.rc-form { display: grid; gap: 1rem; }
.rc-form .rc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .rc-form .rc-row { grid-template-columns: 1fr; } }
.rc-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.rc-form input[type=text], .rc-form input[type=email], .rc-form input[type=tel], .rc-form input[type=password], .rc-form input[type=url], .rc-form select, .rc-form textarea, .rc-form input[type=file] { width: 100%; box-sizing: border-box; padding: .8rem .95rem; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; font: inherit; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.rc-form textarea { min-height: 140px; resize: vertical; }
.rc-form input:focus, .rc-form select:focus, .rc-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent); border-color: var(--wp--preset--color--accent); }
.rc-form .rc-hp { position: absolute; left: -9999px; }
.rc-form button { justify-self: start; border: 0; cursor: pointer; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary); font-weight: 700; padding: .95rem 1.8rem; border-radius: 999px; font: inherit; font-weight: 700; }
.rc-form button:hover { background: var(--wp--preset--color--primary); color: #fff; }
.rc-form .rc-note { font-size: .82rem; color: var(--wp--preset--color--muted); }
.rc-alert { padding: 1rem 1.2rem; border-radius: 12px; font-weight: 600; margin-bottom: 1rem; }
.rc-alert.ok { background: #E7F6EC; color: #145A2E; }
.rc-alert.err { background: #FDECEC; color: #8A1C1C; }

/* jobs */
.rc-job-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.rc-job-meta li { background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--primary); border-radius: 999px; padding: .2rem .75rem; font-size: .82rem; font-weight: 600; }
.rc-jobs .wp-block-post { border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 1.5rem; background: var(--wp--preset--color--base); }

/* footer */
.rc-footer a { color: inherit; text-decoration: none; opacity: .85; }
.rc-footer a:hover { opacity: 1; color: var(--wp--preset--color--accent); }
.rc-footer .wp-block-navigation__container { gap: .55rem !important; }

/* buttons outline variant on dark bg */
.is-style-outline > .wp-block-button__link { border-width: 2px; }

@media (max-width: 680px) { .rc-header-cta { display: none !important; } }
@media (max-width: 380px) { .rc-header .has-heading-font-family + p { display: none; } }

/* industry chips */
.rc-chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; max-width: 980px; }
.rc-chips li { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: .7rem 1.25rem; font-weight: 600; }
.rc-chips li:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
.rc-eyebrow.has-text-align-center { display: flex; justify-content: center; }

/* ---------- accounts / portals ---------- */
.rc-portal { max-width: 1100px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0; display: grid; gap: 1.5rem; }
.rc-panel { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 10px 30px -22px rgba(18,38,63,.35); }
.rc-panel h2 { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 .6rem; }
.rc-panel h3 { margin: 0 0 1rem; }
.rc-auth { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .rc-auth { grid-template-columns: 1fr; } }
.rc-inline { display: flex !important; gap: .55rem; align-items: center; font-weight: 500 !important; }
.rc-inline input { width: auto; margin: 0; }
.rc-switch { text-align: center; }
.rc-btn { display: inline-block; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary) !important; font-weight: 700; padding: .8rem 1.5rem; border-radius: 999px; text-decoration: none !important; }
.rc-btn:hover { background: var(--wp--preset--color--primary); color: #fff !important; }
.rc-link { font-weight: 600; }
.rc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1000px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0; }
@media (max-width: 760px) { .rc-choice { grid-template-columns: 1fr; } }
.rc-choice-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none !important; color: inherit !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.rc-choice-card:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--accent); box-shadow: 0 18px 40px -18px rgba(18,38,63,.35); }
.rc-choice-card p { color: var(--wp--preset--color--muted); flex: 1; }
.rc-choice-card .rc-btn { align-self: flex-start; }
.rc-dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.rc-dash-head h2 { margin: .3rem 0 0; }
.rc-dash-actions { display: flex; gap: 1.2rem; align-items: center; }
.rc-dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .rc-dash-grid { grid-template-columns: 1fr; } }
.rc-list { list-style: none; padding: 0; margin: 0; }
.rc-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.rc-list li:last-child { border-bottom: 0; }
.rc-list small { color: var(--wp--preset--color--muted); white-space: nowrap; }
.rc-status { font-style: normal; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; margin-left: .4rem; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); }
.rc-status-publish { background: #E7F6EC; color: #145A2E; }
.rc-status-pending { background: var(--wp--preset--color--accent-soft); color: #7A5410; }
.rc-apply-box { display: grid; gap: .8rem; max-width: 640px; }
.rc-job-company { font-weight: 700; color: var(--wp--preset--color--muted); margin-top: .3rem; }
