/*
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: 7.1
Requires PHP: 7.2
Version: 1.5
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
*/

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * 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;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}


/* === Legal Wills Direct brand v2 (17 Oct 2026, direction approved by Martyn 08:36) ===
   60 cream / 30 deep green / 10 amber. Serif headings. Warm, established, 55+ audience. */
:root {
	--lwd-green: #1e4d3b;
	--lwd-green-dark: #123527;
	--lwd-cream: #faf8f3;
	--lwd-amber: #e19a2e;
	--lwd-amber-dark: #c67f1f;
	--lwd-ink: #2b3530;
	--lwd-tint: #e9f0ea;
	--lwd-border: #d5ded6;
	--lwd-serif: 'Iowan Old Style', Palatino, Georgia, 'Times New Roman', serif;
}
body { background: var(--lwd-cream) !important; color: var(--lwd-ink); }
h1, h2, h3, h4 { color: var(--lwd-green) !important; font-family: var(--lwd-serif); letter-spacing: -0.01em; }
a { color: var(--lwd-green); }
a:hover { color: var(--lwd-green-dark); }

/* Wordmark: document-with-tick mark + serif title */
.wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--lwd-serif);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--lwd-green) !important;
	text-decoration: none !important;
	letter-spacing: -0.01em;
}
.wp-block-site-title a::before {
	content: "";
	width: 30px;
	height: 36px;
	flex: none;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2234%22%20height%3D%2240%22%20viewBox%3D%220%200%2034%2040%22%3E%3Cpath%20d%3D%22M6%203%20h16%20l7%207%20v27%20a3%203%200%200%201%20-3%203%20H6%20a3%203%200%200%201%20-3%20-3%20V6%20a3%203%200%200%201%203%20-3%20Z%22%20fill%3D%22none%22%20stroke%3D%22%231e4d3b%22%20stroke-width%3D%222.4%22%2F%3E%3Cpath%20d%3D%22M22%203%20v7%20h7%22%20fill%3D%22none%22%20stroke%3D%22%231e4d3b%22%20stroke-width%3D%222.2%22%2F%3E%3Cline%20x1%3D%229%22%20y1%3D%2216%22%20x2%3D%2223%22%20y2%3D%2216%22%20stroke%3D%22%231e4d3b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%3Cline%20x1%3D%229%22%20y1%3D%2221%22%20x2%3D%2219%22%20y2%3D%2221%22%20stroke%3D%22%231e4d3b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M10%2030%20l4%204%20l9%20-10%22%20fill%3D%22none%22%20stroke%3D%22%23e19a2e%22%20stroke-width%3D%222.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}
header.wp-block-template-part { border-bottom: 2px solid var(--lwd-green); }
.wp-block-navigation a { color: var(--lwd-ink) !important; }
.wp-block-navigation a:hover { color: var(--lwd-green) !important; }

.lwd-button, a.lwd-button {
	display: inline-block;
	background: var(--lwd-amber);
	color: #16382a !important;
	padding: 14px 26px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none !important;
	margin: 8px 0;
}
.lwd-button:hover { background: var(--lwd-amber-dark); color: #16382a !important; }
.wpcf7-submit, input.wpcf7-submit {
	background: var(--lwd-amber);
	color: #16382a;
	border: none;
	padding: 14px 26px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	width: auto;
}
.wpcf7-submit:hover { background: var(--lwd-amber-dark); }
.wpcf7-form label { font-weight: 600; color: var(--lwd-ink); }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form input[type=tel], .wpcf7-form select, .wpcf7-form textarea {
	border: 1px solid var(--lwd-border);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 1rem;
	background: #ffffff;
}
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label { font-weight: 400; }
footer, .wp-block-template-part:has(footer) { background: var(--lwd-tint); }

/* Step icons (how-it-works, homepage steps) */
.lwd-step-icon { width: 30px; height: 30px; vertical-align: -7px; margin-right: 10px; stroke: var(--lwd-green); }

/* LWD mobile form overflow fix: CF7 renders size=40 inputs which overflow small screens */
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form input[type=tel], .wpcf7-form select, .wpcf7-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
