/*
Theme Name: themewell
Theme URI: https://dotsquare.net
Author: dotsquare.net
Author URI: https://dotsquare.net
Author Email: ahmd3ml@gmail.com
Copyright: © dotsquare.net — https://dotsquare.net. All rights reserved.
Description: themewell — a calm, photo-led WordPress + WooCommerce theme with a built-in Design System (colours + typography) in Theme Options. Wells are sold as WooCommerce products, each with a guided "Project details" panel (country, beneficiaries, depth, build time, what's included, and an optional "name on the well" engraving). Includes a marketing homepage, a documented projects shop, single-project pages, and the Meaningful Gift flow.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
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: african-well
WC requires at least: 7.0
WC tested up to: 9.5
Tags: charity, donation, non-profit, woocommerce, e-commerce, custom-menu, featured-images, two-columns, right-sidebar
*/

/*
  The actual design lives in /assets/css/ (loaded conditionally per template in functions.php):
    site.css     — shared design system (used by inner pages)
    front.css    — homepage
    shop.css     — projects archive (WooCommerce shop)
    product.css  — single project (WooCommerce product)
    stats.css / about.css / contact.css / gift.css — page templates
  This file only carries the theme header WordPress requires, plus a few
  site-wide tweaks for third-party widgets that must load on every page.
*/

/* GTranslate: hide the floating widget — the language switcher now lives in the
   header menu and the footer (rendered via aw_lang_links()). */
.gtranslate_wrapper{display:none !important}

/* Header language dropdown */
.aw-lang{position:relative;display:inline-flex}
.aw-lang>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:3px;padding:8px;border-radius:9px;color:var(--g900,#063027)}
.aw-lang>summary::-webkit-details-marker{display:none}
.aw-lang>summary:hover,.aw-lang[open]>summary{background:rgba(var(--g900-rgb,6,48,39),.07)}
.aw-lang>summary>svg:first-child{width:21px;height:21px}
.aw-lang .aw-lang-caret{transition:transform .2s}
.aw-lang[open] .aw-lang-caret{transform:rotate(180deg)}
.aw-lang-menu{position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:1px solid var(--line,#E4E0D4);border-radius:13px;box-shadow:0 12px 34px rgba(0,0,0,.13);padding:6px;min-width:178px;max-height:60vh;overflow:auto;z-index:300}
.aw-lang-menu a{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:9px;color:var(--ink,#1d1f1b);text-decoration:none;font-size:14px;line-height:1}
.aw-lang-menu a:hover{background:rgba(var(--g900-rgb,6,48,39),.06)}
.aw-lang-menu a img{width:20px;height:20px;border-radius:3px;flex:0 0 auto}
.aw-lang-menu a.gt-current-lang{background:rgba(var(--g700-rgb,15,110,86),.10);font-weight:600;color:var(--g700,#0F6E56)}

/* Floating "Email US" button — site-wide, links to info@africanwell.com */
.aw-email-fab{position:fixed;left:20px;bottom:20px;z-index:900;display:inline-flex;align-items:center;gap:9px;background:var(--g700,#0F6E56);color:#fff;padding:12px 18px;border-radius:30px;box-shadow:0 8px 24px rgba(0,0,0,.22);text-decoration:none;font-size:14px;font-weight:600;font-family:'Inter',system-ui,sans-serif;line-height:1;transition:background .2s,transform .2s}
.aw-email-fab:hover{background:var(--g800,#0a4537);transform:translateY(-2px);color:#fff}
.aw-email-fab svg{width:20px;height:20px;flex:0 0 auto}
/* Avoid clashing with the product-page sticky pay bar */
body.single-product .aw-email-fab{display:none}
@media(max-width:560px){
  .aw-email-fab{left:16px;bottom:16px;padding:14px;border-radius:50%}
  .aw-email-fab span{display:none}
  .aw-email-fab svg{width:22px;height:22px}
}

/* Footer secondary nav (Careers, etc.) */
.foot-nav{display:flex;flex-wrap:wrap;gap:6px 18px;margin:22px 0 4px}
.foot-nav a{color:inherit;text-decoration:none;font-size:13px;opacity:.75}
.foot-nav a:hover{opacity:1;text-decoration:underline}

/* Footer language row */
.foot-lang{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:20px}
.foot-lang-h{font-size:13px;color:var(--muted,#9b968a);width:100%;margin-bottom:2px}
.foot-lang a{display:inline-flex;align-items:center;gap:7px;color:inherit;text-decoration:none;font-size:13px;opacity:.8}
.foot-lang a:hover,.foot-lang a.gt-current-lang{opacity:1}
.foot-lang a img{width:18px;height:18px;border-radius:3px}
