/*
Theme Name: CheckCraft
Theme URI: https://checkcraft.uk
Author: AAIRO Ltd
Description: Draft theme for CheckCraft (Check a Brother) - a members-only directory where verified Freemasons find and review tradespeople. Includes the trade listings, reviews with star ratings, members-only access, registration with Lodge Secretary confirmation, and encrypted Grand Lodge certificate storage.
Version: 0.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: checkcraft
*/

:root {
	--cc-navy: #14213d;
	--cc-navy-2: #1f3160;
	--cc-gold: #c9a227;
	--cc-cream: #faf7f0;
	--cc-ink: #1d1d1f;
	--cc-muted: #5f6368;
	--cc-line: #e3ded2;
	--cc-green: #2e7d4f;
	--cc-red: #b3261e;
	--cc-radius: 10px;
	--cc-max: 1120px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--cc-ink);
	background: var(--cc-cream);
}

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; color: var(--cc-navy); line-height: 1.25; }
h1 { font-size: 2.3rem; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
a { color: var(--cc-navy-2); }
a:hover { color: var(--cc-gold); }
img { max-width: 100%; height: auto; }

.cc-wrap { max-width: var(--cc-max); margin: 0 auto; padding: 0 20px; }

/* Header */
.cc-header { background: var(--cc-navy); color: #fff; }
.cc-header .cc-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.cc-brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; padding: 10px 0; }
.cc-brand:hover { color: #fff; }
.cc-brand-name { font-family: Georgia, serif; font-size: 1.6rem; font-weight: bold; letter-spacing: .5px; }
.cc-brand-name span { color: var(--cc-gold); }
.cc-brand-tag { font-size: .85rem; color: #d9d4c4; font-style: italic; }
.cc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.cc-nav a { color: #fff; text-decoration: none; font-size: .95rem; }
.cc-nav a:hover { color: var(--cc-gold); }
.cc-nav .cc-btn { color: var(--cc-navy); }

/* Buttons */
.cc-btn, button.cc-btn, input[type=submit].cc-btn {
	display: inline-block; background: var(--cc-gold); color: var(--cc-navy); border: 0; border-radius: 6px;
	padding: 10px 18px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.cc-btn:hover { background: #dbb53a; color: var(--cc-navy); }
.cc-btn-outline { background: transparent; border: 2px solid var(--cc-gold); color: var(--cc-gold); }
.cc-btn-outline:hover { background: var(--cc-gold); color: var(--cc-navy); }
.cc-btn-danger { background: var(--cc-red); color: #fff; }
.cc-btn-danger:hover { background: #8f1d17; color: #fff; }

/* Hero */
.cc-hero { background: linear-gradient(160deg, var(--cc-navy) 0%, var(--cc-navy-2) 100%); color: #fff; padding: 70px 0 80px; text-align: center; }
.cc-hero h1 { color: #fff; font-size: 2.8rem; }
.cc-hero h1 em { color: var(--cc-gold); font-style: normal; }
.cc-hero p { font-size: 1.2rem; color: #e6e2d6; max-width: 680px; margin: 0 auto 28px; }
.cc-hero .cc-btn { margin: 6px; }

/* Search */
.cc-search { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 960px; margin: 0 auto; }
.cc-search select, .cc-search input[type=text] {
	padding: 13px 14px; border-radius: 6px; border: 1px solid var(--cc-line); font-size: 1rem; min-width: 200px; flex: 1;
}
.cc-search button { padding: 13px 26px; }

/* Main */
.cc-main { padding: 40px 0 60px; }
.cc-card { background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 24px; margin-bottom: 20px; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cc-steps .cc-card h3 { margin-top: 0; }
.cc-step-num { display: inline-block; width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 50%; background: var(--cc-gold); color: var(--cc-navy); font-weight: bold; margin-bottom: 8px; }
.cc-notice { background: #fff8e1; border-left: 4px solid var(--cc-gold); padding: 14px 18px; border-radius: 6px; margin: 18px 0; }
.cc-notice-error { background: #fdecea; border-left-color: var(--cc-red); }
.cc-notice-ok { background: #e8f5ec; border-left-color: var(--cc-green); }

/* Trade cards */
.cc-trade-card { display: flex; gap: 18px; align-items: flex-start; }
.cc-trade-card .cc-thumb { width: 96px; height: 96px; border-radius: 8px; background: var(--cc-line); flex: 0 0 96px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 2rem; color: var(--cc-navy); }
.cc-trade-card .cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-trade-card h3 { margin: 0 0 4px; }
.cc-meta { color: var(--cc-muted); font-size: .92rem; }
.cc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.cc-badge { font-size: .78rem; padding: 3px 9px; border-radius: 20px; background: #eef1f7; color: var(--cc-navy); font-weight: 600; }
.cc-badge-verified { background: #e8f5ec; color: var(--cc-green); }
.cc-badge-featured { background: var(--cc-gold); color: var(--cc-navy); }
.cc-badge-warn { background: #fdecea; color: var(--cc-red); }

/* Stars */
.cc-stars { color: var(--cc-gold); letter-spacing: 2px; font-size: 1.05rem; }
.cc-stars .cc-off { color: #d6d0bf; }
.cc-rating-line { display: flex; gap: 8px; align-items: center; }

/* Profile */
.cc-profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cc-profile-head .cc-thumb { width: 120px; height: 120px; flex-basis: 120px; }
.cc-facts { width: 100%; border-collapse: collapse; }
.cc-facts th, .cc-facts td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--cc-line); vertical-align: top; }
.cc-facts th { width: 38%; color: var(--cc-muted); font-weight: 600; }
.cc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cc-gallery img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Reviews */
.cc-review { border-top: 1px solid var(--cc-line); padding: 16px 0; }
.cc-review:first-child { border-top: 0; }
.cc-review-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cc-review .cc-report { font-size: .82rem; color: var(--cc-muted); }
.cc-review .children { list-style: none; margin: 10px 0 0 20px; padding: 10px 14px; background: var(--cc-cream); border-radius: 6px; }
.commentlist, .cc-reviews { list-style: none; padding: 0; margin: 0; }

/* Forms */
.cc-form label { display: block; font-weight: 600; margin: 14px 0 4px; }
.cc-form .cc-hint { font-weight: normal; color: var(--cc-muted); font-size: .88rem; }
.cc-form input[type=text], .cc-form input[type=email], .cc-form input[type=tel], .cc-form input[type=password],
.cc-form input[type=number], .cc-form input[type=date], .cc-form input[type=url], .cc-form select, .cc-form textarea,
.comment-form input[type=text], .comment-form textarea, .comment-form select, .comment-form input[type=date] {
	width: 100%; padding: 10px 12px; border: 1px solid var(--cc-line); border-radius: 6px; font-size: 1rem; font-family: inherit; background: #fff;
}
.cc-form fieldset { border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 10px 20px 20px; margin: 20px 0; background: #fff; }
.cc-form legend { font-family: Georgia, serif; font-size: 1.15rem; color: var(--cc-navy); padding: 0 8px; }
.cc-form .cc-check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
.cc-form .cc-check input { margin-top: 6px; }
.cc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.cc-type-switch { display: flex; gap: 12px; margin: 10px 0 20px; flex-wrap: wrap; }
.cc-type-switch label { flex: 1; min-width: 220px; background: #fff; border: 2px solid var(--cc-line); border-radius: var(--cc-radius); padding: 16px; cursor: pointer; margin: 0; }
.cc-type-switch input { margin-right: 8px; }
.cc-trade-only { display: none; }
.cc-is-trade .cc-trade-only { display: block; }

/* Content */
.cc-content { background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 30px 36px; }
.cc-content > :first-child { margin-top: 0; }
.cc-pagination { margin: 24px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.cc-pagination .page-numbers { padding: 6px 12px; background: #fff; border: 1px solid var(--cc-line); border-radius: 6px; text-decoration: none; }
.cc-pagination .current { background: var(--cc-navy); color: #fff; }

/* Samples and public preview */
.cc-sample-banner { background: repeating-linear-gradient(45deg, #fff4d6, #fff4d6 12px, #ffecb8 12px, #ffecb8 24px); border: 2px dashed #c98a00; color: #5a3d00; font-weight: 700; padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; text-align: center; letter-spacing: .2px; }
.cc-badge-sample { background: #c98a00; color: #fff; letter-spacing: .4px; }
.cc-search-locked select, .cc-search-locked input { background: #eef0f4; color: #7a7f87; cursor: not-allowed; }
.cc-search .cc-miles { min-width: 180px; flex: 0 1 200px; }
.cc-search-note { font-size: .95rem; color: #e6e2d6; margin: 12px 0 0; }
.cc-search-note a { color: var(--cc-gold); }
.cc-main .cc-search-note { color: var(--cc-muted); }
.cc-small { font-size: .8rem; opacity: .85; }
.cc-distance { font-weight: 600; color: var(--cc-navy-2); }
.cc-samples { margin: 10px 0 36px; }
.cc-demo-form { border-top: 1px solid var(--cc-line); margin-top: 18px; padding-top: 6px; opacity: .85; }
.cc-demo-form fieldset { border: 0; padding: 0; margin: 0; }
.cc-demo-form .cc-badge { vertical-align: middle; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.cc-gallery-item { display: block; font-weight: normal; }
.cc-gallery-item span { display: block; font-size: .85rem; margin-top: 4px; }
.cc-content table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
.cc-content th, .cc-content td { border: 1px solid var(--cc-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.cc-content thead th { background: var(--cc-cream); color: var(--cc-navy); }

/* Footer */
.cc-footer { background: var(--cc-navy); color: #cfcab9; padding: 36px 0; font-size: .9rem; }
.cc-footer a { color: #fff; }
.cc-footer ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 18px; flex-wrap: wrap; }
.cc-footer .cc-independent { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; margin-top: 10px; }

@media (max-width: 700px) {
	.cc-hero h1 { font-size: 2rem; }
	.cc-two { grid-template-columns: 1fr; }
	.cc-content { padding: 22px; }
	.cc-trade-card { flex-direction: column; }
}
