/* Cedar River Cellars - Custom CSS */

:root {
  /* Brand colors */
  --crc-primary: #D85300;    /* PMS 1595 (C:10, M:75, Y:100, K:1) */
  --crc-secondary: #666666;  /* Black 60% */
  --crc-accent: #D85300;     /* PMS 1595 for accents */
  --crc-light: #f9f6f0;      /* Off-white/cream color */
  --crc-dark: #000000;       /* Black */
  
  /* Bootstrap overrides */
  --bs-primary: var(--crc-primary);
  --bs-secondary: var(--crc-secondary);
  --bs-success: #388e3c;
  --bs-info: #0288d1;
  --bs-warning: var(--crc-accent);
  --bs-danger: #d32f2f;
  --bs-light: var(--crc-light);
  --bs-dark: var(--crc-dark);

  
  /* Font families */
  --crc-heading-font: 'Open Sans', sans-serif;
  --crc-body-font: 'Open Sans', sans-serif;
}


body {
  font-family: var(--crc-body-font);
  color: var(--crc-dark);
  background-color: var(--crc-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--crc-heading-font);
  font-weight: 700;
  color: var(--crc-primary);
}

/* bootstrap remove bottom padding */
.alert {
    --bs-alert-margin-bottom: 0rem;
}

/* VinoShipper Announcement style override */
.vs-announcement-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--crc-primary);
  color: var(--crc-light);
  padding: 0.5rem;
  text-align: center;
  font-size: 1.75rem;
}

/* Hero section */
.hero {
  background-color: rgba(35, 31, 32, 0.8);
  color: var(--crc-light);
  position: relative;
}

.hero-background {
  background-image: url('../images/CRCPicnicArea_sm.jpg');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  position: relative;
}

.hero-content h1 {
  color: var(--crc-light);
}

.hero-content {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
  color: var(--crc-light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(35, 31, 32, 0.5);
}

/* Button styles */
.btn-primary {
  background-color: var(--crc-primary);
  border-color: var(--crc-primary);
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: darken(var(--crc-primary), 10%);
  border-color: darken(var(--crc-primary), 10%);
}

.btn-secondary {
  background-color: var(--crc-secondary);
  border-color: var(--crc-secondary);
}

.btn-outline-primary {
  color: var(--crc-primary);
  border-color: var(--crc-primary);
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus {
  background-color: var(--crc-primary);
  color: var(--crc-light);
}

/* Footer */
footer {
  background-color: var(--crc-dark);
  color: var(--crc-light);
  padding: 3rem 0;
}

footer h5 {
  color: var(--crc-accent);
  border-bottom: 2px solid var(--crc-accent);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

footer a {
  color: var(--crc-light);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover, 
footer a:focus {
  color: var(--crc-accent);
  text-decoration: none;
}

/* Accessibility improvements */
:focus {
  outline: 3px solid var(--crc-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom animations */
.fade-in {
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    padding: 3rem 0;
  }
}

/* About section */
.about-section {
  padding: 5rem 0;
}

/* Events section */
.event-card {
  border-left: 4px solid var(--crc-accent);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: white;
  border-radius: 0 0.5rem 0.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-date {
  background-color: var(--crc-primary);
  color: white;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--crc-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 2000;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}
