/* ===========================
   AGRISUD ALIMENTARI
   Custom Stylesheet
   =========================== */

/* ===== CSS Variables ===== */
:root {
  --primary: #2d6a2d;
  --primary-dark: #1a4a1a;
  --primary-light: #3d8a3d;
  --gold: #c8a84b;
  --gold-light: #e8c96b;
  --gold-pale: #f5e6a3;
  --cream: #faf8f0;
  --cream-dark: #f0ead8;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition: all 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
}

a { color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ===== Bootstrap Overrides ===== */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,106,45,0.3);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-gold:hover {
  background: #b8943b;
  border-color: #b8943b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,168,75,0.4);
}

.btn-white {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
  font-weight: 700;
  border-radius: 8px;
}
.btn-white:hover {
  background: var(--cream);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.text-gold { color: var(--gold) !important; }
.bg-cream { background-color: var(--cream) !important; }
.border-gold { border-color: var(--gold) !important; }

/* ===== Navbar ===== */
.navbar {
  padding: 0.6rem 0;
}
.nav-link {
  font-weight: 500;
  font-size: 0.88rem;
  color: #333 !important;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary) !important; }
.nav-link.fw-bold { color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(200,168,75,0.2);
  border: 1px solid rgba(200,168,75,0.4);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.hero-title {
  line-height: 1.1;
  text-shadow: 0 3px 16px rgba(0,0,0,0.5);
  letter-spacing: 0.01em;
}
.hero-subtitle {
  max-width: 540px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.95) !important;
}
.text-white-75 { color: rgba(255,255,255,0.75) !important; }

.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
}
.hero-stat { text-align: center; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  font-size: 1.5rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero Taglines */
.hero-taglines {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-tagline {
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.hero-tagline i {
  font-size: 0.75rem;
  opacity: 0.9;
}
.hero-tagline-divider {
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  margin: 0 0.25rem;
}
@media (max-width: 576px) {
  .hero-tagline-divider { display: none; }
  .hero-taglines { flex-direction: column; gap: 0.25rem; }
}

/* ===== Promise Banner ===== */
.promise-banner {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
.promise-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.promise-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
}
.promise-title {
  font-family: var(--font-heading);
  text-shadow: 0 3px 16px rgba(0,0,0,0.5);
}
.promise-text {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  max-width: 600px;
  margin: 0 auto;
}
.promise-icon {
  font-size: 3rem;
  line-height: 1;
}
.promise-features {
  margin-top: 0.5rem;
}
.promise-feature {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.promise-feature i {
  font-size: 0.8rem;
  margin-right: 2px;
}
@media (max-width: 768px) {
  .promise-banner { padding: 3.5rem 0; }
  .promise-banner-bg { background-attachment: scroll; }
  .promise-features { flex-direction: column; gap: 0.5rem !important; }
}

/* ===== Section Styles ===== */
.section-header { margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== How It Works Steps ===== */
.step-card {
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.step-card--active {
  border: 2px solid var(--gold);
}
.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.step-icon {
  font-size: 3rem;
  color: var(--primary);
  margin: 1.5rem 0 1rem;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.step-text { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Tree Cards ===== */
.tree-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.tree-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.tree-card-image {
  height: 240px;
  overflow: hidden;
  background: var(--cream-dark);
  position: relative;
}
.tree-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tree-card:hover .tree-card-image img { transform: scale(1.05); }

.tree-card-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}
/* Placeholder shown when a TreeType has no image — uses the localized tree name as a clean serif label. */
.tree-card-placeholder-text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw + 0.5rem, 2rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0 1rem;
  text-shadow: 0 2px 8px rgba(45,106,45,0.08);
}

.tree-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.tree-card-badge:empty { display: none; }

.tree-card-body { padding: 1.5rem; }
.tree-card-origin { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.5rem; }
.tree-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.tree-card-description { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.tree-card-price { margin-bottom: 0.25rem; }
.price-label { color: var(--text-muted); font-size: 0.85rem; }
.price-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0 4px; }
.price-unit { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Package Cards ===== */
.package-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 200px;
}
.package-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.package-card--popular {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(200,168,75,0.2);
  transform: scale(1.02);
  position: relative;
}
.package-popular-badge {
  background: var(--gold);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px;
  letter-spacing: 0.05em;
}
.package-header {
  padding: 1.5rem 1.25rem;
  background: var(--cream);
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}
.package-duration {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.package-card--popular .package-header { background: linear-gradient(135deg, var(--cream) 0%, var(--gold-pale) 100%); }
.price-main {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.price-per-year {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 4px;
}
.package-surcharge {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.package-features {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  flex: 1;
}
.feature-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
}
.feature-item--highlight {
  color: var(--primary);
  font-weight: 600;
}
.package-products {
  padding: 1rem 1.25rem;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.82rem;
}
.package-footer {
  padding: 1rem 1.25rem;
}

/* ===== Why Us Section ===== */
.bg-green-soft { background: var(--primary); }
.why-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.why-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.why-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.why-text { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ===== Testimonials ===== */
.testimonial-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.testimonial-stars { margin-bottom: 1rem; }
.testimonial-text {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== CTA Section ===== */
.cta-section { background: var(--primary-dark); }
.cta-box {
  padding: 4rem 2rem;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}
.cta-text {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ===== Auth Pages ===== */
.auth-page { background: var(--cream); min-height: 80vh; }
.auth-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.auth-header .auth-icon {
  width: 64px; height: 64px;
  background: rgba(45,106,45,0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

/* ===== Tree Hero ===== */
.tree-hero { background: var(--primary); }
.tree-hero-placeholder {
  height: 400px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  padding: 2rem;
}
.tree-hero-placeholder-text {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw + 0.5rem, 2.5rem);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.sponsorship-card-mark {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  opacity: 0.9;
}
.tree-origin-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* ===== Tree Info Card ===== */
.tree-info-card { border: 1px solid var(--cream-dark); }

/* ===== Coupon UI ===== */
.coupon-form-card { text-align: left; }
.coupon-code-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  padding: 12px 20px;
  background: var(--cream);
  border-radius: 8px;
  border: 2px solid var(--gold);
  display: inline-block;
}

/* ===== Redemption Options ===== */
.redemption-option-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.redemption-option-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.option-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.option-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.option-features { list-style: none; padding: 0; text-align: left; }
.option-features li { padding: 4px 0; font-size: 0.9rem; }

/* ===== Dashboard User ===== */
.pending-coupons-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius);
}
.coupon-banner-card {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.sponsorship-card {
  background: #fff;
  border-radius: var(--border-radius);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sponsorship-card-header {
  background: var(--cream);
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--cream-dark);
}
.sponsorship-card-body { padding: 1.25rem; }

/* ===== Success Animation ===== */
.success-circle {
  width: 80px; height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-size: 2.5rem;
  box-shadow: 0 0 0 0 rgba(45,106,45,0.4);
  animation: pulse-success 1.5s ease-out;
}
@keyframes pulse-success {
  0% { box-shadow: 0 0 0 0 rgba(45,106,45,0.4); }
  70% { box-shadow: 0 0 0 30px rgba(45,106,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,106,45,0); }
}

/* ===== Page Hero ===== */
.page-hero { background: var(--primary); padding: 4rem 0; }
.page-hero h1 { text-shadow: 0 2px 8px rgba(0,0,0,0.2); }

/* ===== Order Summary ===== */
.checkout-summary { border: 1px solid var(--cream-dark); }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.summary-tree-icon { font-size: 2.5rem; }
.payment-info { background: #f0fdf4; }
.very-small { font-size: 0.75rem; }

/* ===== Footer ===== */
.footer { background: var(--text-dark); color: rgba(255,255,255,0.7); }
.footer-main { }
.footer-brand { }
.footer-text { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-heading {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact i { color: var(--gold); margin-top: 2px; min-width: 16px; }
.footer-contact a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-social { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--gold);
  color: #fff;
}

.footer-bottom {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ===== Messages ===== */
.messages-container { position: relative; z-index: 100; }

/* ===== Admin Extras ===== */
.avatar-circle-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero-section { min-height: 70vh; }
  .section-title { font-size: 1.75rem; }
  .package-card--popular { transform: none; }
  .hero-title { font-size: 2.5rem; }
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: 100vh; }
  .hero-title { font-size: 2rem; }
  .cta-title { font-size: 1.75rem; }
  .navbar-brand span[style*="display:block"] { display: none !important; }
  .package-card { min-width: auto; }
}

@media (max-width: 575.98px) {
  .auth-card { padding: 1.5rem; }
  .coupon-code-display { font-size: 1.2rem; letter-spacing: 0.05em; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

/* ===== Utilities ===== */
.bg-gold-light { background-color: var(--gold-pale) !important; }
.empty-state { padding: 3rem; }
.coupon-code-box { font-family: monospace; }

/* ===========================
   PHASE 4 — ENHANCEMENTS
   =========================== */

/* ── Form Focus States ── */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,45,0.12);
}

/* ── Smooth transitions on all interactive elements ── */
.btn, .card, .accordion-button, .nav-link {
  transition: all 0.2s ease;
}

/* ── Better badge system ── */
.badge-status-pending   { background: #e5e7eb; color: #374151; }
.badge-status-active    { background: #d1fae5; color: #065f46; }
.badge-status-paid      { background: #dbeafe; color: #1e40af; }
.badge-status-cancelled { background: #fee2e2; color: #991b1b; }
.badge-status-shipped   { background: #ede9fe; color: #5b21b6; }

/* ── Delete / Danger soft buttons ── */
.btn-danger-soft {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-weight: 600;
  border-radius: 8px;
}
.btn-danger-soft:hover {
  background: #fecaca;
  color: #b91c1c;
  transform: translateY(-1px);
}

/* ── Step card improvements ── */
.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-card .btn { margin-top: auto; width: 100%; }

/* ── Tree card hover lift ── */
.tree-card {
  will-change: transform;
}
.tree-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}

/* ── Testimonials stars ── */
.testimonial-stars i {
  font-size: 1.1rem;
}

/* ── Contact page floating label override ── */
.form-floating > .form-control::placeholder { color: transparent; }
.form-floating > label { color: var(--text-muted); }

/* ── About page ── */
.about-image-card { transition: transform 0.3s; }
.about-image-card:hover { transform: scale(1.01); }

/* ── FAQ page ── */
.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: #f0fdf4;
  font-weight: 700;
}
.accordion-button::after {
  filter: none;
}
.accordion-button:not(.collapsed)::after {
  color: var(--primary);
}

/* ── Admin dashboard table improvements ── */
.admin-table .table-striped > tbody > tr:nth-of-type(odd) > * {
  background: #fafafa;
}

/* ── Mobile improvements ── */
@media (max-width: 767.98px) {
  .contact-hero { padding: 3.5rem 0 3rem !important; }
  .about-hero { padding: 3.5rem 0 3rem !important; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.5rem; }
}

/* ── Dashboard sidebar gradient fix ── */
.admin-sidebar {
  background: linear-gradient(180deg, #1a3a1a 0%, #0d2010 100%) !important;
}

/* ===========================
   RESPONSIVE TYPOGRAPHY (FLUID)
   Scales every heading + body text smoothly between
   320px and ~1200px viewports using clamp().
   No template changes required.
   =========================== */

/* Body baseline — readable on every screen */
body {
  font-size: clamp(0.95rem, 0.25vw + 0.9rem, 1rem);
}

/* Bootstrap display classes — scale far better on phones */
.display-1 { font-size: clamp(2.4rem, 5.8vw + 1rem, 5rem) !important; line-height: 1.1; }
.display-2 { font-size: clamp(2.15rem, 5vw + 0.85rem, 4.5rem) !important; line-height: 1.1; }
.display-3 { font-size: clamp(1.95rem, 4.3vw + 0.7rem, 4rem) !important; line-height: 1.15; }
.display-4 { font-size: clamp(1.75rem, 3.6vw + 0.55rem, 3.5rem) !important; line-height: 1.2; }
.display-5 { font-size: clamp(1.55rem, 2.8vw + 0.5rem, 3rem) !important; line-height: 1.2; }
.display-6 { font-size: clamp(1.35rem, 2.1vw + 0.45rem, 2.5rem) !important; line-height: 1.25; }

/* Standard headings */
h1, .h1 { font-size: clamp(1.55rem, 2.6vw + 0.6rem, 2.5rem); line-height: 1.2; }
h2, .h2 { font-size: clamp(1.35rem, 2vw + 0.55rem, 2.1rem); line-height: 1.25; }
h3, .h3 { font-size: clamp(1.18rem, 1.4vw + 0.55rem, 1.75rem); line-height: 1.3; }
h4, .h4 { font-size: clamp(1.05rem, 0.9vw + 0.55rem, 1.4rem); line-height: 1.35; }
h5, .h5 { font-size: clamp(0.95rem, 0.45vw + 0.55rem, 1.2rem); line-height: 1.4; }
h6, .h6 { font-size: clamp(0.85rem, 0.3vw + 0.55rem, 1rem); line-height: 1.4; }

/* Lead paragraph */
.lead { font-size: clamp(0.98rem, 0.55vw + 0.85rem, 1.2rem); line-height: 1.6; }

/* Long German compound words must not break the layout */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.hero-title, .section-title, .cta-title,
.tree-card-title, .package-duration,
.option-title, .step-title, .testimonial-text,
.lead, p, li, dd, td, th,
.footer-text, .footer-heading, .footer-links a, .footer-contact span {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Fluid versions of the site's custom typographic classes */
.hero-title       { font-size: clamp(1.9rem, 4vw + 0.85rem, 4rem); line-height: 1.1; }
.hero-subtitle    { font-size: clamp(0.98rem, 0.6vw + 0.85rem, 1.2rem); line-height: 1.55; }
.section-title    { font-size: clamp(1.45rem, 2.4vw + 0.55rem, 2.25rem) !important; line-height: 1.2; }
.section-subtitle { font-size: clamp(0.92rem, 0.45vw + 0.82rem, 1.05rem) !important; line-height: 1.55; }
.cta-title        { font-size: clamp(1.5rem, 2.8vw + 0.6rem, 2.5rem) !important; line-height: 1.2; }
.cta-text         { font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.1rem) !important; line-height: 1.55; }
.tree-card-title  { font-size: clamp(1.15rem, 0.9vw + 0.85rem, 1.5rem) !important; }
.price-main       { font-size: clamp(1.65rem, 1.8vw + 1rem, 2.25rem) !important; }
.option-title     { font-size: clamp(1.15rem, 1vw + 0.85rem, 1.4rem) !important; }
.option-icon      { font-size: clamp(2.4rem, 2.5vw + 1.5rem, 3.5rem) !important; }
.step-title       { font-size: clamp(1.05rem, 0.8vw + 0.85rem, 1.2rem) !important; }
.step-icon        { font-size: clamp(2.2rem, 2.5vw + 1.2rem, 3rem) !important; }
.success-circle   { width: clamp(60px, 8vw + 30px, 80px); height: clamp(60px, 8vw + 30px, 80px); font-size: clamp(1.8rem, 1.5vw + 1.2rem, 2.5rem); }
.coupon-code-display { font-size: clamp(1rem, 1.2vw + 0.8rem, 1.6rem); letter-spacing: clamp(0.04em, 0.2vw, 0.1em); padding: clamp(8px, 1vw + 6px, 14px) clamp(12px, 1.5vw + 8px, 22px); }
.promise-title { font-size: clamp(1.5rem, 2.6vw + 0.7rem, 2.5rem); }
.promise-text  { font-size: clamp(0.98rem, 0.5vw + 0.9rem, 1.15rem); }

/* Section padding scales down on small phones */
.py-6 {
  padding-top:    clamp(2.5rem, 4vw + 1.5rem, 5rem) !important;
  padding-bottom: clamp(2.5rem, 4vw + 1.5rem, 5rem) !important;
}

/* Container gutters at very small viewports */
@media (max-width: 400px) {
  .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Buttons — keep tappable but readable on narrow phones */
.btn { white-space: normal; }
.btn-lg {
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.1rem);
  padding: 0.65rem 1.35rem;
}
@media (max-width: 575.98px) {
  .btn-lg { padding: 0.6rem 1.1rem; }
}

/* Hero — better stacking + scroll indicator hidden on tight viewports */
@media (max-width: 575.98px) {
  .hero-section { min-height: auto; padding: 4rem 0 3rem; }
  .hero-content { padding: 1rem 0 0.5rem; }
  .hero-stats   { padding-top: 1.25rem; }
  .hero-stats .col-4 { font-size: 0.85rem; }
  .hero-scroll  { display: none; }
  .hero-badge   { font-size: 0.72rem; padding: 5px 14px; }
}

/* Tree cards image height adapts to viewport */
@media (max-width: 575.98px) {
  .tree-card-image { height: 200px; }
}

/* Package card grid — predictable single-column on phones */
@media (max-width: 767.98px) {
  .package-card { min-width: 0; width: 100%; }
  .package-card--popular { transform: none; }
  .package-header { padding: 1.25rem 1rem; }
  .package-features, .package-products, .package-footer { padding: 0.85rem 1rem; }
}

/* Footer — better column flow on tablets, generous spacing */
@media (max-width: 767.98px) {
  .footer-main { padding-top: 2.75rem; padding-bottom: 2rem; }
  .footer-bottom .row > div { margin-bottom: 0.5rem; }
}

/* Auth pages */
@media (max-width: 575.98px) {
  .auth-card  { padding: 1.5rem 1.25rem; border-radius: 14px; }
  .auth-page  { min-height: auto; padding: 2rem 0; }
  .auth-header .auth-icon { width: 56px; height: 56px; font-size: 1.5rem; }
}

/* Step / option cards on small phones — tighter padding */
@media (max-width: 575.98px) {
  .step-card { padding: 1.75rem 1.25rem; }
  .redemption-option-card { padding: 1.5rem 1.25rem; }
  .testimonial-card { padding: 1.5rem 1.25rem; }
  .why-card { padding: 1.5rem 1.25rem; }
  .cta-box  { padding: 2.5rem 1.25rem; }
}

/* Page hero spacing on phones */
@media (max-width: 767.98px) {
  .page-hero { padding: 2.75rem 0 2.25rem; }
}

/* Modal dialogs — never overflow viewport edges */
.modal-dialog { margin: 0.75rem; }
@media (min-width: 576px) {
  .modal-dialog { margin: 1.75rem auto; }
}

/* Tables become horizontally scrollable instead of breaking layout */
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Form controls on tight phones */
@media (max-width: 400px) {
  .form-control, .form-select { font-size: 0.95rem; }
  .input-group-text { font-size: 0.85rem; }
}

/* Variety cards (tree-detail) — slightly tighter on phones */
@media (max-width: 575.98px) {
  .variety-card { padding: 1.4rem 1.1rem 1.25rem; }
  .variety-card-emoji { font-size: 2rem; }
  .variety-card-title { font-size: 1.2rem; }
}

/* Tree detail hero adapts */
@media (max-width: 767.98px) {
  .tree-detail-hero { padding: 3rem 0 2.5rem !important; }
  .tree-hero-placeholder { height: 240px; }
}
