/* =========================================================================
   Custom Classifieds UK: Content pages (Blog, About, FAQ, Contact)
   Restyle per STYLE-GUIDE.md. Square, no shadows, tokens only.
   Header/footer come from the site chrome (front-page.css) and are untouched.
   ========================================================================= */

.cc-page {
	--gold: #a59055;
	--gold-hover: #c9b47a;
	--gold-hover-dark: #8a7743;
	--ink: #171610;
	--page: #f6f4ef;
	--card: #fff;
	--hair: #e2ded4;
	--body: #5c584e;
	--muted: #8a857a;
	--dark: #171610;
	--dark-field: #26241e;
	--dark-text: #f0ede6;
	--dark-body: #b5b1a8;
	--dark-muted: #8d8a83;
	--dark-border: #6b675e;
	--tint: #faf7ef;
	--error: #b0432e;

	background: var(--page);
	color: var(--ink);
	font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.6;
}
.cc-page *,
.cc-page *::before,
.cc-page *::after { box-sizing: border-box; }
.cc-page img { max-width: 100%; height: auto; }
.cc-page a { color: var(--gold); text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.cc-page a:hover { color: var(--gold-hover-dark); }
.cc-page ::selection { background: var(--gold); color: #000; }

/* Display type */
.cc-page-title,
.cc-h2,
.cc-h3,
.cc-h4,
.cc-btn,
.cc-post-title,
.cc-faq-q,
.cc-chip {
	font-family: 'Bebas Neue', 'bebas-neue', 'Barlow', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	margin: 0;
}
.cc-gold { color: var(--gold); }

.cc-kicker {
	font-family: 'Barlow', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--gold);
}

/* ===================== HERO BAND ===================== */
.cc-page-hero {
	background: var(--dark);
	padding: 56px;
}
.cc-page-hero-inner {
	max-width: 1440px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.cc-page-title {
	color: #fff;
	font-size: 64px;
	line-height: 0.94;
	letter-spacing: 0.5px;
}
.cc-page-hero-desc {
	margin: 0;
	max-width: 640px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--dark-body);
}

/* ===================== CONTENT AREA ===================== */
.cc-page-body {
	max-width: 1440px;
	margin: 0 auto;
	padding: 60px 56px;
}
.cc-section { margin-bottom: 56px; }
.cc-section:last-child { margin-bottom: 0; }
.cc-measure { max-width: 720px; }

/* =========================================================================
   LEGAL DOCUMENTS (Privacy Policy, Terms & Conditions)
   ========================================================================= */
.cc-legal-body { max-width: 820px; margin: 0 auto; color: var(--body); font-size: 16px; line-height: 1.7; }
.cc-legal-body > *:first-child { margin-top: 0; }
.cc-legal-updated { font-size: 14px; color: var(--muted); margin: 0 0 30px; }
.cc-legal-body h2 {
	font-family: 'Bebas Neue', 'bebas-neue', sans-serif; font-weight: 400;
	font-size: 30px; letter-spacing: 0.5px; color: var(--ink); line-height: 1.05;
	margin: 44px 0 16px; padding-top: 26px; border-top: 1px solid var(--hair);
}
.cc-legal-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 34px; }
.cc-legal-body h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.cc-legal-body p { margin: 0 0 16px; }
.cc-legal-body ul, .cc-legal-body ol { margin: 0 0 18px; padding-left: 22px; }
.cc-legal-body li { margin-bottom: 9px; }
.cc-legal-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.cc-legal-body a:hover { color: var(--gold-hover-dark); }
.cc-legal-body strong { color: var(--ink); }
.cc-legal-tablewrap { overflow-x: auto; margin: 0 0 22px; }
.cc-legal-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cc-legal-body th, .cc-legal-body td {
	border: 1px solid var(--hair); padding: 11px 14px; text-align: left; vertical-align: top; line-height: 1.5;
}
.cc-legal-body th { background: var(--tint); color: var(--ink); font-weight: 700; }

