:root {
  --primary-color: #843C1C;    /* Warm brown */
  --secondary-color: #D5AA74;  /* Soft beige */
  --accent-color: #12170E;     /* Deep charcoal */
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background: #fff;
  color: var(--accent-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero header with gradient and custom font */
header {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: #fff;
  padding: 4rem 2rem;
  font-family: 'Roboto Slab', serif;
}

header h1 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
}

header #logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.2rem;
  margin: 1rem 0;
}

/* Social icon buttons */
.social-nav {
  margin: 1rem 0;
}

.social-nav a {
  display: inline-block;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  color: var(--secondary-color);
  background: rgba(255,255,255,0.2);
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.social-nav a:hover {
  transform: scale(1.1);
  color: #fff;
}

/* CTA button */
#gallery-btn {
  margin: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#gallery-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.quote-link,
.shop-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  margin: 0 0.5rem;
}

.quote-link:hover,
.shop-link:hover {
  text-decoration: underline;
}

/* Gallery grid inside modal */
#gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

#gallery-container img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#gallery-container img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Modal styling with fade */
.modal {
  display: none;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 800px;
  background: #fff;
  padding: 1rem;
  overflow-y: auto;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

/* Footer bar */
footer {
  margin-top: auto;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

footer img {
  height: 40px;
}

footer nav a {
  color: var(--secondary-color);
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

footer nav a:hover {
  color: #fff;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  header #logo {
    max-width: 200px;
  }
  .social-nav a {
    font-size: 1.2rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    margin: 0 0.25rem;
  }
  #gallery-btn {
    width: 100%;
    padding: 0.75rem;
  }
}
