/*!
Theme Name:   Josephine Child Theme
Template:     josephine
Version:      1.0.0

Theme URI:    https://github.com/webmandesign/child-theme/
Author:       WebMan Design
Author URI:   https://www.webmandesign.eu/
License:      GPL-3.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-3.0-standalone.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

IMPORTANT:
Read the instructions in https://github.com/webmandesign/child-theme/blob/master/readme.md

Child theme CSS styles:
*/

/* =========================================================
   GP PRACTICE — Complete design fix
   Dark borders, dark content, light theme, animations,
   tight spacing, form styling, navbar, hero, card grids.
   ========================================================= */

/* ---------- Base overrides: dark, readable content ---------- */
body {
	color: var(--wp--preset--color--contrast, #1c2b3a);
}
h1, h2, h3, h4, h5, h6 {
	color: var(--wp--preset--color--contrast-alt, #0b1a29) !important;
}
p, li {
	color: var(--wp--preset--color--contrast, #1c2b3a);
}

/* ---------- Tighter spacing (reduce excess whitespace) ---------- */
.wp-block-group {
	--wp--preset--spacing--content: 2.75rem !important;
}
.wp-block-columns {
	margin-top: 0.75rem !important;
	margin-bottom: 0.75rem !important;
}

/* ---------- Dark, visible borders everywhere ---------- */
.wp-block-column,
.wp-block-group.has-border-color,
details.wp-block-details,
.gpc-service-card,
.wp-block-table table {
	border-color: #a89ef0 !important;
}
.wp-block-column[style*="border"] {
	border-width: 2px !important;
}

/* ---------- Navbar: dropdown submenu + CTA button + hover animation ---------- */
.gpc-primary-nav .wp-block-navigation-item__content {
	padding: 0.55rem 0.85rem !important;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.gpc-primary-nav .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--primary-mixed);
	color: var(--wp--preset--color--primary) !important;
}
.gpc-primary-nav .wp-block-navigation-submenu__content {
	background: #fff;
	border: 2px solid #a89ef0;
	border-radius: 0.85rem;
	box-shadow: 0 12px 28px rgba(68,51,220,0.16);
	padding: 0.4rem;
}
.gpc-primary-nav .wp-block-navigation-submenu__content .wp-block-navigation-item__content {
	border-radius: 0.6rem;
}
.gpc-nav-cta .wp-block-navigation-item__content {
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	font-weight: 700;
	box-shadow: 0 4px 14px rgba(68,51,220,0.3);
}
.gpc-nav-cta .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--contrast-alt) !important;
	color: #fff !important;
	transform: translateY(-2px);
}

/* ---------- Hero (wp:cover) — readable text on any background ---------- */
.wp-block-cover.gpc-hero {
	min-height: 46vh !important;
}
.wp-block-cover.gpc-hero .wp-block-cover__background {
	background: linear-gradient(160deg, rgba(68,51,220,0.85), rgba(204,35,187,0.55));
}
.wp-block-cover.gpc-hero:not(.has-background-dim) .wp-block-cover__background {
	opacity: 1;
}
.wp-block-cover.gpc-hero h1,
.wp-block-cover.gpc-hero p {
	color: #fff !important;
}

/* ---------- Card grids: proper wrapping, no overflow, equal height, hover lift ---------- */
.wp-block-columns {
	flex-wrap: wrap !important;
}
.wp-block-columns > .wp-block-column {
	flex-grow: 1;
	min-width: 240px !important;
	transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.wp-block-columns > .wp-block-column[style*="border"]:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(68,51,220,0.16);
	border-color: var(--wp--preset--color--primary) !important;
}

/* Services shortcode grid — CSS Grid instead of flex percentages (fixes overflow) */
.gpc-services-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
	gap: 1.25rem !important;
}
.gpc-service-card {
	background: #fff;
	border: 2px solid #a89ef0;
	border-radius: 1rem;
	padding: 1.5rem;
	transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.gpc-service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(68,51,220,0.16);
	border-color: var(--wp--preset--color--primary);
}
.gpc-service-card__icon {
	font-size: 1.7rem;
	display: block;
	margin-bottom: 0.65rem;
}
.gpc-service-card h3 {
	margin: 0 0 0.5rem !important;
	font-size: 1.05rem !important;
}
.gpc-service-card p {
	margin: 0;
	font-size: 0.92rem;
}

