/*
 * Chicken Road Website Stylesheet
 * Corporate Eco-minimalism Design System with Neutral Color Scheme
 */

/* Root Variables for Colors and Theming */
:root {
  /* Primary Colors */
  --primary-color: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #A5D6A7;
  
  /* Secondary/Accent Colors */
  --accent-color: #FF9800;
  --accent-dark: #F57C00;
  --accent-light: #FFE0B2;
  
  /* Neutral Colors */
  --neutral-100: #F5F5F5;
  --neutral-200: #EEEEEE;
  --neutral-300: #E0E0E0;
  --neutral-400: #BDBDBD;
  --neutral-500: #9E9E9E;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  
  /* Functional Colors */
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #F44336;
  --info: #2196F3;
  
  /* Background Colors */
  --bg-light: var(--neutral-100);
  --bg-dark: var(--neutral-800);
  
  /* Text Colors */
  --text-light: var(--neutral-100);
  --text-dark: var(--neutral-800);
  
  /* Border Colors */
  --border-color: var(--neutral-300);
  
  /* Shadow Variables */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  
  /* Animation Variables */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing Variables */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-pill: 50rem;
  
  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-xxl: 2rem;
  --fs-hero: 3.5rem;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', sans-serif;
  margin-bottom: var(--space-md);
  color: var(--neutral-800);
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-hero);
}

h2 {
  font-size: var(--fs-xxl);
  position: relative;
  padding-bottom: var(--space-md);
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  position: relative;
  padding: var(--space-xl) 0;
}

.container {
  position: relative;
  z-index: 1;
}

/* Button Styles - Global */
.btn, 
button, 
input[type='submit'] {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-pill);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.btn:focus, 
button:focus, 
input[type="submit"]:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-outline-light:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.btn-sm {
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar {
  transition: background-color var(--transition-medium);
}

.navbar-brand img {
  height: 60px;
  width: auto;
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:after {
  width: 60%;
}

/* Hero Section */
.hero-section {
  position: relative;
  color: var(--text-light);
}

.hero-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: white;
}

.hero-section h1 {
  font-size: calc(var(--fs-hero) * 0.8);
  margin-bottom: var(--space-lg);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .hero-section h1 {
    font-size: var(--fs-hero);
  }
}

.hero-section .lead {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xl);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.card {
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
  height: 100%;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.card p {
  flex: 1;
}

/* About Section */
.image-container {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.image-container img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: auto;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* History Section */
.timeline .card {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.timeline .card-image img {
  border-bottom: 1px solid var(--border-color);
}

/* External Resources Section */
.icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
}

.icon-wrapper svg {
  transition: all var(--transition-medium);
}

.card:hover .icon-wrapper {
  background-color: var(--primary-color);
  color: white;
}

/* Accolades Section */
.accordion-item {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.accordion-button {
  font-family: 'Archivo Black', sans-serif;
  font-size: var(--fs-lg);
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.accordion-button::after {
  transition: transform var(--transition-medium);
}

/* Blog Section */
.blog .card-image {
  height: 250px;
  overflow: hidden;
}

.blog .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog .card-title {
  margin-bottom: var(--space-sm);
}

.blog .text-muted {
  font-size: var(--fs-sm);
}

/* Read More Links */
.btn-sm.btn-outline-primary {
  padding: 0.25rem 1rem;
  transition: all var(--transition-fast);
}

.btn-sm.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Contact Section */
.contact-info {
  margin-bottom: var(--space-lg);
}

.contact-info .icon-wrapper {
  background-color: var(--neutral-200);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
}

.contact-info .d-flex:hover .icon-wrapper {
  background-color: var(--primary-color);
  color: white;
}

form .form-control, 
form .form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: all var(--transition-fast);
}

form .form-control:focus, 
form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

form textarea {
  min-height: 150px;
}

/* Download Section */
#download {
  background-image: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  color: white;
}

#download h2 {
  color: white;
}

#download h2:after {
  background-color: white;
}

/* Footer */
footer {
  position: relative;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

footer h5 {
  color: white;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

footer h5:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

footer ul li {
  margin-bottom: var(--space-sm);
}

footer a {
  color: var(--neutral-400);
  transition: all var(--transition-fast);
}

footer a:hover {
  color: var(--primary-light);
}

footer .btn-outline-light {
  border-color: var(--neutral-400);
  color: var(--neutral-400);
}

footer .btn-outline-light:hover {
  border-color: var(--text-light);
  color: var(--bg-dark);
  background-color: var(--text-light);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: var(--space-xl);
}

.success-icon {
  font-size: 80px;
  color: var(--success);
  margin-bottom: var(--space-lg);
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
}

/* Features Carousel */
.carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.carousel-caption {
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Social Media Links in Footer */
.social-links {
  display: flex;
}

.social-links a {
  color: var(--neutral-400);
  transition: all var(--transition-fast);
  margin-right: var(--space-md);
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Utility Classes */
.bg-light {
  background-color: var(--bg-light) !important;
}

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

.rounded-pill {
  border-radius: var(--radius-pill) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animated-pulse {
  animation: pulse 2s infinite;
}

/* Media Queries */
@media (max-width: 991.98px) {
  h1 {
    font-size: calc(var(--fs-hero) * 0.7);
  }
  
  h2 {
    font-size: calc(var(--fs-xxl) * 0.9);
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  .carousel-item img {
    height: 400px;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: calc(var(--fs-hero) * 0.6);
  }
  
  h2 {
    font-size: calc(var(--fs-xxl) * 0.8);
  }
  
  section {
    padding: var(--space-lg) 0;
  }
  
  .navbar-brand img {
    height: 40px;
  }
  
  .carousel-item img {
    height: 300px;
  }
  
  .btn {
    padding: 0.4rem 1.2rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: calc(var(--fs-hero) * 0.5);
  }
  
  h2 {
    font-size: calc(var(--fs-xxl) * 0.7);
  }
  
  .navbar-brand img {
    height: 35px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
  
  .carousel-item img {
    height: 250px;
  }
}