/* Color and Typography Palette */
:root {
  /* Primary Colors */
  --primary: #ffa4a4;
  --secondary: #666666;

  /* Background Colors */
  --bg-light: #f7f1eb;
  --bg-medium: #ede4da;
  --bg-card: #ffffff;
  --bg-accent: #fff6f0;

  /* Text Colors */
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;

  /* Accent Colors */
  --accent-gold: #d4af7a;
  --accent-soft: #f8e9e0;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-primary: "Cormorant Garamond", serif;
  --font-secondary: "Montserrat", sans-serif;
  --font-accent: "Tangerine", cursive;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* Content Width */
  --content-width: 1080px;
  --content-width-narrow: 900px;
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-medium);
  background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-normal);
}

a:hover {
  color: var(--secondary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 5rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

section > .container {
  width: 100%;
  max-width: var(--content-width);
}

/* Section Headers */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-title::after {
  left: 50%;
  transform: translateX(-50%);
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  bottom: -16px;
}

/* Header Styles */
header {
  position: relative;
  padding: 4rem 1rem;
  text-align: center;
  width: 100%;
  background: var(--bg-light);
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--bg-medium);
  opacity: 0.1;
  z-index: 1;
}

header > .container {
  max-width: var(--content-width-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo-container {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.logo {
  max-width: 230px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
  transition: 
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease;
  will-change: transform;
}

.logo:hover {
  transform: 
    scale(1.05) 
    rotateX(7deg) 
    rotateY(-10deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 10px 20px rgba(0,0,0,0.1);
}

.tagline {
  font-family: var(--font-accent);
  color: var(--secondary);
  margin-top: 1.5rem;
  font-size: 3.8rem;
  line-height: 1.2;
  max-width: 800px;
  text-align: center;
  background: linear-gradient(
    45deg, 
    var(--secondary) 0%, 
    color-mix(in srgb, var(--secondary) 80%, white) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  letter-spacing: -0.5px;
  filter: contrast(120%);
  transition: opacity 0.3s ease;
}

.tagline:hover {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }

  .tagline {
    font-size: 2.2rem;
  }

  .logo {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .tagline {
    font-size: 1.8rem;
  }

  .logo {
    max-width: 180px;
  }
}

/* Hero Section */
.hero {
  padding: 0 0 5rem;
  background-color: var(--bg-light);
  width: 100%;
}

.hero-content {
  max-width: var(--content-width-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.hero-image {
  flex: 1;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  flex: 1;
  padding: 1rem;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-text p {
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(232, 138, 138, 0.2);
}

.btn i {
  margin-right: 8px;
}

.btn:hover {
  transform: translateY(-1px);
  color: white;
  box-shadow: 0 4px 10px rgba(232, 138, 138, 0.3);
  background: #e88a8a; /* Darker salmon on hover */
}

.btn:active {
  transform: translateY(0);
  color: white;
  box-shadow: 0 1px 4px rgba(232, 138, 138, 0.2);
}

/* Collection Section */
.collection {
  padding: 4rem 0;
  background-color: var(--bg-light);
}




/* Gallery Grid */
.gallery {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 2rem;
}

.candle-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.candle-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.candle-image {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.candle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.candle-item:hover .candle-image img {
  transform: scale(1.05);
}

/* Special Occasions Section */
.special-occasions {
  background-color: var(--bg-accent);
  padding: 4rem 0;
}

.occasions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.occasion-item {
  flex: 1;
  min-width: 280px;
  max-width: 300px;
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: none; /* Remove hover transition */
}

.occasion-icon {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.occasion-icon i {
  font-size: 2.5rem;
}

.occasion-item h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.occasion-item p {
  font-size: 0.95rem;
  color: var(--text-medium);
}

/* Remove hover effects */
.occasion-item:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  text-align: center;
}


.contact h2 {
  color: var(--text-dark);
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.contact p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: var(--text-medium);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  max-width: var(--content-width-narrow);
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  flex: 1;
  min-width: 280px;
  max-width: 300px;
  padding: 25px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.contact-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* Footer */
footer {
  background-color: var(--bg-medium);
  padding: 4rem 0 2rem;
  text-align: center;
  width: 100%;
}

.footer-logo {
  margin-bottom: 1rem;
}

.logo-small {
  max-width: 120px;
  height: auto;
  border-radius: 1rem;
}

/* Modal/Lightbox Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 3px solid white;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

#modalCaption {
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 1.2rem;
  font-weight: 300;
  font-family: var(--font-accent);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}

.close-modal:hover {
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    gap: 3rem;
  }

  .hero-image {
    width: 100%;
    height: 350px;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 2rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-image,
  .hero-text {
    width: 100%;
  }

  .occasion-item {
    min-width: 100%;
    max-width: 100%;
  }

  .contact-card {
    min-width: 100%;
    max-width: 100%;
  }

  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 2.4rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .candle-image {
    height: 250px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
}