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

/* Make navigation items look like tabs */
.folder-tabs .wp-block-navigation-item {
  margin: 0 2px;
}

.folder-tabs .wp-block-navigation-item__content {
  background-color: #444;
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px 5px 0 0; /* Rounded top corners like folder tabs */
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

/* Hover effect */
.folder-tabs .wp-block-navigation-item__content:hover {
  background-color: #e2e2e2;
  color: #000;
}

/* Optional: Active state */
.folder-tabs .wp-block-navigation-item__content[aria-current="page"] {
  background-color: #ffffff;
  color: #222;
  border-bottom: 2px solid transparent; /* Optional: create "open tab" effect */
  font-weight: bold;
}

/* Contact 7 styles */
/* Root variables for easy tweaks (like WPForms themes) */
:root {
  --primary-color: #007cba; /* Accent blue; change to your brand */
  --text-color: #333;
  --border-radius: 8px;
  --border-width: 1px;
  --spacing: 20px;
}

/* Form Container - Transparent to inherit group background */
.wpcf7 {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing);
  /* No background - inherits from Gutenberg group */
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Labels - Modern, smaller font */
.wpcf7 label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}

/* Input Fields & Textareas - Sleek borders, focus states */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px;
  margin-bottom: var(--spacing);
  border: var(--border-width) solid #ddd;
  border-radius: var(--border-radius);
  font-size: 16px;
  background: white; /* White fields contrast nicely against any group bg */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2); /* Glow like WPForms focus */
}

/* Submit Button - Bold, full-width with hover */
.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: #005a87; /* Darker shade on hover */
}

/* Checkboxes/Radio - Clean and spaced */
.wpcf7-list-item {
  display: block;
  margin-bottom: 10px;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  margin-right: 8px;
}

/* Success/Error Messages - Styled alerts */
.wpcf7-response-output {
  margin-top: var(--spacing);
  padding: 12px;
  border-radius: var(--border-radius);
  font-size: 14px;
}

.wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Mobile Responsiveness (WPForms-style) */
@media (max-width: 768px) {
  .wpcf7 {
    padding: 15px;
  }
  
  .wpcf7 input,
  .wpcf7 textarea {
    font-size: 18px; /* Larger touch targets */
  }
}
