:root, [data-theme='light'] {
  --rosa-pastel: #F8C9D4;
  --rosa-escuro: #C75C7A;
  --dourado: #A57C1B;
  --branco: #FFFFFF;
  --cinza-claro: #F2F2F2;
  --texto: #2c2c2c;
  --bg-color: #FFFFFF;
  --text-color: #2c2c2c;
  --heading-color: #C75C7A;
  --accent-color: #A57C1B;
  --card-bg: #FFFFFF;
  --card-shadow: rgba(0,0,0,0.04);
  --section-bg: #F2F2F2;
  --border-color: #F2F2F2;
}

[data-theme='dark'] {
  --rosa-pastel: #F8C9D4;
  --rosa-escuro: #C75C7A;
  --dourado: #A57C1B;
  --branco: #FFFFFF;
  --cinza-claro: #F2F2F2;
  --texto: #2c2c2c;
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --heading-color: #F8C9D4;
  --accent-color: #e0b458;
  --card-bg: #252525;
  --card-shadow: rgba(0,0,0,0.2);
  --section-bg: #252525;
  --border-color: #333333;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--heading-color);
}

h1 { font-size: 3.8rem; line-height: 1.2; }
h2 { font-size: 2.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  z-index: 1001;
}

.desktop-nav a {
  margin: 0 1.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--accent-color);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--heading-color);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: #b34a65;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--heading-color);
  border-color: var(--heading-color);
}

.btn-secondary:hover {
  background-color: var(--heading-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(199, 92, 122, 0.3);
}

/* --- Theme Toggle --- */
#theme-toggle {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    margin-left: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--border-color);
    transform: scale(1.1);
}

#theme-toggle .sun-icon,
#theme-toggle .moon-icon {
    width: 20px; /* Adjust size */
    height: 20px; /* Adjust size */
    transition: transform 0.3s ease;
}

html[data-theme='light'] .moon-icon {
    display: none;
}

html[data-theme='dark'] .sun-icon {
    display: none;
}


/* --- Mobile Menu --- */
#menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

#menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

#menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

#mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.5s ease-in-out;
    z-index: 1000;
}

#mobile-nav.open {
    right: 0;
}

#mobile-nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--heading-color);
    text-decoration: none;
    margin: 1.5rem 0;
    transition: color 0.3s ease;
}

#mobile-nav a:hover {
    color: var(--accent-color);
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#overlay.open {
    display: block;
    opacity: 1;
}

/* Hero Section */
#hero {
  padding: 5rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 5rem;
}

.hero-content .text-content {
  animation: slideInFromLeft 1s ease-out;
}

.hero-content h1 .highlight {
  color: var(--accent-color);
  font-style: italic;
}

.hero-content p {
  font-size: 1.15rem;
  margin: 1.5rem 0 2.5rem;
  max-width: 500px;
}

.hero-content .image-placeholder {
  height: 500px;
  border-radius: 15px;
  animation: slideInFromRight 1s ease-out;
  overflow: hidden;
}

.hero-content .image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Collection Section */
#collection {
  background-color: var(--section-bg);
}

.section-header {
  max-width: 600px;
  margin-bottom: 3rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 15px var(--card-shadow);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card .product-image {
  height: 350px;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-card .info {
  padding: 1.5rem;
  text-align: center;
}

.product-card .info h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.product-card .price {
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* About Section */
#about {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content .image-placeholder {
  height: auto;
  border-radius: 15px;
}

.about-content .image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.about-content p {
  margin-bottom: 1rem;
}

/* Contact Form Section */
#contact-form-section {
    padding: 6rem 0;
}

#contact-form-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

#lunna-contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(165, 124, 27, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

#form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
footer {
  background-color: var(--section-bg);
  color: var(--text-color);
  text-align: center;
  padding: 4rem 0;
  margin-top: 5rem;
}

footer .logo-text {
  color: var(--heading-color);
  font-size: 2rem;
}

footer p {
  margin: 0.5rem 0 1.5rem;
  color: var(--text-color);
  opacity: 0.8;
}

.social-icons a {
  margin: 0 0.7rem;
  color: var(--heading-color);
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: scale(1.2) translateY(-2px);
}

.footer-bottom {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--section-bg);
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 15px var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-color);
    border-left: 4px solid var(--rosa-pastel);
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--heading-color);
    align-self: flex-end;
}

/* --- FAQ Section --- */
#faq {
    padding: 6rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* --- WhatsApp CTA --- */
#whatsapp-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s 1s ease-in forwards;
}

#whatsapp-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-content .image-placeholder { height: 400px; margin-top: 3rem; order: -1; }
  .about-content { grid-template-columns: 1fr; text-align: center; }
  .about-content .image-placeholder { order: -1; margin-bottom: 2rem; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  #menu-toggle { display: flex; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.2rem; }
  section { padding: 4rem 0; }
  #hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: auto;
  }
  .hero-content { gap: 3rem; }
}
