/* International Paper - Custom Design System */

:root {
  /* Primary Brand Colors - Forest & Earth Tones */
  --ip-forest-green: #2d5016;
  --ip-forest-light: #4a7c2e;
  --ip-earth-brown: #8b6f47;
  --ip-kraft-tan: #d4a574;
  --ip-paper-white: #f8f6f1;

  /* Accent Colors */
  --ip-sky-blue: #4a90a4;
  --ip-warm-orange: #e67e22;
  --ip-slate-gray: #5d6d7e;

  /* Functional Colors */
  --ip-success: #27ae60;
  --ip-warning: #f39c12;
  --ip-danger: #c0392b;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* Global Styles */
body {
  font-family: var(--font-primary);
  color: var(--ip-slate-gray);
  background-color: var(--ip-paper-white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ip-forest-green);
}

/* Override Bootstrap Primary Color */
.btn-primary, .bg-primary {
  background-color: var(--ip-forest-green) !important;
  border-color: var(--ip-forest-green) !important;
}

.btn-primary:hover {
  background-color: var(--ip-forest-light) !important;
  border-color: var(--ip-forest-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.text-primary {
  color: var(--ip-forest-green) !important;
}

/* Promo Bar - Distinctive Design */
.promo-bar {
  background: linear-gradient(135deg, var(--ip-forest-green) 0%, var(--ip-forest-light) 100%);
  border-bottom: 3px solid var(--ip-kraft-tan);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.promo-bar .btn {
  background-color: var(--ip-kraft-tan);
  color: var(--ip-forest-green);
  border: none;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.promo-bar .btn:hover {
  background-color: white;
  transform: scale(1.05);
}

/* Top Bar */
.top-bar {
  background-color: var(--ip-slate-gray);
  font-size: 0.9rem;
}

.top-bar a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--ip-kraft-tan) !important;
}

/* Navigation - Modern & Clean */
.navbar {
  background-color: white !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ip-forest-green) !important;
  letter-spacing: -0.5px;
  width: 10rem;
}

.navbar-nav .nav-link {
  color: var(--ip-slate-gray);
  font-weight: 600;
  padding: 0.75rem 1.25rem !important;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ip-forest-green), var(--ip-kraft-tan));
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  color: var(--ip-forest-green);
}

/* AI Image Placeholder - Enhanced */
ai-img {
  display: block;
  background: linear-gradient(135deg, #e8e4da 0%, #d4cfc1 100%);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ip-slate-gray);
  font-size: 14px;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  z-index: 2;
}

ai-img::after {
  content: '🌲';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  opacity: 0.4;
  z-index: 1;
}

ai-img.rounded-circle {
  border-radius: 50% !important;
}

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
}

/* Cards - Elevated Design */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  background: white;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(45, 80, 22, 0.15);
}

.card-title {
  color: var(--ip-forest-green);
  font-weight: 700;
  font-size: 1.25rem;
}

.card-body {
  padding: 1.75rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--ip-forest-green) 0%, var(--ip-earth-brown) 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 10L90 90H10z" fill="%23ffffff" opacity="0.03"/></svg>');
  background-size: 100px 100px;
}

.hero-section h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--ip-kraft-tan) 0%, var(--ip-earth-brown) 100%);
  padding: 60px 0;
  color: white;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  opacity: 0.95;
}

/* Section Headings */
.section-heading {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ip-forest-green);
  margin-bottom: 1rem;
}

.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--ip-forest-green), var(--ip-kraft-tan));
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

/* Product Filters */
.product-filters {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  font-weight: 700;
  color: var(--ip-forest-green);
  margin-bottom: 0.75rem;
  display: block;
}

.form-select, .form-control {
  border: 2px solid #e8e4da;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
  border-color: var(--ip-forest-green);
  box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.15);
}

/* Timeline Design */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  /*content: '';*/
  /*position: absolute;*/
  /*left: 50%;*/
  /*transform: translateX(-50%);*/
  /*width: 4px;*/
  /*height: 100%;*/
  /*background: linear-gradient(180deg, var(--ip-forest-green), var(--ip-kraft-tan));*/
  /*border-radius: 2px;*/
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.timeline-item::before {
  /*content: '';*/
  /*position: absolute;*/
  /*left: 50%;*/
  /*transform: translateX(-50%);*/
  /*width: 20px;*/
  /*height: 20px;*/
  /*background: var(--ip-kraft-tan);*/
  /*border: 4px solid var(--ip-forest-green);*/
  /*border-radius: 50%;*/
  /*z-index: 2;*/
}

.timeline-year {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ip-forest-green);
  text-align: center;
  margin-bottom: 1rem;
}

/* Certification Badges */
.cert-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--ip-forest-light), var(--ip-forest-green));
  color: white;
  border-radius: 50px;
  font-weight: 700;
  margin: 0.5rem;
  box-shadow: 0 4px 10px rgba(45, 80, 22, 0.2);
  transition: all 0.3s ease;
}

.cert-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(45, 80, 22, 0.3);
}

/* Blog Card */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-meta {
  color: var(--ip-earth-brown);
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-category {
  display: inline-block;
  background: var(--ip-kraft-tan);
  color: var(--ip-forest-green);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Author Card */
.author-card {
  border-left: 5px solid var(--ip-forest-green);
  background: linear-gradient(135deg, white 0%, var(--ip-paper-white) 100%);
}

.author-card h4 {
  color: var(--ip-forest-green);
  font-weight: 800;
}

/* Floating Buttons */
.floating-buttons {
  z-index: 1000;
}

.floating-buttons .btn {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.floating-buttons .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-success {
  background-color: #25d366 !important;
  border: none !important;
}

#backToTop {
  background-color: var(--ip-earth-brown) !important;
  border: none !important;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--ip-forest-green) 0%, #1a3310 100%);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ip-kraft-tan), var(--ip-earth-brown), var(--ip-kraft-tan));
}

footer h5 {
  color: var(--ip-kraft-tan);
  font-weight: 800;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

footer a {
  transition: all 0.3s ease;
  display: inline-block;
}

footer a:hover {
  color: var(--ip-kraft-tan) !important;
  transform: translateX(5px);
}

/* Forms */
.form-label {
  font-weight: 700;
  color: var(--ip-forest-green);
  margin-bottom: 0.5rem;
}

.form-control:focus, .form-select:focus, textarea.form-control:focus {
  border-color: var(--ip-forest-green);
  box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.15);
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
}

.breadcrumb-item a {
  color: var(--ip-forest-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--ip-kraft-tan);
}

.breadcrumb-item.active {
  color: var(--ip-slate-gray);
  font-weight: 700;
}

/* Modal */
.modal-header {
  background: linear-gradient(135deg, var(--ip-forest-green), var(--ip-forest-light));
  border-bottom: 3px solid var(--ip-kraft-tan);
}

.modal-content {
  border-radius: 12px;
  overflow: hidden;
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid var(--ip-kraft-tan);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--ip-slate-gray);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  color: var(--ip-forest-green);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--ip-sky-blue) 0%, var(--ip-forest-light) 100%);
  padding: 80px 0;
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-section .btn {
  background: white;
  color: var(--ip-forest-green);
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  border: none;
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item::before {
    left: 30px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
  .promo-bar, .navbar, .floating-buttons, footer {
    display: none;
  }
}
