/* ==========================================================================
   GREEN GINI THEME — COMPONENTS CSS
   Reusable UI components: buttons, nav, badges, cards, forms
   ========================================================================== */

/* ── Buttons ─────────────────────────────────────────────────────────────── */

/* Green CTA Button — Slide-in white hover */
.btn-reveal-green,
.wp-block-button .wp-block-button__link.btn-reveal-green {
  position: relative;
  overflow: hidden;
  background-color: var(--gg-emerald);
  color: var(--gg-dark);
  border: none;
  border-radius: var(--gg-radius-full);
  padding: 0.875rem 2rem;
  font-family: var(--gg-font) !important;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  z-index: 1;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-reveal-green::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #FFFFFF;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  border-radius: inherit;
}

.btn-reveal-green:hover::before {
  transform: translateX(0);
}

.btn-reveal-green:hover,
.btn-reveal-green:hover * {
  color: var(--gg-emerald) !important;
}

/* Dark/Outline Button — Slide-in emerald hover */
.btn-reveal-dark,
.wp-block-button .wp-block-button__link.btn-reveal-dark {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  color: var(--gg-white);
  border-radius: var(--gg-radius-full);
  padding: 0.875rem 2rem;
  font-family: var(--gg-font) !important;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  z-index: 1;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-reveal-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--gg-emerald);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  border-radius: inherit;
}

.btn-reveal-dark:hover::before {
  transform: translateX(0);
}

.btn-reveal-dark:hover,
.btn-reveal-dark:hover * {
  color: var(--gg-dark) !important;
  border-color: var(--gg-emerald) !important;
}

/* Outline variant */
.btn-outline {
  border: 1px solid rgba(255,255,255,0.15);
  background-color: rgba(255,255,255,0.05);
}

.btn-outline-emerald {
  border: 1px solid var(--gg-gray-200);
  background-color: transparent;
  color: var(--gg-gray-900);
}

.btn-outline-emerald:hover {
  border-color: var(--gg-emerald);
  color: var(--gg-emerald);
  background-color: var(--gg-gray-100);
}

/* ── Navigation Header ────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.5s ease;
  padding: 1.5rem 0;
}

#site-header.scrolled {
  padding: 1rem 0;
  background-color: rgba(3, 13, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.gg-nav-inner {
  max-width: var(--gg-max-w);
  margin: 0 auto;
  padding: 0 var(--gg-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.gg-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  outline: none;
}

.gg-logo img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  border-radius: 2px;
}

@media (min-width: 640px) {
  .gg-logo img { height: 2.5rem; }
}

.gg-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.375rem;
  border-radius: var(--gg-radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  list-style: none;
  margin: 0;
}

.gg-nav-menu li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1rem;
  border-radius: var(--gg-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--gg-font) !important;
  color: var(--gg-gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.gg-nav-menu li a:hover,
.gg-nav-menu li.current-menu-item a,
.gg-nav-menu li a.active {
  color: var(--gg-emerald) !important;
}

.gg-nav-text {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.gg-nav-menu li a .nav-underline,
.gg-nav-text .nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gg-emerald);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.gg-nav-menu li a:hover .nav-underline,
.gg-nav-menu li a:hover .gg-nav-text .nav-underline {
  width: 100%;
}

.gg-nav-menu li a.active .nav-underline,
.gg-nav-menu li.current-menu-item a .nav-underline {
  display: none;
}

.gg-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gg-nav-search-btn {
  width: 2.25rem !important;
  height: 2.25rem !important;
  min-width: 2.25rem !important;
  min-height: 2.25rem !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--gg-white) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  outline: none !important;
  box-shadow: none !important;
}

.gg-nav-search-btn:hover {
  color: var(--gg-emerald) !important;
  border-color: rgba(17, 193, 157, 0.4) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.gg-nav-quote-btn {
  padding: 0.625rem 1.25rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
}

.gg-mobile-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Menu */
.gg-mobile-menu-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  color: var(--gg-white) !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.gg-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(3, 13, 11, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.gg-mobile-drawer.open {
  display: flex;
}

.gg-mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.gg-mobile-drawer ul li a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--gg-radius-full);
  color: var(--gg-gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gg-mobile-drawer ul li a:hover,
.gg-mobile-drawer ul li.current-menu-item a,
.gg-mobile-drawer ul li a.active {
  color: var(--gg-white);
  background: rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--gg-emerald);
}

.gg-mobile-quote-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.75rem !important;
  text-decoration: none !important;
  width: 100% !important;
}

.gg-mobile-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B7280;
}

@media (max-width: 1024px) {
  #desktop-nav,
  #desktop-actions { display: none !important; }
  .gg-mobile-controls { display: flex !important; }
}

/* ── Search Overlay ──────────────────────────────────────────────────────── */
#gg-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

#gg-search-overlay.open {
  display: flex;
}

.gg-search-top-bar {
  max-width: var(--gg-max-w);
  margin: 0 auto;
  width: 100%;
  padding: 2rem var(--gg-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gg-search-icon-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(17, 193, 157, 0.1);
  border: 1px solid rgba(17, 193, 157, 0.3);
  color: var(--gg-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gg-search-close-btn {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #D1D5DB !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
}

.gg-search-close-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

.gg-search-tag {
  font-size: 0.75rem !important;
  padding: 0.375rem 0.875rem !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #D1D5DB !important;
  font-weight: 300 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.gg-search-tag:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--gg-white) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.gg-search-body {
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.gg-search-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.gg-search-input-wrap:focus-within {
  border-color: var(--gg-emerald);
}

.gg-search-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 200;
  color: var(--gg-white);
  font-family: var(--gg-font) !important;
  letter-spacing: -0.02em;
}

.gg-search-input::placeholder {
  color: rgba(255,255,255,0.3);
  font-weight: 200;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.gg-card-dark {
  background: var(--gg-surface-2);
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.gg-card-dark:hover {
  border-color: rgba(17, 193, 157, 0.4);
  transform: translateY(-2px);
}

/* ── Badge Pill ──────────────────────────────────────────────────────────── */
.gg-badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(17, 193, 157, 0.1);
  border: 1px solid rgba(17, 193, 157, 0.3);
  color: var(--gg-emerald);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--gg-radius-full);
}

/* ── Form Elements ───────────────────────────────────────────────────────── */
.gg-input {
  background: #222222;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--gg-radius-full);
  padding: 0.75rem 1.25rem;
  color: var(--gg-white);
  font-family: var(--gg-font) !important;
  font-size: 0.875rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}

.gg-input:focus {
  border-color: rgba(17,193,157,0.5);
}

.gg-input::placeholder {
  color: var(--gg-gray-500);
}

.gg-textarea {
  background: #222222;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.25rem;
  color: var(--gg-white);
  font-family: var(--gg-font) !important;
  font-size: 0.875rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
  resize: vertical;
  border-radius: 8px;
}

.gg-textarea:focus {
  border-color: rgba(17,193,157,0.5);
}

/* ── Section Sub-label ───────────────────────────────────────────────────── */
.gg-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gg-emerald);
  margin-bottom: 1rem;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.gg-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  width: 100%;
}

.gg-divider-light {
  height: 1px;
  background: var(--gg-gray-200);
  width: 100%;
}

/* ── Trust Shields ───────────────────────────────────────────────────────── */
.gg-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gg-gray-400);
}

/* ── Checklist Items ─────────────────────────────────────────────────────── */
.gg-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gg-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gg-gray-300);
  line-height: 1.5;
}

.gg-checklist li::before {
  content: '';
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311C19D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 0.1rem;
}
