/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ============================================================
   LOGO
   ============================================================ */

.site-logo img.header-image,
.site-logo .is-logo-image {
	height: 60px !important;
	width: auto !important;
	max-height: 60px !important;
}

/* Hide site title text when logo image is present */
.wp-custom-logo .main-title {
	display: none;
}

/* Stop nav items wrapping onto two lines */
.main-navigation .main-nav ul li a {
	white-space: nowrap;
}

/* ============================================================
   HOMEPAGE — hide the "Home" page-title H1
   ============================================================ */

.home .entry-title {
	display: none;
}

/* ============================================================
   CONTENT: SECTION SEPARATORS & FAQ STYLING
   ============================================================ */

/* HR-style separator above every H2 in post/page content */
.entry-content h2 {
	border-top: 1px solid #e2e2e8;
	margin-top: 2.5em;
	padding-top: 1.75em;
}

/* First H2 gets slightly less top space — it follows the intro paragraph */
.entry-content > h2:first-of-type {
	margin-top: 2em;
}

/* FAQ question styling — all H3s in content */
.entry-content h3 {
	background: #f7f8f9;
	border-left: 3px solid #1e73be;
	padding: 0.6em 1em;
	border-radius: 0 4px 4px 0;
	margin-top: 1.75em;
	margin-bottom: 0.5em;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.4;
}

/* Paragraph immediately after a FAQ h3 */
.entry-content h3 + p {
	margin-top: 0;
	padding-left: 1em;
	border-left: 3px solid #e2e2e8;
	color: #575760;
}

/* Comparison tables — scrollable wrapper on mobile */
.tmm-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1.5em 0;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
	min-width: 480px;
	margin: 0;
	font-size: 0.9em;
}

.entry-content th {
	background: #1a1a2a;
	color: #ffffff;
	padding: 0.7em 1em;
	text-align: left;
	font-weight: 600;
}

.entry-content td {
	padding: 0.65em 1em;
	border-bottom: 1px solid #e8e8ed;
	vertical-align: top;
}

.entry-content tr:nth-child(even) td {
	background: #f7f8f9;
}

.entry-content tr:hover td {
	background: #f0f0f5;
}

.entry-content td:first-child {
	font-weight: 600;
	color: #222222;
	white-space: nowrap;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.tmm-contact-form {
	max-width: 620px;
	margin: 2em 0;
}

.tmm-form-row {
	margin-bottom: 1.25em;
	display: flex;
	flex-direction: column;
	gap: 0.4em;
}

.tmm-form-row label {
	font-size: 0.85em;
	font-weight: 600;
	color: #222222;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tmm-contact-form input[type="text"],
.tmm-contact-form input[type="email"],
.tmm-contact-form textarea {
	width: 100%;
	padding: 0.75em 1em;
	border: 1px solid #d0d0da;
	border-radius: 5px;
	font-size: 0.95em;
	font-family: inherit;
	background: #fafafa;
	color: #222222;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.tmm-contact-form input:focus,
.tmm-contact-form textarea:focus {
	outline: none;
	border-color: #1e73be;
	box-shadow: 0 0 0 3px rgba( 30, 115, 190, 0.12 );
	background: #ffffff;
}

.tmm-contact-form textarea {
	resize: vertical;
	min-height: 140px;
}

.tmm-form-submit {
	background: #1a1a2a;
	color: #ffffff;
	border: none;
	border-radius: 5px;
	padding: 0.8em 2em;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	margin-top: 0.5em;
}

.tmm-form-submit:hover {
	background: #1e73be;
	color: #ffffff;
}

.tmm-form-notice {
	padding: 0.9em 1.2em;
	border-radius: 5px;
	margin-bottom: 1.5em;
	font-size: 0.92em;
	font-weight: 500;
}

.tmm-form-success {
	background: #edf7ed;
	border: 1px solid #b2d8b2;
	color: #2d6a2d;
}

.tmm-form-error {
	background: #fdf0ef;
	border: 1px solid #e8b4b0;
	color: #8b2a22;
}

/* ============================================================
   CLUSTER: SPOKE LIST (pillar down-links)
   ============================================================ */

.cca-spoke-list {
	margin: 2.5em 0 1.5em;
	padding: 1.5em;
	background: #f7f8f9;
	border-radius: 8px;
	border: 1px solid #e8e8ed;
}

.cca-spoke-heading {
	margin: 0 0 1em;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #575760;
}

.cca-spoke-cards {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 0.75em;
	margin-bottom: 1em;
}

.cca-spoke-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e2e2e8;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	color: #222222;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cca-spoke-card:hover {
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.09 );
	transform: translateY( -2px );
	color: #222222;
}

.cca-spoke-card img.cca-card-img {
	width: 100%;
	height: 130px;
	object-fit: cover;
	display: block;
	margin: 0;
}

.cca-card-img--placeholder {
	width: 100%;
	height: 130px;
	background: #e8e8ed;
}

.cca-card-title {
	display: block;
	padding: 0.65em 0.85em 0.85em;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.35;
}

.cca-spoke-archive {
	display: inline-block;
	font-size: 0.85em;
	font-weight: 500;
	color: #1e73be;
	text-decoration: none;
}

.cca-spoke-archive:hover {
	text-decoration: underline;
}

/* ============================================================
   CLUSTER: PILLAR UP-LINK (spoke pages)
   ============================================================ */

/* ============================================================
   FOOTER
   ============================================================ */

.tmm-footer {
	background: #1a1a2a;
	color: #b2b2c8;
	padding: 3.5em 0 2em;
}

.tmm-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2em;
	display: grid;
	grid-template-columns: 2fr 1fr 1.5fr;
	gap: 3em;
}

