/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #1e1e1e;
  color: #e1e1e1;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.logo img {
  height: 80px;
  /*filter: brightness(0) invert(1);*/
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #ffffff;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 3rem;
  max-width: 700px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.hero-presented {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
}

.sunnybrook-link {
  color: #7ab87a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sunnybrook-link:hover {
  color: #9ed49e;
}

/* Main Content */
.main-content {
  background-color: #1e1e1e;
  padding: 4rem 3rem;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
}

/* Stories Section */
.stories {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.story-card {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  align-items: start;
}

.story-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(30%);
}

.story-card:hover .story-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.story-label {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.story-content {
  padding-top: 0.5rem;
}

.story-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.story-text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: #999999;
  margin-bottom: 1.5rem;
}

.story-warning {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888888;
  margin-bottom: 1rem;
  font-style: italic;
}

.story-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.story-link:hover {
  color: #7ab87a;
  border-color: #7ab87a;
}

/* Resources Sidebar */
.resources-sidebar {
  position: sticky;
  top: 100px;
  background-color: #2a2a2a;
  border-radius: 4px;
  padding: 1.5rem;
  height: fit-content;
}

.resources-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #ffffff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #3a3a3a;
}

.resource-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid #3a3a3a;
  font-size: 0.875rem;
  color: #bbbbbb;
  transition: color 0.3s ease;
}

.resource-link:hover {
  color: #ffffff;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.resource-link:hover .arrow-icon {
  opacity: 1;
  transform: translateX(3px);
}

.help-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: #3a3a3a;
  border-radius: 4px;
  text-align: center;
}

.help-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.help-box p {
  font-size: 0.85rem;
  color: #999999;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.help-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s ease;
}

.help-link:hover {
  color: #7ab87a;
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  padding: 4rem 3rem 2rem;
  border-top: 1px solid #2a2a2a;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2a2a2a;
}

.footer-brand {
  padding-right: 2rem;
  border-right: 1px solid #2a2a2a;
}

.footer-logo {
  height: 80px;
  /*filter: brightness(0) invert(1);*/
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.85rem;
  font-weight: 300;
  color: #888888;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-presented {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #666666;
}

.footer-nav,
.footer-stories,
.footer-resources {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #888888;
  margin-bottom: 0.5rem;
}

.footer-nav a,
.footer-stories a,
.footer-resources a {
  font-size: 0.875rem;
  color: #999999;
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-stories a:hover,
.footer-resources a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #666666;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: #999999;
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .resources-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .resources-title {
    grid-column: 1 / -1;
  }

  .help-box {
    grid-column: 1 / -1;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid #2a2a2a;
    padding-right: 0;
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .nav {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .main-content {
    padding: 2rem 1.5rem;
  }

  .story-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .story-image {
    max-width: 100%;
  }

  .resources-sidebar {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 2rem 1.5rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .nav {
    display: none;
  }

  .story-title {
    font-size: 0.875rem;
  }

  .story-text {
    font-size: 0.85rem;
  }
}
