/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - HSL Values */
  --primary: #d46a6a; /* Elegant muted red */
  --primary-rgb: 212, 106, 106;
  --secondary: #f4b860; /* Soft gold */
  --secondary-rgb: 244, 184, 96;
  --background: #fff8f5; /* Warm light beige */
  --background-rgb: 255, 248, 245;
  --text: #2d2d2d; /* Charcoal */
  --text-rgb: 45, 45, 45;
  --muted: #8a8a8a;
  --border: #e5e5e5;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;

  /* Shadows */
  --shadow-elegant: 0 10px 30px -10px rgba(var(--primary-rgb), 0.2);
  --shadow-warm: 0 4px 20px -4px rgba(var(--secondary-rgb), 0.3);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Button Styles */
.btn-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-elegant);
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.btn-hero:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-warm);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-warm);
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-elegant);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://assets.entrepreneur.com/content/3x2/2000/1601931592-GettyImages-1211574810.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--primary-rgb), 0.3);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-background {
    background-attachment: scroll;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }

  .section-subtitle {
    font-size: 1.125rem;
  }
}

/* Benefits Section */
.benefits-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--background), #f5f0eb);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(40px);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elegant);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.benefit-description {
  color: var(--muted);
  line-height: 1.7;
}

/* Why Choose Us Section */
.why-choose-section {
  padding: 5rem 0;
  background: white;
}

.why-choose-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-choose-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.feature-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.feature-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-text p {
  color: var(--muted);
  font-size: 0.875rem;
}

.feature-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateX(30px);
}

@media (max-width: 768px) {
  .why-choose-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-choose-features {
    grid-template-columns: 1fr;
  }
}

/* Products Section */
.products-section {
  padding: 5rem 0;
  background: var(--background);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(40px);
}

.product-card:hover {
  box-shadow: var(--shadow-elegant);
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-image img:hover {
  transform: scale(1.05);
}

.product-content {
  padding: 1.5rem;
}

.product-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--secondary-rgb), 0.2);
  color: var(--text);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-description {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--background), #f5f0eb);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-container {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elegant);
  opacity: 0;
  transform: translateY(40px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
}

/* Footer */
.footer-section {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-description,
.footer-info p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-legal {
  color: rgba(255, 255, 255, 0.6);
}

.footer-notice {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  color: var(--primary);
}

.modal-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition-smooth);
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--text);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.slide-left {
  animation: slideLeft 0.8s ease-out forwards;
}

.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}
.stagger-4 {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .benefits-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Additions for Legal Pages (e.g., Terms and Privacy) */
.legal-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.legal-content {
  line-height: 1.7;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2.legal-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
  color: var(--primary);
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* Ensure footer links are updated on the main index page as well */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