.tmm-footer-col h3 {
	color: #ffffff;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1em;
}

/* Brand column */
.tmm-footer-logo {
	display: inline-block;
	color: #ffffff;
	font-size: 1.15em;
	font-weight: 700;
	text-decoration: none;
	margin-bottom: 0.75em;
}

.tmm-footer-logo:hover {
	color: #ffffff;
}

.tmm-footer-brand p {
	font-size: 0.9em;
	line-height: 1.6;
	margin: 0 0 1.25em;
	color: #b2b2c8;
}

.tmm-footer-contact-link {
	font-size: 0.85em;
	font-weight: 600;
	color: #7eb3e8;
	text-decoration: none;
}

.tmm-footer-contact-link:hover {
	color: #ffffff;
	text-decoration: none;
}

/* Topics column */
.tmm-footer-topics ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tmm-footer-topics li {
	margin-bottom: 0.5em;
}

.tmm-footer-topics a {
	color: #b2b2c8;
	text-decoration: none;
	font-size: 0.9em;
	transition: color 0.15s;
}

.tmm-footer-topics a:hover {
	color: #ffffff;
}

/* Signup column */
.tmm-footer-signup p {
	font-size: 0.88em;
	line-height: 1.5;
	margin: 0 0 1.25em;
	color: #b2b2c8;
}

.tmm-signup-form {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}

.tmm-signup-form input[type="email"] {
	background: #2a2a3e;
	border: 1px solid #3a3a54;
	border-radius: 4px;
	color: #ffffff;
	padding: 0.65em 0.9em;
	font-size: 0.88em;
	width: 100%;
}

.tmm-signup-form input[type="email"]::placeholder {
	color: #6b6b88;
}

.tmm-signup-form input[type="email"]:focus {
	outline: none;
	border-color: #7eb3e8;
	background: #2a2a3e;
	color: #ffffff;
}

.tmm-signup-form button {
	background: #1e73be;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 0.65em 1em;
	font-size: 0.88em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.tmm-signup-form button:hover {
	background: #1a62a3;
	color: #ffffff;
}

.tmm-subscribed-notice {
	color: #7eb3e8;
	font-size: 1em;
	font-weight: 600;
	margin: 0;
}

/* Bottom credit bar */
.site-footer .site-info {
	background: #13131f;
	border-top: 1px solid #2a2a3e;
}

.site-footer .site-info .copyright-bar {
	color: #6b6b88;
	font-size: 0.8em;
	padding: 1em 0;
}

.site-footer .site-info a {
	color: #6b6b88;
}

/* Responsive */
@media ( max-width: 768px ) {
	.tmm-footer-inner {
		grid-template-columns: 1fr;
		gap: 2em;
	}
}

/* ============================================================
   CLUSTER: PILLAR UP-LINK (spoke pages)
   ============================================================ */

.cca-pillar-link {
	margin: 2em 0 0;
	padding: 0.9em 1.2em;
	background: #f7f8f9;
	border-left: 3px solid #1e73be;
	border-radius: 0 6px 6px 0;
}

.cca-pillar-link p {
	margin: 0;
	font-size: 0.9em;
}

.cca-pillar-link a {
	font-weight: 600;
}
