/**
 * Arizona Family Therapy - Custom Styles
 * Supplements theme.json block styles
 */

/* ============================================
   Gold accent bar (top of header)
   ============================================ */
.aft-gold-bar {
	height: 13px;
	background-color: var(--wp--preset--color--accent);
	width: 100%;
}

/* ============================================
   Header area
   ============================================ */
.aft-header-inner {
	display: flex;
	align-items: stretch;
	max-width: 900px;
	margin: 0 auto;
}

.aft-header-inner .wp-block-image {
	margin: 0;
}

/* Site logo: fill the full column area */
.aft-header-inner .wp-block-site-logo {
	margin: 0;
	height: 161px;
}

.aft-header-inner .wp-block-site-logo a,
.aft-header-inner .wp-block-site-logo img {
	display: block;
	width: 100%;
	height: 161px;
	object-fit: fill;
	margin: 0;
	padding: 0;
}

.aft-header-inner .wp-block-image img {
	display: block;
	height: 161px;
	object-fit: cover;
}

/* Dynamic header featured image (injected by PHP) */
.aft-featured-image-col {
	overflow: hidden;
}

.aft-header-featured-image {
	width: 100%;
	height: 161px;
	overflow: hidden;
	line-height: 0;
}

.aft-header-featured-image img.aft-header-img {
	display: block;
	width: 100%;
	height: 161px;
	object-fit: cover;
	object-position: center center;
	margin: 0;
	padding: 0;
}

/* ============================================
   Navigation bar
   ============================================ */
.aft-nav-bar {
	background-color: var(--wp--preset--color--primary);
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.aft-nav-bar .wp-block-navigation {
	justify-content: center;
}

.aft-nav-bar .wp-block-navigation a {
	color: var(--wp--preset--color--white) !important;
	font-size: 12px;
	font-family: Verdana, Geneva, sans-serif;
	text-decoration: none;
	padding: 4px 17px;
	transition: color 0.2s ease;
}

.aft-nav-bar .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent) !important;
}

/* ============================================
   Content area with sidebar layout
   ============================================ */
.aft-content-area {
	background-color: #fffdfa;
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
}

/* The columns container must stretch equally */
.aft-content-area > .wp-block-columns {
	align-items: stretch;
}

/* Sidebar column: background fills entire height to touch page background */
.aft-sidebar-col {
	background-color: var(--wp--preset--color--sidebar);
}

.aft-content-area .wp-block-columns > .aft-sidebar-col {
	margin-left: 20px;
	margin-top: 20px;
}

/* Sidebar styling */
.aft-sidebar {
	background-color: var(--wp--preset--color--sidebar);
	padding: 20px 25px;
}

.aft-sidebar p,
.aft-sidebar h3,
.aft-sidebar h4 {
	color: var(--wp--preset--color--primary-dark);
}

/* Main content column */
.aft-main-content {
	padding: 20px 50px;
}

.aft-main-content p {
	color: var(--wp--preset--color--primary-dark);
	font-family: Verdana, Geneva, sans-serif;
	font-size: 12px;
}

/* Post title: override WordPress .has-text-color !important */
.aft-main-content .wp-block-post-title,
.aft-main-content .wp-block-post-title.has-text-color,
.aft-content-area .wp-block-post-title,
.aft-content-area .wp-block-post-title.has-text-color {
	color: #ca9c00 !important;
	font-family: 'Ephesis', cursive !important;
}

/* ============================================
   Footer
   ============================================ */
.aft-footer {
	text-align: center;
	padding: 15px 0;
}

.aft-footer p,
.aft-footer p.has-text-color {
	color: #ffffff !important;
	font-weight: 700;
	font-size: 12px;
}

/* ============================================
   Contact info block
   ============================================ */
.aft-contact-info {
	text-align: center;
	margin-top: 40px;
}

.aft-contact-info p {
	color: var(--wp--preset--color--text-light);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.8;
}

.aft-contact-info a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	font-weight: 700;
}

.aft-contact-info a:hover {
	color: var(--wp--preset--color--accent-light);
}

/* H3 styling */
h3,
h3.has-text-color,
.wp-block-heading:where(h3) {
	color: #e9d580 !important;
	font-size: 16px;
}

/* ============================================
   Empty paragraphs: preserve as line breaks
   ============================================ */
p:empty::before,
.wp-block-post-content p:empty::before,
.editor-styles-wrapper p:empty::before {
	content: '\00a0';
}

/* ============================================
   Utility classes
   ============================================ */
.has-sidebar-background-color {
	background-color: var(--wp--preset--color--sidebar);
}

.has-plum-background-color {
	background-color: var(--wp--preset--color--primary);
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 782px) {
	.aft-header-inner {
		flex-direction: column;
	}

	.aft-header-inner .wp-block-image img {
		width: 100%;
		height: auto;
	}

	.aft-header-featured-image,
	.aft-header-featured-image img.aft-header-img {
		height: auto;
	}

	.aft-content-area .wp-block-columns {
		flex-direction: column;
	}

	.aft-sidebar-col {
		margin-left: 0;
	}

	.aft-sidebar {
		order: -1;
	}

	.aft-main-content {
		padding: 20px;
	}
}
