/*
Theme Name: Good Way
Theme URI: https://goodwaygardens.com
Author: Morrell Printing Solutions
Description: Block theme recreating the Good Way Gardens look and feel: forest green, sun gold and sage palette, serif display headings, square-cornered buttons, full-bleed photo hero. Includes styling for WooCommerce, The Events Calendar and Fluent Forms.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goodway
*/

/* Most styling lives in theme.json. Only what theme.json cannot express is here. */

html { scroll-behavior: smooth; }

.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }

h2, .is-style-capitalize { text-transform: capitalize; }

/* Hero */
.gwg-hero { min-height: 640px; }
.gwg-hero .wp-block-cover__inner-container { max-width: 760px; margin-left: 0; padding: var(--wp--preset--spacing--60); }
.gwg-hero h1 { font-weight: 400; }

/* Buttons: square, 1px border, matches the live site */
.wp-block-button__link, .wp-element-button, .button, button, input[type=submit] { border-radius: 0; }
.is-style-outline > .wp-block-button__link { border: 1px solid currentColor; }

/* Feature trio cards */
.gwg-card img { width: 100%; height: 260px; object-fit: cover; }

/* Sage callout */
.gwg-sage p { margin-block: 1.2em; }

/* WooCommerce */
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce input.button, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--wp--preset--color--forest); color: #fff; border: 1px solid #000; border-radius: 0; font-weight: 400; padding: .7em 1.4em;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
  background: var(--wp--preset--color--sun); color: #000;
}
.woocommerce span.onsale { background: var(--wp--preset--color--sun); color: #000; border-radius: 0; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--wp--preset--color--brick); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--wp--preset--color--forest); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--wp--preset--color--forest); }

/* The Events Calendar: use theme fonts and colors */
.tribe-common .tribe-common-h1, .tribe-common .tribe-common-h2, .tribe-common .tribe-common-h3,
.tribe-common .tribe-events-calendar-list__event-title { font-family: var(--wp--preset--font-family--display); }
.tribe-common .tribe-common-c-btn { border-radius: 0; background: var(--wp--preset--color--forest); }
.tribe-common .tribe-common-c-btn:hover { background: var(--wp--preset--color--sun); color: #000; }

/* Fluent Forms */
.fluentform .ff-btn-submit { border-radius: 0 !important; background: var(--wp--preset--color--forest) !important; }
.fluentform .ff-el-form-control { border-radius: 0; border-color: #000; }

@media (max-width: 781px) {
  .gwg-hero { min-height: 520px; }
  .gwg-hero .wp-block-cover__inner-container { padding: var(--wp--preset--spacing--40); }
}
