/*
Theme Name: Garden of the North
Theme URI: https://gardenofthenorth.com
Author: David Bowling
Author URI: https://gardenofthenorth.com
Description: Clean, Elementor-ready WooCommerce theme with green accents, animated hero, and Fancy Product Designer compatibility.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: garden-of-the-north
Tags: custom-colors, ecommerce, responsive, accessibility-ready, elementor
*/

:root{
  --primary-green: #1B5E20;
  --accent-green: #43A047;
  --bg-white: #ffffff;
  --text: #222222;
}

* { box-sizing: border-box; }

body{
  background: var(--bg-white);
  color: var(--text);
  font-family: "Montserrat", "Lato", Arial, sans-serif;
  margin:0;
  padding:0;
}

a{ color: var(--primary-green); text-decoration:none; }
a:hover{ opacity:.9; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#ffffff; /* always white per user choice */
  border-bottom: 1px solid #eee;
}
.site-logo img{ max-height:56px; height:auto; width:auto; }
.menu-toggle{
  display:none;
  background:transparent;
  border:none;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.site-nav ul{ list-style:none; margin:0; padding:0; display:flex; gap:18px; }
.site-nav a{ color: var(--primary-green); font-weight:600; }

/* Mobile nav */
@media (max-width: 920px){
  .menu-toggle{ display:block; }
  .site-nav{ position: absolute; left:0; right:0; top:68px; background:#ffffff; border-bottom:1px solid #eee; display:none; }
  .site-nav.open{ display:block; }
  .site-nav ul{ flex-direction:column; gap:0; }
  .site-nav li{ border-top:1px solid #f1f1f1; }
  .site-nav a{ display:block; padding:14px 20px; }
}

/* Hero */
.hero { 
  position:relative; 
  min-height:560px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  text-align:center; 
  padding:100px 20px;
  background-size:cover; 
  background-position:center;
}
.hero::before{ 
  content:''; position:absolute; inset:0; 
  background:linear-gradient(180deg, rgba(27,94,32,0.65), rgba(27,94,32,0.65)); 
  z-index:0; 
}
.hero-inner{ position:relative; z-index:2; max-width:980px; color:#ffffff; }

/* Semi-transparent content box for readability */
.hero-box{
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(1px);
  padding: 28px 26px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hero h1{ font-family: "Great Vibes", cursive; font-size:50px; margin:0 0 16px; line-height:1.1; text-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.hero p{ font-size:18px; margin:10px 0 22px; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }

.btn { display:inline-block; padding:12px 20px; border-radius:6px; text-decoration:none; font-weight:700; transition: transform .15s ease; }
.btn:active{ transform: translateY(1px); }
.btn-primary { background:var(--primary-green); color:white; }
.btn-outline { border:2px solid white; color:white; background:transparent; }

.site-footer{ padding:30px; text-align:center; background:#f7f7f7; color:#333; }

/* ====================== */
/*  Leaf Glow Animations  */
/* ====================== */
@keyframes glowFade {
  0% { opacity: 0; filter: brightness(0.8) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  40% { opacity: 1; filter: brightness(1.1) drop-shadow(0 0 12px rgba(255,255,255,0.35)); }
  100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 0 rgba(255,255,255,0)); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Apply one-time animations on load */
.gotn-animate .hero .logo-animate,
.gotn-animate .hero .text-animate,
.gotn-animate .hero .btn { 
  animation: glowFade 1200ms ease-out 50ms 1 both;
}

/* Button subtle shimmer highlight once */
.gotn-animate .hero .btn-primary{
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: glowFade 1200ms ease-out 50ms 1 both, shimmer 900ms ease-out 200ms 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}
footer.site-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #f8f8f8 !important;
  padding: 30px 0 !important;
  color: #333 !important;
  z-index: 9999;
}
