/* Modern Garden Time Fan Site Styles */
:root {
  /* Color Palette */
  --primary-green: #3a5a40;
  --secondary-green: #588157;
  --accent-green: #a3b18a;
  --light-cream: #f5f3e6;
  --dark-cream: #e9e5d6;
  --text-dark: #344e41;
  --text-light: #f5f3e6;
  --accent-terracotta: #c26e5a;
  --accent-blue: #6b9ac4;
  
  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Raleway', sans-serif;
  
  /* Spacing */
  --section-spacing: 4rem;
  --card-spacing: 2rem;
  --content-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  background-color: var(--dark-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-green);
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-terracotta);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Layout */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background-color: var(--primary-green);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/garden_patio.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.logo-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid var(--light-cream);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.header-content h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent-green);
}

/* Navigation */
nav {
  background-color: var(--secondary-green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 80%;
}

nav a.active {
  background-color: var(--primary-green);
}

/* Main Content */
main {
  padding: 2rem 0;
}

.section {
  margin-bottom: var(--section-spacing);
  background-color: var(--light-cream);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
}

/* Welcome Section */
.welcome {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.featured-image {
  margin-top: 2rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.featured-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.featured-image:hover img {
  transform: scale(1.03);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.caption {
  padding: 1rem;
  background-color: var(--light-cream);
  font-size: 0.95rem;
  text-align: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Signs Container */
.signs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.sign-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sign-item:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.sign-item img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: contain;
  background-color: var(--dark-cream);
  padding: 1rem;
  transition: transform 0.5s ease;
}

.sign-item:hover img {
  transform: scale(1.03);
}

/* Artwork Container */
.artwork-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.artwork-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.artwork-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.artwork-item img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background-color: var(--dark-cream);
  padding: 1rem;
  transition: transform 0.5s ease;
}

.artwork-item:hover img {
  transform: scale(1.05);
}

/* Articles Container */
.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.article-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.5rem;
}

.article-meta {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.article-card p {
  padding: 0 1.5rem;
  flex-grow: 1;
}

.article-link {
  padding: 1.5rem;
  text-align: right;
}

.read-more {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--primary-green);
  color: var(--text-light);
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.read-more:hover {
  background-color: var(--accent-terracotta);
  color: var(--text-light);
  transform: translateY(-2px);
}

.network-posters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 1.5rem 1.5rem;
}

.mini-poster {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mini-poster:hover {
  transform: scale(1.1) rotate(2deg);
}

/* El Segundo Section */
.elsegundo-content {
  max-width: 800px;
  margin: 0 auto;
}

.elsegundo-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.elsegundo-content li {
  margin-bottom: 0.5rem;
}

.cta-button {
  margin-top: 2rem;
  text-align: center;
}

.cta-button a {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-terracotta);
  color: var(--text-light);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button a:hover {
  background-color: var(--primary-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Related Links */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.related-link {
  display: block;
  color: inherit;
}

.link-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-green);
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-left-color: var(--accent-terracotta);
}

.link-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.link-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: #666;
}

/* Footer */
footer {
  background-color: var(--primary-green);
  color: var(--text-light);
  padding: 3rem 0;
  text-align: center;
}

footer p {
  margin-bottom: 1rem;
}

footer a {
  color: var(--accent-green);
}

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

.social-links {
  margin: 1.5rem 0;
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-green);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-terracotta);
  transform: translateY(-3px);
}

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

.section {
  animation: fadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
  :root {
    --content-width: 95%;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding: 2.5rem;
  }
  
  .gallery-grid,
  .signs-container,
  .artwork-container,
  .articles-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .header-content {
    padding: 3rem 1rem;
  }
  
  .section {
    padding: 2rem;
    margin-bottom: 2.5rem;
  }
  
  nav ul {
    flex-wrap: wrap;
  }
  
  nav a {
    padding: 1rem;
    font-size: 0.8rem;
  }
  
  .gallery-grid,
  .signs-container,
  .artwork-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .articles-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 1.5rem;
    border-radius: 8px;
  }
  
  .gallery-grid,
  .signs-container,
  .artwork-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .related-links {
    grid-template-columns: 1fr;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* Image Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--dark-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-green);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}