/* ---------- FAQ (details/summary) styling ---------- */
details.wp-block-details {
	border-radius: 0.75rem;
	padding: 0.9rem 1.1rem;
	margin-bottom: 0.6rem;
	transition: background-color 0.2s ease;
}
details.wp-block-details:hover {
	background: var(--wp--preset--color--base-alt);
}
details.wp-block-details summary {
	font-weight: 700;
	cursor: pointer;
}

/* ---------- Team role text ---------- */
.gpc-team-role {
	font-size: 0.9rem;
}

/* =========================================================
   FORMS — the missing piece: our shortcode forms had zero
   styling until now (this is why they looked broken).
   ========================================================= */

.gpc-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

#gpc-appointment-form,
#gpc-contact-form,
.gpc-contact-form-wrap,
.gpc-form-wrap {
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border: 2px solid #a89ef0;
	border-radius: 1.25rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	box-shadow: 0 10px 30px rgba(68,51,220,0.10);
}

.gpc-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.25rem;
}

.gpc-field,
.gpc-form p {
	margin-bottom: 1.1rem;
}

.gpc-field label,
.gpc-form label {
	display: block;
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
	color: var(--wp--preset--color--contrast-alt);
}

.gpc-field input,
.gpc-field textarea,
.gpc-field select,
.gpc-form input,
.gpc-form textarea,
.gpc-form select {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 2px solid #a89ef0;
	border-radius: 0.65rem;
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--contrast);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gpc-field input:focus,
.gpc-field textarea:focus,
.gpc-field select:focus,
.gpc-form input:focus,
.gpc-form textarea:focus,
.gpc-form select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 4px var(--wp--preset--color--primary-mixed);
}

.gpc-form button[type="submit"],
.gpc-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	font-weight: 700;
	font-size: 1rem;
	padding: 0.85rem 2rem;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(68,51,220,0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	text-decoration: none;
}
.gpc-form button[type="submit"]:hover,
.gpc-btn-primary:hover {
	background: var(--wp--preset--color--contrast-alt);
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(68,51,220,0.38);
}
.gpc-form button[type="submit"]:active {
	transform: translateY(0) scale(0.97);
}

.gpc-form-notice {
	padding: 1rem 1.15rem;
	border-radius: 0.75rem;
	margin-bottom: 1.5rem;
	font-weight: 600;
	border: 2px solid;
}
.gpc-form-notice-success,
.gpc-form-notice--success {
	background: #e6f5ee;
	border-color: #9ed6bb;
	color: #12633f;
}
.gpc-form-notice-error,
.gpc-form-notice--error {
	background: #fdeceb;
	border-color: #e6a8a1;
	color: #a3231c;
}

.gpc-contact-notice-box,
.callout,
.callout-urgent,
.callout-info {
	padding: 1rem 1.2rem;
	border-radius: 0.75rem;
	margin-bottom: 1.5rem;
	border: 2px solid;
}
.gpc-contact-notice-box {
	background: var(--wp--preset--color--primary-mixed);
	border-color: #c7bff5;
}
.gpc-contact-notice-box strong {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--wp--preset--color--contrast-alt);
}

/* ---------- Buttons everywhere: consistent, animated ---------- */
.wp-block-button__link {
	transition: transform 0.2s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.2s ease, background-color 0.2s ease !important;
}
.wp-block-button__link:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(68,51,220,0.3);
}

/* ---------- Fade-in animation on load for main content ---------- */
@keyframes gpc-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}
.entry-content > *,
main .wp-block-group.alignfull {
	animation: gpc-fade-up 0.5s ease both;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* =========================================================
   RESPONSIVE — mobile fixes
   ========================================================= */
@media (max-width: 782px) {
	.gpc-form-grid {
		grid-template-columns: 1fr;
	}
	.wp-block-cover.gpc-hero {
		min-height: 34vh !important;
	}
	#gpc-appointment-form,
	#gpc-contact-form,
	.gpc-form-wrap,
	.gpc-contact-form-wrap {
		padding: 1.25rem;
		border-radius: 1rem;
	}
	.gpc-services-grid {
		grid-template-columns: 1fr !important;
	}
	.wp-block-columns > .wp-block-column {
		min-width: 100% !important;
	}
}