.cc-h2 { font-size: 44px; color: var(--ink); line-height: 1; margin-bottom: 22px; }
.cc-h3 { font-size: 25px; color: var(--ink); }
.cc-h4 { font-size: 22px; color: var(--ink); }
.cc-page-body p { color: var(--body); }
.cc-page-body p + p { margin-top: 1em; }

/* ===================== BUTTONS ===================== */
.cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	letter-spacing: 1.5px;
	padding: 14px 30px;
	border: 1px solid transparent;
	cursor: pointer;
}
/* a.-qualified so the button text colours beat the global ".cc-page a { color:
   gold }" rule (otherwise the gold button renders gold-on-gold). */
.cc-page a.cc-btn--primary { background: var(--ink); color: #fff; }
.cc-page a.cc-btn--primary:hover { background: var(--gold); color: var(--ink); }
.cc-page a.cc-btn--gold { background: var(--gold); color: var(--ink); }
.cc-page a.cc-btn--gold:hover { background: var(--gold-hover-dark); color: #fff; }
.cc-page a.cc-btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.cc-page a.cc-btn--secondary:hover { background: var(--ink); color: #fff; }

/* ===================== CARDS ===================== */
.cc-card {
	background: var(--card);
	border: 1px solid var(--hair);
	padding: 24px;
}
a.cc-card:hover { border-color: var(--gold); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.cc-about-intro { max-width: 720px; }
.cc-about-intro .cc-h2 { margin-bottom: 20px; }
.cc-about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.cc-about-grid img { width: 100%; display: block; border: 1px solid var(--hair); }
.cc-about-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin-top: 28px;
}
.cc-about-cards .cc-h3 { margin-bottom: 10px; color: var(--ink); }
.cc-about-cards .cc-card p { font-size: 15px; }

/* ---- About (redesign): value props, pricing, partner, CTAs ---- */
.cc-about-intro .cc-kicker { margin-bottom: 12px; }

.cc-about-props {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.cc-about-props .cc-card { display: flex; flex-direction: column; }
.cc-prop-stat {
	font-family: 'Bebas Neue', 'bebas-neue', sans-serif;
	font-size: 40px;
	line-height: 1;
	color: var(--gold);
	margin-bottom: 10px;
}
.cc-about-props .cc-h3 { font-size: 21px; margin-bottom: 8px; }
.cc-about-props .cc-card p { font-size: 15px; }

/* Pricing tiers */
.cc-about-pricing-head { max-width: 720px; margin-bottom: 30px; }
.cc-about-lead { font-size: 18px; color: var(--body); margin-top: 6px; }
.cc-price-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.cc-price-card {
	background: var(--card);
	border: 1px solid var(--hair);
	padding: 30px 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
}
.cc-price-card.is-rec { border: 2px solid var(--gold); background: var(--tint); }
.cc-price-tag {
	position: absolute; top: -12px; left: 24px;
	background: var(--gold); color: var(--ink);
	font-family: 'Barlow', sans-serif; font-weight: 700;
	font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
	padding: 4px 12px;
}
.cc-price-name {
	font-family: 'Bebas Neue', 'bebas-neue', sans-serif;
	font-size: 26px; letter-spacing: 1px; color: var(--ink); text-transform: uppercase;
}
.cc-price-card.is-rec .cc-price-name { color: var(--gold); }
.cc-price-amount { font-size: 44px; font-weight: 700; color: var(--ink); line-height: 1; }
.cc-price-amount .woocommerce-Price-amount { font-weight: 700; }
.cc-price-features { color: var(--muted); font-size: 15px; }
.cc-price-features ul { margin: 0; padding: 0; list-style: none; }
.cc-price-features li { padding: 5px 0 5px 20px; position: relative; }
.cc-price-features li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; background: var(--gold); }
.cc-price-card.is-rec .cc-price-features { color: var(--body); }

/* Action rows + a ghost button for dark bands */
.cc-about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cc-about-actions--center { justify-content: center; margin-top: 26px; }
.cc-page a.cc-btn--ghost { background: transparent; border-color: var(--dark-border); color: var(--dark-text); }
.cc-page a.cc-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* James Cargo shipping-partner band */
.cc-about-partner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 44px;
	align-items: center;
	background: var(--tint);
	border: 1px solid var(--hair);
	padding: 40px 44px;
}
.cc-about-partner-text .cc-kicker { margin-bottom: 12px; }
.cc-about-partner-text .cc-h2 { margin-bottom: 16px; }
.cc-about-partner-text .cc-btn { margin-top: 22px; }
.cc-about-partner-logo { display: flex; justify-content: center; }
.cc-about-partner-logo img { max-width: 100%; display: block; }

/* =========================================================================
   404
   ========================================================================= */
.cc-404 { background: var(--dark); padding: 100px 20px 110px; text-align: center; }
.cc-404-inner { max-width: 640px; margin: 0 auto; }
.cc-404-code {
	font-family: 'Bebas Neue', 'bebas-neue', sans-serif; font-weight: 400;
	font-size: 120px; line-height: 0.9; color: var(--gold); letter-spacing: 2px;
}
.cc-404-title { font-family: 'Bebas Neue', 'bebas-neue', sans-serif; font-weight: 400; font-size: 48px; color: #fff; margin: 10px 0 16px; }
.cc-404-sub { font-size: 17px; line-height: 1.6; color: var(--dark-body); margin: 0 auto 32px; max-width: 480px; }
.cc-404-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cc-404-list { display: inline-block; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--gold); }
.cc-404-list:hover { color: var(--gold-hover); }

/* =========================================================================
   FAQ  (native <details> accordion)
   ========================================================================= */
.cc-faq {
	max-width: 900px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cc-faq-item {
	background: var(--card);
	border: 1px solid var(--hair);
}
.cc-faq-q {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	font-size: 22px;
	letter-spacing: 0.5px;
	color: var(--ink);
}
.cc-faq-q::-webkit-details-marker { display: none; }
.cc-faq-q::after {
	content: "+";
	font-family: 'Barlow', sans-serif;
	font-weight: 400;
	font-size: 26px;
	line-height: 1;
	color: var(--gold);
	flex: 0 0 auto;
}
.cc-faq-item[open] > .cc-faq-q { color: var(--gold); }
.cc-faq-item[open] > .cc-faq-q::after { content: "\2212"; } /* minus */
.cc-faq-a {
	padding: 0 24px 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--body);
}
.cc-faq-a a { font-weight: 600; }
.cc-faq-a a:hover { text-decoration: underline; }

/* Dark CTA band at the end of the FAQ */
.cc-cta-band {
	background: var(--dark);
	padding: 56px;
	text-align: center;
}
.cc-cta-band .cc-h2 { color: #fff; margin-bottom: 20px; }
.cc-cta-band .cc-h2 .cc-gold { color: var(--gold); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.cc-contact-grid {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 40px;
	align-items: start;
}
.cc-contact-form {
	background: var(--card);
	border: 1px solid var(--hair);
	padding: 28px;
}
.cc-contact-info {
	background: var(--dark);
	color: var(--dark-body);
	padding: 32px;
}
.cc-contact-info .cc-h3 { color: #fff; margin-bottom: 8px; }
.cc-contact-info a { color: var(--gold); font-weight: 600; }
.cc-contact-info a:hover { color: var(--gold-hover); }
.cc-contact-info .cc-info-block { margin-bottom: 24px; }
.cc-contact-info .cc-info-block:last-child { margin-bottom: 0; }
.cc-contact-info .cc-info-label {
	font-family: 'Barlow', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--dark-muted);
	margin-bottom: 6px;
}
.cc-contact-info img { margin-top: 8px; }

/* =========================================================================
   FORMS  (Contact Form 7 + comment forms): style guide forms spec
   ========================================================================= */
.cc-page label,
.cc-contact-form label {
	display: block;
	font-family: 'Barlow', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 6px;
}
.cc-page .wpcf7-form p { margin: 0 0 18px; color: var(--ink); }
.cc-page input[type="text"],
.cc-page input[type="email"],
.cc-page input[type="tel"],
.cc-page input[type="url"],
.cc-page input[type="number"],
.cc-page input[type="date"],
.cc-page select,
.cc-page textarea {
	width: 100%;
	background: var(--card);
	border: 1px solid var(--hair);
	border-radius: 0;
	padding: 14px 16px;
	font-family: 'Barlow', sans-serif;
	font-size: 15px;
	color: var(--ink);
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
}
.cc-page textarea { min-height: 160px; resize: vertical; }
.cc-page input:focus,
.cc-page select:focus,
.cc-page textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: none;
}
.cc-page ::placeholder { color: var(--muted); opacity: 1; }

/* CF7 submit -> gold button */
.cc-page .wpcf7-submit,
.cc-page input[type="submit"] {
	width: auto;
	background: var(--gold);
	color: var(--ink);
	border: 0;
	border-radius: 0;
	font-family: 'Bebas Neue', 'bebas-neue', sans-serif;
	font-size: 20px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 14px 34px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.cc-page .wpcf7-submit:hover,
.cc-page input[type="submit"]:hover { background: var(--gold-hover-dark); color: #fff; }

/* CF7 validation */
.cc-page .wpcf7-not-valid { border-color: var(--error); }
.cc-page .wpcf7-not-valid-tip {
	color: var(--error);
	font-size: 13px;
	font-weight: 600;
	margin-top: 6px;
}
.cc-page .wpcf7-response-output {
	border-radius: 0;
	border-width: 1px;
	margin: 18px 0 0;
	padding: 12px 16px;
	font-size: 14px;
}

/* =========================================================================
   BLOG (archive) : home.php
   ========================================================================= */
.cc-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.cc-post-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--hair);
	color: var(--ink);
}
.cc-post-card:hover { border-color: var(--gold); }
.cc-post-card-img {
	display: block;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: #ddd7cc;
}
.cc-post-card-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}
.cc-post-meta {
	font-family: 'Barlow', sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--gold);
}
.cc-post-title { font-size: 25px; color: var(--ink); line-height: 1.05; }
.cc-post-card:hover .cc-post-title { color: var(--gold); }
.cc-post-excerpt {
	font-size: 15px;
	color: var(--body);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cc-readmore {
	margin-top: auto;
	font-family: 'Barlow', sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: var(--gold);
}
.cc-post-card:hover .cc-readmore { color: var(--gold-hover-dark); }

/* Pagination */
.cc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
}
.cc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid var(--hair);
	background: var(--card);
	color: var(--ink);
	font-family: 'Bebas Neue', 'bebas-neue', sans-serif;
	font-size: 18px;
	letter-spacing: 1px;
}
.cc-pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.cc-pagination .page-numbers.current {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ink);
}
.cc-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* =========================================================================
   AUTH  (Login / Register)  — wraps the wp-cardealer [wp_cardealer_login]
   and [wp_cardealer_register] shortcode forms.
   ========================================================================= */
