/*
Theme Name: GreenLight Child - Broome County Digital
Theme URI: https://broomecounty.com
Description: GreenLight child theme for Broome County Digital
Author: Ryan Davis
Author URI: https://ryandavis.com
Template: greenlight
Version: 1.0.3
*/

/* Fix: Greenshift inline <style> tags break :first-child for sticky nav */
.gsbp-affl0001 {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}
body.admin-bar .gsbp-affl0001 {
  top: var(--wp-admin--admin-bar--height, 0px) !important;
}

/* Remove WordPress block-gap between full-width sections */
.alignfull + .alignfull,
.alignfull + style + .alignfull {
  margin-top: 0 !important;
}

/* Custom selections */
::selection {
  background-color: #2D5016;
  color: #FAF9F6;
}

/* Glass card styles */
.glass-card {
  background: rgba(232, 237, 228, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(45, 80, 22, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.glass-card:hover {
  box-shadow: 0 20px 25px -5px rgba(45, 80, 22, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.glass-dark {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-blob { animation: blob 7s infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Mobile menu panel (new structure) */
.mobile-menu-panel a {
  font-family: 'Inter', sans-serif;
}
.mobile-menu-panel a:hover {
  color: #2D5016 !important;
}

/* Hide mobile menu panel on desktop */
@media (min-width: 992px) {
  .mobile-menu-panel {
    display: none !important;
  }
}

/* Gravity Forms light theme styling */
.gform_wrapper .gfield input,
.gform_wrapper .gfield textarea,
.gform_wrapper .gfield select {
  background: #ffffff !important;
  border: 1px solid #E8EDE4 !important;
  color: #1C1C1C !important;
  border-radius: 0.75rem !important;
  padding: 1rem 1.25rem !important;
  font-family: 'Inter', sans-serif !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.gform_wrapper .gfield input::placeholder,
.gform_wrapper .gfield textarea::placeholder {
  color: rgba(28, 28, 28, 0.4) !important;
}

.gform_wrapper .gfield input:focus,
.gform_wrapper .gfield textarea:focus,
.gform_wrapper .gfield select:focus {
  border-color: #2D5016 !important;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1) !important;
  outline: none !important;
}

.gform_wrapper .gfield_label {
  color: #1C1C1C !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  margin-left: 0.25rem !important;
  font-family: 'Inter', sans-serif !important;
}

.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"] {
  width: 100% !important;
  background: #D4A017 !important;
  color: #1A2F0D !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  padding: 1rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(212, 160, 23, 0.2) !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  font-family: 'Inter', sans-serif !important;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover {
  background: #facc15 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px -10px rgba(212, 160, 23, 0.3) !important;
}

/* GF select dropdown arrow fix */
.gform_wrapper .gfield select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231C1C1C' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
}
