/*
Theme Name: Ubuntu Doctor Coaching
Theme URI: https://ubuntudoctorcoaching.com
Author: Ubuntu Doctor Coaching LLC
Description: Custom obsidian, gold and ivory block theme for Ubuntu Doctor Coaching. Edit everything in Appearance > Editor.
Version: 1.1.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: udc
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--obsidian); }
img { height: auto; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* Eyebrow / kicker text */
.udc-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.78rem !important;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	margin-bottom: 0.75rem;
}

/* Thin gold rule under headings */
.udc-rule { width: 64px; height: 2px; background: var(--wp--preset--color--gold); border: 0; margin: 1.25rem 0 1.75rem; }
.has-text-align-center + .udc-rule, .udc-rule.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.udc-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(201,162,75,0.22); }
.admin-bar .udc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .udc-header { top: 46px; } }
.udc-header .wp-block-navigation a:hover,
.udc-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--gold); }
.udc-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--obsidian-soft) !important;
	border: 1px solid rgba(201,162,75,0.3) !important;
	padding: 0.5rem 0;
	min-width: 240px !important;
}
.udc-header .wp-block-navigation__submenu-container a { padding: 0.55rem 1.1rem !important; }
.udc-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--obsidian) !important; color: var(--wp--preset--color--ivory) !important; }
.udc-header .wp-block-site-logo img { max-height: 54px; width: auto; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1px solid currentColor; background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--obsidian); }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--wp--preset--color--gold-light); color: var(--wp--preset--color--obsidian); }

/* Text link with arrow */
.udc-link a, a.udc-link { color: var(--wp--preset--color--gold); font-weight: 600; text-decoration: none; }
.udc-link a:hover, a.udc-link:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.udc-card {
	border: 1px solid rgba(201,162,75,0.28);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
	height: 100%;
}
.udc-card:hover { border-color: var(--wp--preset--color--gold); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.45); }
.wp-block-column > .udc-card { height: 100%; }
.udc-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.udc-card--light { border-color: rgba(14,13,11,0.12); }

/* Numbered / gold-tick list */
ul.udc-ticks { list-style: none; padding-left: 0; }
ul.udc-ticks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.65rem; }
ul.udc-ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.9rem; height: 2px; background: var(--wp--preset--color--gold); }

/* Quote / testimonial */
.udc-quote { border-left: 2px solid var(--wp--preset--color--gold) !important; padding-left: 1.5rem !important; }
.udc-quote p { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.25rem; line-height: 1.5; font-style: italic; }
.udc-quote cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--gold); }

/* Hero */
.udc-hero .wp-block-cover__background { background: linear-gradient(100deg, rgba(14,13,11,0.94) 0%, rgba(14,13,11,0.8) 45%, rgba(14,13,11,0.35) 100%) !important; opacity: 1 !important; }
.udc-hero h1 { max-width: 15ch; }

/* Image framing */
.udc-frame img { box-shadow: 18px 18px 0 -1px var(--wp--preset--color--gold); }
@media (max-width: 781px) { .udc-frame img { box-shadow: 10px 10px 0 -1px var(--wp--preset--color--gold); } }

/* Price / detail tables */
.udc-details { border-top: 1px solid rgba(201,162,75,0.35); }
.udc-details > .wp-block-group { border-bottom: 1px solid rgba(201,162,75,0.35); padding: 0.9rem 0; }

/* Details/FAQ accordion */
.wp-block-details { border-bottom: 1px solid rgba(201,162,75,0.35); padding: 1.1rem 0; }
.wp-block-details summary { font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: -0.1em; color: var(--wp--preset--color--gold); font-size: 1.5rem; transition: transform .2s ease; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > *:not(summary) { margin-top: 0.9rem; }

/* Post cards (query loop) */
.udc-posts .wp-block-post { border-top: 1px solid rgba(201,162,75,0.4); padding-top: 1.25rem; }
.udc-posts .wp-block-post-title a { text-decoration: none; }
.udc-posts .wp-block-post-title a:hover { color: var(--wp--preset--color--gold); }

/* Footer */
.udc-footer a { text-decoration: none; }
.udc-footer a:hover { color: var(--wp--preset--color--gold) !important; }
.udc-footer .wp-block-navigation { gap: 0.55rem; }

/* Forms (Fluent Forms / WPForms / core) */
.udc-form input[type=text], .udc-form input[type=email], .udc-form input[type=tel], .udc-form select, .udc-form textarea,
.ff-el-form-control { border: 1px solid rgba(14,13,11,0.25) !important; border-radius: 0 !important; padding: 0.8rem 0.9rem !important; font-family: inherit !important; background: #fff !important; }
.ff-btn-submit { background: var(--wp--preset--color--obsidian) !important; color: var(--wp--preset--color--ivory) !important; border-radius: 0 !important; padding: 0.95rem 2rem !important; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem !important; font-weight: 600 !important; }
.ff-btn-submit:hover { background: var(--wp--preset--color--gold) !important; color: var(--wp--preset--color--obsidian) !important; }

/* Accessibility: visible focus */
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Fixes after first review ---------- */
/* Logo PNGs have generous padding: crop to the wordmark */
.udc-header .wp-block-site-logo img { width: 300px !important; height: 64px !important; max-height: none; object-fit: cover; object-position: center; }
.udc-footer .wp-block-site-logo img { width: 320px !important; height: 96px !important; object-fit: cover; object-position: left center; margin-left: -60px; }
@media (max-width: 600px) { .udc-header .wp-block-site-logo img { width: 210px !important; height: 52px !important; } }

/* Hero: line every child up on the same left edge as the site content */
.udc-hero .wp-block-cover__inner-container { max-width: 1200px; width: 100%; margin-left: auto !important; margin-right: auto !important; }
.udc-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; max-width: 760px; }
.udc-hero .wp-block-cover__inner-container > h1 { max-width: 15ch; }
.udc-hero .wp-block-cover__inner-container > .wp-block-buttons { max-width: none; }

/* Cookie banner buttons in brand colours */
[class*="cookieadmin"] button, [id*="cookieadmin"] button { border-radius: 0 !important; }
[class*="cookieadmin"] .cookieadmin_accept_btn, [id*="cookieadmin"] [class*="accept"] { background: #0E0D0B !important; border-color: #0E0D0B !important; color: #F7F2E8 !important; }

/* Card headings in body font, like the original */
.udc-card h3, .udc-card .wp-block-heading { font-family: var(--wp--preset--font-family--body); font-weight: 600; letter-spacing: 0; }
/* Podcast banner: show full wide artwork */
.udc-banner img { width: 100%; height: auto; aspect-ratio: auto !important; object-fit: contain !important; }
/* Smaller supporting image */
.udc-small img { max-width: 420px; margin-inline: auto; display: block; }
.udc-hero .wp-block-cover__inner-container > h1 { max-width: 22ch; }
.udc-banner { margin-bottom: 0; }
.udc-banner img { box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.udc-badge img { max-width:200px;margin:2rem auto 0;display:block; }