/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/* Active menu item styles */
.wp-block-navigation .wp-block-navigation-item.current-menu-item>.wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--base);
	background-color: #1D1A52;
	/* Updated Brand Color */
	font-weight: 700;
	border-radius: 9999px;
	/* Pill shape */
	padding: 0.5rem 1.25rem;
	transition: all 0.3s ease;
}

/* Sticky Header */
.wp-site-blocks>header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	/* Account for admin bar */
	width: 100%;
	z-index: 1000;
	background-color: var(--wp--preset--color--base);
	/* Ensure it's opaque */
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	/* Drop shadow */
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Text Overflow Fix */
* {
	overflow-wrap: break-word;
}

/* UX Improvements: Smooth Transitions */
a,
button,
.wp-block-button__link {
	transition: all 0.3s ease-in-out;
}

/* Responsive Fixes */
.wp-block-group,
.wp-block-column,
.wp-block-cover,
.wp-block-media-text__content {
	max-width: 100%;
	overflow-wrap: break-word;
	/* Ensure clear wrapping */
}

/* Ensure images and content don't force overflow */
.wp-block-image img,
.wp-block-media-text img {
	max-width: 100%;
	height: auto;
}

/* Prevent horizontal scroll on mobile */
html,
body {
	overflow-x: hidden;
}

/* Contact Form Styles */
/* Contact Section Container - Apply this class to the parent block in Editor */
.contact-section-container {
	background-color: #f8e15d31;
	padding: 3rem;
	/* Increased padding for the larger container */
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Center content and button properly */
.info-section-container {
	text-align: center;
	font-size: 1.2rem;
	place-self: center;
	font-family: var(--wp--preset--font-family--base);
	font-weight: 600;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Force buttons container to center even if block settings say left */
.info-section-container .wp-block-buttons {
	display: flex;
	justify-content: center !important;
	width: 100%;
}

.info-section-container .wp-block-button {
	margin-top: 1rem;
}

/* Reset specific form container styles so they don't double up */
.uagb-forms__outer-wrap,
.uagb-forms-main-form {
	background-color: transparent;
	box-shadow: none;
	border: none;
	padding: 0;
}

.uagb-forms-main-form label.uagb-forms-main-label {
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 0.5rem;
}

.uagb-forms-main-form input:not([type="submit"]),
.uagb-forms-main-form textarea {
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 0.75rem;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.uagb-forms-main-form input:not([type="submit"]):focus,
.uagb-forms-main-form textarea:focus {
	border-color: var(--wp--preset--color--base);
	outline: none;
}

/* About Page & General Layout Improvements */

/* Improve text readability on Cover blocks (Hero) */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover p {
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Section Spacing */
.entry-content>* {
	margin-bottom: 2rem;
}

.entry-content h2 {
	margin-top: 3rem;
	margin-bottom: 1.5rem;
	/*color: var(--wp--preset--color--base);*/
	/* Use brand color */
}

.uagb-heading-text {
	margin-top: 4rem;
}


/* Gallery Improvements */
.wp-block-gallery .wp-block-image img,
.uagb-image-gallery figure img {
	border-radius: 8px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.wp-block-gallery .wp-block-image img:hover,
.uagb-image-gallery figure img:hover {
	transform: translateY(-2px);
}