/* ========================================
   GrowthUP Partners - Custom Styles
   ======================================== */

/* Global Styles */
:root {
  --gup-green: #509020;
  --gup-teal: #1080A0;
  --gup-gold: #F0C050;
  --gup-black: #1A1A1A;
  --gup-gray: #F5F5F5;
  --gup-white: #FFFFFF;
  --transition-base: all 0.3s ease;
}

* {
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* Typography Enhancements */
body {
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Navigation Styles */
nav {
  transition: var(--transition-base);
}

nav.shadow-md {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

nav a {
  position: relative;
  font-weight: 500;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gup-green);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  width: 100%;
}

/* CTA Buttons */
.btn-cta {
  background-color: var(--gup-green);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: var(--transition-base);
  display: inline-block;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-cta:hover {
  background-color: rgba(80, 144, 32, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(80, 144, 32, 0.3);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta-secondary {
  background-color: var(--gup-teal);
  color: white;
}

.btn-cta-secondary:hover {
  background-color: rgba(16, 128, 160, 0.9);
  box-shadow: 0 4px 12px rgba(16, 128, 160, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--gup-green);
  border: 2px solid var(--gup-green);
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-outline:hover {
  background-color: var(--gup-green);
  color: white;
}

/* Footer Styles */
footer {
  background-color: var(--gup-green);
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--gup-gold);
}

/* Accordion / Details Styles */
[data-accordion-trigger] {
  background-color: var(--gup-gray);
  border: 1px solid #e5e7eb;
  color: var(--gup-black);
  padding: 1rem;
  width: 100%;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  border-radius: 0.375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-accordion-trigger]:hover {
  background-color: #f0f0f0;
  border-color: var(--gup-green);
}

[data-accordion-trigger][aria-expanded="true"] {
  background-color: var(--gup-green);
  color: white;
  border-color: var(--gup-green);
}

[data-accordion-trigger]::after {
  content: '▼';
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

[data-accordion-trigger][aria-expanded="true"]::after {
  transform: rotate(180deg);
}

[role="region"][id] {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

[role="region"][id].hidden {
  display: none;
}

/* Cards */
.card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: var(--transition-base);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card:hover {
  border-color: var(--gup-green);
  box-shadow: 0 10px 25px 0 rgba(80, 144, 32, 0.15);
  transform: translateY(-4px);
}

.card-highlight {
  border-left: 4px solid var(--gup-green);
}

/* Badges */
.badge {
  display: inline-block;
  background-color: var(--gup-gold);
  color: var(--gup-black);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-green {
  background-color: var(--gup-green);
  color: white;
}

.badge-teal {
  background-color: var(--gup-teal);
  color: white;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gup-green);
  box-shadow: 0 0 0 3px rgba(80, 144, 32, 0.1);
}

/* Links */
a {
  color: var(--gup-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gup-teal);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--gup-gold);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-slide-in-down {
  animation: slideInDown 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hero Sections */
.hero {
  background: linear-gradient(135deg, var(--gup-green) 0%, rgba(80, 144, 32, 0.8) 100%);
  color: white;
  padding: 6rem 1.5rem;
  text-align: center;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Section Spacing */
section {
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 2rem;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--gup-gold);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gup-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* Print Styles */
@media print {
  nav,
  footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
  }

  a {
    color: black;
  }
}

/* Utility Classes */
.text-gup-green {
  color: var(--gup-green);
}

.text-gup-teal {
  color: var(--gup-teal);
}

.text-gup-gold {
  color: var(--gup-gold);
}

.bg-gup-green {
  background-color: var(--gup-green);
}

.bg-gup-teal {
  background-color: var(--gup-teal);
}

.bg-gup-gold {
  background-color: var(--gup-gold);
}

.bg-gup-gray {
  background-color: var(--gup-gray);
}

.border-gup-green {
  border-color: var(--gup-green);
}

.container-max {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gup-green), transparent);
  margin: 2rem 0;
}
