/*
  Global stylesheet for Maria Eugenia Creations
  This file defines the look and feel of the website, including
  typography, colors, layout for both desktop and mobile devices.
*/

/* Color palette */
:root {
  /*
    Colour palette for a refined, modern aesthetic inspired by luxury
    jewellery websites like eNewton. The primary colour is a rich
    light gold for accents, complemented by a soft blush background. An
    accent colour in muted pink is defined for call‑to‑action elements.
  */
  --primary-color: #d4af37; /* gold */
  --accent-color: #e8a7b4; /* soft pink used for subtle highlights */
  --background-color: #fff7f4; /* very light blush background */
  --text-color: #333333; /* dark neutral text */
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  /* Apply a simple solid background. The swirling pattern has been removed to
     create a cleaner, more modern look reminiscent of enewtondesign.com */
  background: var(--background-color);
}

/* Sticky header */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  /* Light header with slight translucency over the patterned background */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

/*
  Top bar displayed above the main header. Use a soft accent colour
  to highlight promotional messages or information such as free
  shipping. Text is kept small and centred.
*/
.top-bar {
  background: var(--accent-color);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.3rem 1rem;
}

/*
  Main header using a two–column layout. The logo sits on the left,
  navigation links occupy the centre, and icons (search and bag) on
  the right. A subtle shadow adds separation from the page. The
  header is sticky so that it remains visible on scroll.
*/
.main-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Primary navigation links within the main header */
.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.primary-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}

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

/* Icons on the right side of the header */
.header-icons {
  display: flex;
  align-items: center;
}

.header-icons img {
  width: 24px;
  height: 24px;
  margin-left: 1rem;
  cursor: pointer;
}

/* Logo / brand text */
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Navigation links */
nav a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

/* Default hero section styles (now used on category pages) */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background: var(--background-color);
  gap: 2rem;
}

/* Container for hero text on category pages */
.hero-text {
  flex: 1 1 400px;
  max-width: 500px;
}

.hero-text h1 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--primary-color);
}

.hero-text p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Call‑to‑action button used throughout the site */
.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.cta-button:hover {
  background: #b7950b;
}

/* Image container inside hero on category pages */
.hero-image {
  flex: 1 1 400px;
  max-width: 500px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Hero banner on the home page with a full‑width background image and overlay text */
.hero-banner {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--text-color);
}

/* Semi‑transparent overlay to improve contrast over the hero image */
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Semi‑transparent overlay placed behind the content to improve contrast */
  z-index: -1;
  background: rgba(255, 255, 255, 0.6);
}

/* Container for text within the hero banner */
.hero-banner .hero-content {
  position: relative;
  max-width: 600px;
  padding: 0 1rem;
  /* Ensure hero text sits above the overlay */
  z-index: 1;
}

.hero-banner .hero-content h1 {
  margin: 0;
  font-size: 3rem;
  color: var(--primary-color);
}

.hero-banner .hero-content p {
  margin-top: 1rem;
  font-size: 1.3rem;
  line-height: 1.6;
  /* Use white text and a subtle shadow so it remains visible over photographic backgrounds */
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Override tagline specifically to ensure it remains white and legible */
.hero-banner .tagline {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner .hero-content .cta-button {
  margin-top: 2rem;
}

/* Search overlay styles */
.search-overlay {
  position: fixed;
  top: 70px; /* Position below the sticky header */
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 200;
}

.search-overlay.hidden {
  display: none;
}

.search-overlay input {
  width: 200px;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  font-size: 1rem;
}

/* Categories section on the home page */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
}

.category-card {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.category-card h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-color);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Shared styles for category pages */
.category-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.category-page h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.form-container input[type="file"],
.form-container input[type="text"] {
  flex: 1 1 200px;
  padding: 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
}

.form-container button {
  padding: 0.7rem 1.4rem;
  background: var(--primary-color);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-container button:hover {
  /* Slightly darker gold on hover */
  background: #b7950b;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.product-card .price {
  color: var(--primary-color);
  font-weight: 500;
}

/*
  Contact page styles: reuse the light container styling and lay out
  phone and email details with icons. When screen width is small,
  items stack naturally.
*/
.contact-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.contact-page h1 {
  text-align: center;
  margin: 0;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.contact-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/*
  About page styles. This layout places the biography text beside an
  illustrative image on larger screens and stacks them on small screens.
*/
.about-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.about-page h1 {
  text-align: center;
  margin: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-content .about-text {
  flex: 1 1 300px;
}

.about-content .about-image {
  flex: 1 1 300px;
}

.about-content .about-image img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.about-content .about-text p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .about-content {
    flex-direction: column;
  }
}

/* Responsive adjustments for small screens */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
  }
  nav a {
    margin: 0.3rem 0.5rem;
  }
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .category-card {
    width: calc(50% - 2rem);
  }
  .form-container {
    flex-direction: column;
    align-items: stretch;
  }
  .form-container input[type="file"],
  .form-container input[type="text"] {
    width: 100%;
  }
}

/* Feature sections with images and text that animate into view */
.feature-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  gap: 2rem;
}

.feature-image,
.feature-text {
  flex: 1 1 400px;
  max-width: 500px;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.feature-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--primary-color);
}

.feature-text p {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Animation classes for scroll‑in effect */
.section-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.appear {
  opacity: 1;
  transform: translateY(0);
}