/*
Theme Name: Ecolive WaterWise
Theme URI: https://ecolive.in
Author: EcoLive Ventures Pvt. Ltd.
Author URI: https://ecolive.in
Description: Full marketing + blog theme for EcoLive Ventures (water conservation, 4R framework, ESG). Manrope typography, deep-teal/green palette, glass header, editorial long-form blog. Tailwind-driven, pixel-matched to the EcoLive site design.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecolive-organic
Tags: blog, business, editorial, sustainability, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* =========================================================
   EcoLive WaterWise — custom classes Tailwind (CDN) doesn't ship.
   Tailwind utilities + the inline tailwind.config (palette) are
   loaded in header.php; this file only carries the extras.
   ========================================================= */

body { font-family: 'Manrope', sans-serif; letter-spacing: -0.01em; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.bg-glass { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

.btn-primary-gradient { background: linear-gradient(135deg, #045e80 0%, #0077a8 100%); }

.text-gradient {
  background: linear-gradient(135deg, #045e80 0%, #0077a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ghost-border { border: 1px solid rgba(192, 200, 195, 0.2); }

/* =========================================================
   Editorial article body — single.php renders the_content()
   inside .article-body so WordPress posts inherit this design.
   ========================================================= */
.article-body { font-size: 1.125rem; line-height: 1.8; color: #181c1b; }
.article-body > * + * { margin-top: 1.5rem; }
.article-body h2 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 4rem; margin-bottom: 1.5rem; line-height: 1.15; }
.article-body h3 { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 3rem; margin-bottom: 1rem; line-height: 1.25; }
.article-body p { color: #3f4844; }
.article-body a { color: #045e80; text-decoration: underline; text-decoration-color: rgba(4,94,128,0.3); text-underline-offset: 4px; }
.article-body strong { color: #181c1b; font-weight: 700; }
.article-body blockquote, .article-body .wp-block-quote { font-size: 1.5rem; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; color: #045e80; padding: 2rem 2.5rem; background: #eef5f4; border-radius: 1rem; font-style: italic; border: 0; margin: 0; }
.article-body ul, .article-body ol { padding-left: 1.5rem; color: #3f4844; }
.article-body ul li { list-style: disc; margin-bottom: 0.5rem; }
.article-body ol li { list-style: decimal; margin-bottom: 0.5rem; }
.article-body img, .article-body figure, .article-body .wp-block-image img { border-radius: 1rem; overflow: hidden; max-width: 100%; height: auto; }
.article-body figcaption { text-align: center; font-size: 0.875rem; color: #6f7975; margin-top: 0.75rem; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f4f2; padding: 0.15rem 0.4rem; border-radius: 0.4rem; font-size: 0.95em; }
.article-body pre, .article-body .wp-block-code { background: #045e80; color: #c9e8f5; padding: 1.5rem; border-radius: 1rem; overflow-x: auto; }
.article-body pre code { background: transparent; color: inherit; padding: 0; }
.article-body hr, .article-body .wp-block-separator { border: 0; height: 1px; background: linear-gradient(to right, transparent, #c0c8c3, transparent); margin: 3rem 0; }
.article-body .alignwide { max-width: 1000px; margin-inline: auto; }
.article-body .alignfull { max-width: none; }
.article-body .has-drop-cap::first-letter,
.drop-cap::first-letter { font-size: 4.5rem; font-weight: 800; float: left; line-height: 0.85; padding: 0.4rem 0.75rem 0 0; color: #045e80; }

/* WordPress core alignments */
.alignleft { float: left; margin: 0.5rem 1.5rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }

/* =========================================================
   Scroll-reveal: hide only when JS is active, so content never
   disappears if scripts fail. theme.js adds .is-visible.
   ========================================================= */
.js-reveal .reveal-on-scroll { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Pagination (paginate_links rendered inside .eco-pagination)
   ========================================================= */
.eco-pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.eco-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .75rem; border-radius: 9999px; font-weight: 700; color: #5b6872; background: #ffffff; border: 1px solid #c2d2d6; transition: color .2s ease, border-color .2s ease; }
.eco-pagination .page-numbers.current { background: linear-gradient(135deg, #045e80 0%, #0077a8 100%); color: #fff; border-color: transparent; }
.eco-pagination a.page-numbers:hover { color: #045e80; border-color: #045e80; }

/* =========================================================
   Comments (kept readable, on-brand)
   ========================================================= */
.eco-comments input[type="text"], .eco-comments input[type="email"], .eco-comments input[type="url"], .eco-comments textarea {
  width: 100%; padding: .875rem 1.25rem; border-radius: .5rem; background: #eef5f4;
  border: 1px solid rgba(192,200,195,.4); font-family: inherit; font-size: 1rem; color: #14212b;
}
.eco-comments input:focus, .eco-comments textarea:focus { outline: none; border-color: #2f7a39; }
.eco-comments .submit { background: linear-gradient(135deg, #045e80 0%, #0077a8 100%); color: #fff; border: 0; padding: .875rem 2rem; border-radius: 9999px; font-weight: 700; cursor: pointer; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =========================================================
   WaterWise tools (runoff calculator, water-balance optimiser)
   ========================================================= */
.tool-input {
  width: 100%; min-height: 44px; padding: .6rem .9rem; border-radius: .75rem;
  border: 1px solid #c2d2d6; background: #eef5f4; color: #14212b; font: inherit;
  transition: all .2s ease;
}
.tool-input:focus { outline: none; border-color: #2f7a39; box-shadow: 0 0 0 3px rgba(47,122,57,.15); background: #fff; }

.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: .4rem 0 0; padding: 0;
  list-style: none; background: #fff; border: 1px solid #c2d2d6; border-radius: .75rem;
  max-height: 260px; overflow: auto; box-shadow: 0 20px 50px rgba(24,28,27,.12);
}
.combo-list li { padding: .6rem .9rem; cursor: pointer; font-size: .875rem; border-bottom: 1px solid #e3edeb; }
.combo-list li:last-child { border-bottom: 0; }
.combo-list li:hover { background: #eef5f4; }

.tool-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.tool-table th, .tool-table td { border: 1px solid #c2d2d6; padding: .7rem .85rem; font-size: .875rem; text-align: left; vertical-align: middle; }
.tool-table th { background: #e8f1ef; color: #045e80; font-weight: 800; }
.tool-table td.result { background: #eef5f4; color: #045e80; font-weight: 800; text-align: right; }
.tool-table input { min-height: 40px; }