.cc-page--auth .cc-page-body {
	max-width: 520px;
}
.cc-auth-card {
	background: var(--card);
	border: 1px solid var(--hair);
	padding: 32px;
}
.cc-auth-card h3 {
	font-family: 'Bebas Neue', 'bebas-neue', sans-serif;
	text-transform: uppercase;
	font-size: 25px;
	color: var(--ink);
	margin: 0 0 16px;
}
.cc-auth-card .form-group { margin-bottom: 18px; }
.cc-auth-card .required-field { color: var(--gold); margin-left: 2px; }

/* Field labels (override the block/uppercase treatment for inline checkbox). */
.cc-auth-card label[for="user-remember-field"] {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	font-size: 14px;
	color: var(--body);
	margin: 0;
}
.cc-auth-card label[for="user-remember-field"] input { width: auto; }

/* Submit buttons: full width, gold, square. Covers the login form's
   input[type=submit].btn-theme AND the register form's button.btn-second. */
.cc-auth-card input[type="submit"],
.cc-auth-card button[type="submit"],
.cc-auth-card .btn-theme,
.cc-auth-card .btn-second {
	width: 100%;
	background: var(--gold);
	color: var(--ink);
	border: 0;
	border-radius: 0;
	font-family: 'Bebas Neue', 'bebas-neue', sans-serif;
	font-weight: 400;
	font-size: 20px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 14px 30px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.cc-auth-card input[type="submit"]:hover,
.cc-auth-card button[type="submit"]:hover,
.cc-auth-card .btn-theme:hover,
.cc-auth-card .btn-second:hover { background: var(--gold-hover-dark); color: #fff; }

/* Cancel (lost-password) = secondary style. */
.cc-auth-card .btn-cancel,
.cc-auth-card .btn-danger {
	width: 100%;
	background: transparent;
	border: 1px solid var(--ink);
	color: var(--ink);
	font-family: 'Bebas Neue', 'bebas-neue', sans-serif;
	font-size: 20px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 13px 30px;
	margin-top: 10px;
	cursor: pointer;
}
.cc-auth-card .btn-cancel:hover,
.cc-auth-card .btn-danger:hover { background: var(--ink); color: #fff; }

/* Lost password / back links */
.cc-auth-card .back-link { font-weight: 600; }
.cc-auth-card .lostpassword-link { margin-top: 14px; }
.cc-auth-card .row { display: flex; flex-wrap: wrap; align-items: center; }
.cc-auth-card .row .col-sm-6 { flex: 1 1 50%; }
.cc-auth-card .row .col-sm-6:last-child { text-align: right; }
.cc-auth-card .row p { margin: 0; }

/* The lost-password sub-form is revealed by the plugin's JS; hide until then. */
.cc-auth-card #forgot-password-form-wrapper { display: none; }

/* "New here / already a member" switch line under the card form. */
.cc-auth-alt {
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--hair);
	text-align: center;
	font-size: 14px;
	color: var(--muted);
}
.cc-auth-alt a { font-weight: 600; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
	.cc-about-cards { grid-template-columns: 1fr; }
	.cc-blog-grid { grid-template-columns: repeat(2, 1fr); }
	.cc-contact-grid { grid-template-columns: 1fr; }
	.cc-about-grid { grid-template-columns: 1fr; gap: 28px; }
	.cc-about-props { grid-template-columns: 1fr 1fr; }
	.cc-about-partner { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
	.cc-about-partner-logo { justify-content: flex-start; max-width: 380px; }
}

@media (max-width: 767px) {
	.cc-page { font-size: 16px; }
	.cc-page-hero { padding: 36px 20px; }
	.cc-page-title { font-size: 44px; }
	.cc-page-body { padding: 36px 20px; }
	.cc-h2 { font-size: 34px; }
	.cc-section { margin-bottom: 40px; }
	.cc-blog-grid { grid-template-columns: 1fr; }
	.cc-cta-band { padding: 36px 20px; }
	.cc-about-props { grid-template-columns: 1fr; }
	.cc-price-grid { grid-template-columns: 1fr; }
	.cc-price-card { padding: 24px 20px; }
	.cc-price-card.is-rec { order: -1; }
	.cc-about-actions { flex-direction: column; }
	.cc-about-actions .cc-btn { width: 100%; }
	.cc-faq-q { font-size: 20px; padding: 16px 18px; }
	.cc-contact-form,
	.cc-contact-info,
	.cc-auth-card { padding: 22px; }
	.cc-404 { padding: 64px 20px 72px; }
	.cc-404-code { font-size: 84px; }
	.cc-404-title { font-size: 36px; }
	.cc-404-sub { font-size: 16px; }
	.cc-404-actions { flex-direction: column; }
	.cc-404-actions .cc-btn { width: 100%; }
}
