/* Sugar Valley Helping Hand - Custom Styles */

:root {
  --sv-primary: #f4a261; /* Warm orange/sugar color */
  --sv-primary-dark: #e76f51; /* Darker warm orange */
  --sv-secondary: #2a9d8f; /* Calm teal */
  --sv-accent: #e9c46a; /* Warm yellow */
  --sv-dark: #264653; /* Deep blue-gray */
  --sv-light: #f8f9fa;
  --sv-text: #333;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sv-text);
  line-height: 1.7;
}

/* Custom Button Styles */
.btn-primary {
  background-color: var(--sv-primary);
  border-color: var(--sv-primary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--sv-primary-dark);
  border-color: var(--sv-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
  background-color: var(--sv-secondary);
  border-color: var(--sv-secondary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #238276;
  border-color: #238276;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--sv-primary);
}

/* Navigation Styles */
.navbar {
  padding: 1rem 0;
}

.navbar-brand.brand-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sv-dark) !important;
}

.nav-link {
  color: var(--sv-text) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  margin: 0 0.5rem;
}

.nav-link:hover {
  color: var(--sv-primary) !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--sv-primary) 0%, var(--sv-primary-dark) 100%);
  color: white;
  padding: 5rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero .btn {
  margin: 0.5rem;
  font-size: 1.1rem;
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
}

.content-section:nth-child(even) {
  background-color: var(--sv-light);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sv-dark);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--sv-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.5rem;
  color: var(--sv-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-header {
  background-color: var(--sv-primary);
  color: white;
  border-radius: 1rem 1rem 0 0 !important;
  padding: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.card-body {
  padding: 2rem;
}

/* Donation Tiers */
.donation-tier {
  background: white;
  border: 3px solid var(--sv-accent);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.donation-tier:hover {
  border-color: var(--sv-primary);
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.donation-tier h3 {
  color: var(--sv-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.donation-tier .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sv-dark);
  display: block;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  margin-top: 4rem;
  background-color: var(--sv-light) !important;
}

.footer h5 {
  color: var(--sv-dark);
  font-weight: 600;
}

.footer a:hover {
  color: var(--sv-primary) !important;
  text-decoration: underline;
}

/* Story Section */
.story-section {
  background-color: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin: 2rem 0;
}

.story-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form .form-label {
  font-weight: 600;
  color: var(--sv-dark);
}

.contact-form .form-control {
  border-radius: 0.5rem;
  border: 2px solid #ddd;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--sv-primary);
  box-shadow: 0 0 0 0.2rem rgba(244, 162, 97, 0.25);
}

/* Utility Classes */
.text-primary-color {
  color: var(--sv-primary) !important;
}

.bg-primary-color {
  background-color: var(--sv-primary) !important;
}

.text-accent {
  color: var(--sv-accent) !important;
}

.bg-accent-light {
  background-color: #fef6e8 !important;
}

.bg-info-light {
  background-color: #e3f5f3 !important;
}

/* Comparison Table */
.comparison-table {
  font-size: 0.9rem;
}

.comparison-table th {
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  padding: 1rem;
}

.comparison-table td {
  padding: 0.75rem;
  vertical-align: middle;
}

.comparison-table .table-active {
  background-color: #e3f5f3 !important;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}