/*
Theme Name: ECS Emmaus
Theme URI: https://ecsaust.com.au
Description: Block child theme of Twenty Twenty-Five for ECS Ministries – Queensland Inc (Emmaus Bible Correspondence School). Emmaus blue and green, Source Serif 4 headings, Source Sans 3 body.
Author: VT Technology
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ecs-emmaus
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.entry-content a:not(.wp-block-button__link):not(.wp-element-button) { text-decoration: underline; text-decoration-color: rgba(12,72,122,.35); text-underline-offset: 3px; }
.entry-content a:not(.wp-block-button__link):not(.wp-element-button):hover { color: var(--wp--preset--color--green); }
h1, h2, h3, h4 { letter-spacing: -0.01em; }

/* Buttons */
.wp-block-button__link, .wp-element-button {
  border-radius: 4px; font-weight: 700; letter-spacing: .01em; padding: .8em 1.7em;
  transition: background-color .15s, color .15s, border-color .15s;
}
.wp-block-button.is-style-ecs-white .wp-block-button__link { background: #fff; color: var(--wp--preset--color--blue); border: 2px solid #fff; }
.wp-block-button.is-style-ecs-white .wp-block-button__link:hover { background: #eaf1f7; }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--blue); color: #fff; }
.wp-block-button__link:hover { filter: brightness(.94); }

/* ---------- Top bar ---------- */
.ecs-topbar { font-size: .875rem; }
.ecs-topbar a { color: #d6e4f0; }
.ecs-topbar a:hover { color: #fff; }
.ecs-topbar .wp-block-paragraph, .ecs-topbar p { margin: 0; }
.ecs-topbar svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
@media (max-width: 781px) {
  .ecs-topbar .ecs-topbar-right { display: none; }
  .ecs-topbar .ecs-topbar-left { justify-content: center; }
  .ecs-topbar .ecs-topbar-left > * { display: none; }
  .ecs-topbar .ecs-topbar-left > *:first-child { display: block; }
}

/* ---------- Header ---------- */
.ecs-header { border-bottom: 1px solid #e4e9ee; }
.ecs-brand { display: flex; align-items: center; gap: 14px; }
.ecs-brand img { width: 62px; height: auto; }
.ecs-brand .wp-block-site-title { font-family: var(--wp--preset--font-family--serif); font-size: 1.65rem; font-weight: 600; line-height: 1; margin: 0; }
.ecs-brand .wp-block-site-title a { color: var(--wp--preset--color--blue); }
.ecs-brand .wp-block-site-tagline { white-space: nowrap; font-size: .8rem; color: #5a6b7b; letter-spacing: .04em; text-transform: uppercase; margin: 4px 0 0; }
.ecs-nav { --ecs-nav-gap: 22px; }
.ecs-nav .wp-block-navigation__container { gap: var(--ecs-nav-gap) !important; }
.ecs-nav .wp-block-navigation-item__content { font-weight: 600; font-size: 1rem; color: var(--wp--preset--color--ink); }
.ecs-nav .wp-block-navigation-item__content:hover, .ecs-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--blue); }
.ecs-nav .wp-block-navigation__submenu-container { border: 1px solid #dfe5eb; border-radius: 6px; padding: 6px 0; box-shadow: 0 10px 30px rgba(12,72,122,.12); }
.ecs-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-weight: 500; font-size: .95rem; padding: .45em 1.1em; }
.ecs-cart .wc-block-mini-cart__button { border: 2px solid var(--wp--preset--color--blue); border-radius: 4px; color: var(--wp--preset--color--blue); padding: 0 12px; height: 42px; }
.ecs-cart .wc-block-mini-cart__badge { background: var(--wp--preset--color--green); color: #fff; border: 0; }
@media (max-width: 781px) {
  .ecs-brand img { width: 48px; }
  .ecs-brand .wp-block-site-title { font-size: 1.3rem; }
  .ecs-brand .wp-block-site-tagline { display: none; }
}

/* ---------- Hero ---------- */
.ecs-hero { color: #fff; }
.ecs-hero .ecs-kicker { color: #9fd4a6; }
.ecs-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.08; }
.ecs-hero p { color: #d6e4f0; }
.ecs-hero-image { min-height: 420px; background: linear-gradient(160deg, #1c5d93 0%, #0c487a 60%, #083357 100%); }
.ecs-hero-image img { object-fit: cover; }
.ecs-kicker { font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--green); }

/* ---------- Cards ---------- */
.ecs-card { background: #fff; border: 1px solid #dfe5eb; border-radius: 6px; padding: 28px !important; transition: box-shadow .15s, transform .15s; height: 100%; }
.ecs-card:hover { box-shadow: 0 14px 30px rgba(12,72,122,.12); transform: translateY(-2px); }
.ecs-card h3 { font-size: 1.35rem; color: var(--wp--preset--color--blue); margin: 0 0 .5em; }
.ecs-card p { color: #4c5b6a; margin: 0 0 1em; }
.ecs-card .ecs-more { font-weight: 700; color: var(--wp--preset--color--blue); margin-top: auto; }
.ecs-card .ecs-icon { color: var(--wp--preset--color--green); margin-bottom: 14px; }
.ecs-card .ecs-icon svg { width: 40px; height: 40px; }

/* ---------- Panels / bands ---------- */
.ecs-panel { background: var(--wp--preset--color--panel); border-radius: 8px; }
.ecs-band { color: #fff; }
.ecs-band h2, .ecs-band h3 { color: #fff; }
.ecs-band p { color: #d6e4f0; }
.ecs-band .ecs-kicker { color: #9fd4a6; }
.ecs-coupon { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-weight: 700; color: var(--wp--preset--color--blue); background: #fff; border: 1px solid #dfe5eb; padding: 3px 8px; border-radius: 4px; }
.ecs-cover { box-shadow: 0 14px 30px rgba(12,72,122,.18); border-radius: 4px; }
.ecs-cover img { border-radius: 4px; }

/* ---------- Footer ---------- */
.ecs-footer { color: #c5ced7; }
.ecs-footer a { color: #c5ced7; }
.ecs-footer a:hover { color: #fff; }
.ecs-footer h3, .ecs-footer .ecs-footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 .75em; font-family: var(--wp--preset--font-family--sans); }
.ecs-footer .wp-block-site-title { font-family: var(--wp--preset--font-family--serif); font-size: 1.4rem; margin: 0 0 .5em; }
.ecs-footer .wp-block-site-title a { color: #fff; }
.ecs-footer p { margin: 0 0 .5em; font-size: .95rem; line-height: 1.6; }
.ecs-footer ul { list-style: none; padding: 0; margin: 0; }
.ecs-footer li { margin: 0 0 .55em; font-size: .95rem; }
.ecs-footer .ecs-footer-bottom { border-top: 1px solid #3a4450; padding-top: 22px; font-size: .875rem; color: #8a97a4; }
.ecs-footer .ecs-footer-bottom a { color: #8a97a4; }
.ecs-footer .ecs-acnc { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: #8a97a4; }
.ecs-footer .ecs-acnc img { width: 48px; height: 48px; }

/* ---------- Page content ---------- */
.ecs-page-title { color: var(--wp--preset--color--blue); }
.entry-content > * + h2, .entry-content > * + h3 { margin-top: 1.6em; }
.entry-content h2 { color: var(--wp--preset--color--blue); }
.wp-block-table td, .wp-block-table th { border-color: #dfe5eb; }
.wp-block-separator { border-color: #e4e9ee; }

/* ---------- WooCommerce ---------- */
.wc-block-grid__product-title, .wp-block-post-title a { color: var(--wp--preset--color--ink); font-weight: 700; }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { color: var(--wp--preset--color--blue); font-weight: 700; }
.wc-block-components-product-image img, .wp-block-woocommerce-product-image img { border: 1px solid #dfe5eb; border-radius: 4px; }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: .875rem; color: #6b7c8c; }
.wc-block-product-categories-list, .wc-block-product-categories { font-weight: 600; }
.wp-block-woocommerce-product-categories li a, .wc-block-product-categories-list-item a { display: inline-block; padding: 6px 14px; border: 1px solid #cfd8e0; border-radius: 999px; margin: 0 6px 8px 0; color: var(--wp--preset--color--ink); font-size: .9rem; }
.wp-block-woocommerce-product-categories li a:hover, .wc-block-product-categories-list-item a:hover { background: var(--wp--preset--color--blue); color: #fff; border-color: var(--wp--preset--color--blue); }
.wc-block-components-button, .wc-block-components-checkout-place-order-button, .add_to_cart_button, .single_add_to_cart_button, .wc-block-components-product-button .wp-block-button__link { background: var(--wp--preset--color--green) !important; color: #fff !important; border-radius: 4px; font-weight: 700; }
.wc-block-components-button:hover, .add_to_cart_button:hover, .single_add_to_cart_button:hover { background: #35953f !important; }
.wc-block-components-notice-banner.is-success { border-color: var(--wp--preset--color--green); }
.woocommerce-store-notice { background: var(--wp--preset--color--blue); }
.wc-block-components-product-sale-badge, .onsale { background: var(--wp--preset--color--green); color: #fff; }

/* ---------- WPForms ---------- */
.wpforms-form button[type=submit] { background: var(--wp--preset--color--green) !important; border: 0 !important; color: #fff !important; border-radius: 4px !important; font-weight: 700 !important; }
.wpforms-form input[type=text], .wpforms-form input[type=email], .wpforms-form input[type=tel], .wpforms-form select, .wpforms-form textarea { border-color: #cfd8e0 !important; border-radius: 4px !important; }

/* ---------- Facebook feed (Smash Balloon) ---------- */
#cff, .cff-wrapper { font-family: inherit; }

/* Full-width sections keep the root side padding */
.alignfull.has-global-padding { padding-left: var(--wp--style--root--padding-left) !important; padding-right: var(--wp--style--root--padding-right) !important; }
.wp-site-blocks > .wp-block-group.has-global-padding { padding-left: var(--wp--style--root--padding-left) !important; padding-right: var(--wp--style--root--padding-right) !important; }
