/* ================================================================
   VARIABLES
   ================================================================ */

:root {
  /* Color palette - Split Complementary */
  --primary-color: #2e7d32; /* Rich green */
  --primary-light: #4caf50; /* Lighter green */
  --primary-dark: #1b5e20; /* Dark green */
  --secondary-color: #9c27b0; /* Purple complementary */
  --secondary-light: #ba68c8; /* Light purple */
  --secondary-dark: #7b1fa2; /* Dark purple */
  --accent-color: #ff6f00; /* Orange complementary */
  --accent-light: #ffa726; /* Light orange */
  --accent-dark: #e65100; /* Dark orange */
  
  /* Neutral palette */
  --white: #ffffff;
  --off-white: #f5f5f5;
  --light-gray: #e0e0e0;
  --medium-gray: #9e9e9e;
  --dark-gray: #424242;
  --black: #212121;
  
  /* Text colors */
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-light: #ffffff;
  
  /* UI Elements */
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition-speed: 0.3s;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

/* ================================================================
   BASE STYLES
   ================================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 76px; /* Adjust for fixed header */
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: var(--space-sm);
}

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

h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
}

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

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

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

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

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

/* ================================================================
   UTILITY CLASSES
   ================================================================ */

.text-center {
  text-align: center;
}

.bg-light {
  background-color: var(--off-white);
}

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

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-xs) !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }
.mb-5 { margin-bottom: var(--space-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-xs) !important; }
.mt-2 { margin-top: var(--space-sm) !important; }
.mt-3 { margin-top: var(--space-md) !important; }
.mt-4 { margin-top: var(--space-lg) !important; }
.mt-5 { margin-top: var(--space-xl) !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: var(--space-xs) !important; padding-bottom: var(--space-xs) !important; }
.py-2 { padding-top: var(--space-sm) !important; padding-bottom: var(--space-sm) !important; }
.py-3 { padding-top: var(--space-md) !important; padding-bottom: var(--space-md) !important; }
.py-4 { padding-top: var(--space-lg) !important; padding-bottom: var(--space-lg) !important; }
.py-5 { padding-top: var(--space-xl) !important; padding-bottom: var(--space-xl) !important; }

/* ================================================================
   BUTTONS
   ================================================================ */

.btn, button, input[type='submit'] {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.btn:hover, button:hover, input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

.btn:active, button:active, input[type='submit']:active {
  transform: translateY(0);
}

.btn:focus, button:focus, input[type='submit']:focus {
  outline: none;
}

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

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

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

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

.btn-outline-light {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

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

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.1rem;
}

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */

header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  margin: 0 0.5rem;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

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

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

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1.2s ease;
}

.hero p.lead {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.2s ease 0.3s both;
}

.hero .btn {
  animation: fadeInUp 1.2s ease 0.6s both;
}

/* ================================================================
   CARD STYLES
   ================================================================ */

.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  box-shadow: var(--card-shadow);
  height: 100%;
}

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

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

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

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

.card-title {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card-body {
  padding: var(--space-lg);
}

.card-text {
  color: var(--text-secondary);
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.progress {
  height: 10px;
  border-radius: 5px;
  background-color: var(--light-gray);
  margin-bottom: 1rem;
}

.progress-bar {
  border-radius: 5px;
}

.card .rounded-circle {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--space-sm);
}

/* ================================================================
   CATALOG SECTION
   ================================================================ */

#catalog .card-image img {
  height: 300px;
  width: 100%;
  object-fit: cover;
}

/* ================================================================
   CARE GUIDE SECTION
   ================================================================ */

#care-guide .card-image img {
  height: 400px;
  width: 100%;
  object-fit: cover;
}

/* ================================================================
   LIFESTYLE SECTION
   ================================================================ */

#lifestyle .card-image img {
  height: 500px;
  object-fit: cover;
}

/* ================================================================
   TEAM SECTION
   ================================================================ */

#team .card {
  text-align: center;
}

#team .card-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.text-muted {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
}

/* ================================================================
   SUSTAINABILITY SECTION
   ================================================================ */

#sustainability img {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease;
}

#sustainability img:hover {
  transform: scale(1.02);
}

/* ================================================================
   EVENTS SECTION
   ================================================================ */

#events .card-image img {
  height: 400px;
  width: 100%;
  object-fit: cover;
}

/* ================================================================
   CLIENTELE (TESTIMONIALS) SECTION
   ================================================================ */

#clientele .card {
  padding: var(--space-md);
}

.text-warning {
  color: var(--accent-color) !important;
  font-size: 1.2rem;
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */

#contact .card {
  box-shadow: var(--card-shadow);
}

#contact form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

#contact form input,
#contact form select,
#contact form textarea {
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  padding: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

#contact form input:focus,
#contact form select:focus,
#contact form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

/* ================================================================
   FOOTER
   ================================================================ */

footer {
  padding: var(--space-xl) 0;
}

footer h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

footer p, footer a {
  color: var(--light-gray);
}

footer a {
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

footer a:hover {
  color: var(--white);
  transform: translateX(5px);
}

footer .list-inline-item {
  margin-right: 1rem;
}

footer .list-inline-item a {
  position: relative;
}

footer .list-inline-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--white);
  transition: width var(--transition-speed) ease;
}

footer .list-inline-item a:hover::after {
  width: 100%;
}

hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* ================================================================
   ADDITIONAL PAGES
   ================================================================ */

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

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

/* ================================================================
   ANIMATIONS
   ================================================================ */

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Scroll-based animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE STYLES
   ================================================================ */

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
  }
  
  .nav-link {
    padding: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p.lead {
    font-size: 1.1rem;
  }
  
  section {
    padding: var(--space-lg) 0;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 60px;
  }
  
  .hero {
    height: auto;
    padding: 6rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p.lead {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 575px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: var(--space-md);
  }
}