/* =============================== */
/* GLOBAL RESET */
/* =============================== */
:root {
  /* Background/Base Colors */
  --color-dark-bg: #1B1B1B;
  /* Main body background (Used in hero dark gradient end) */
  --color-medium-green: #2F4635;
  /* Product section background (Used in hero dark gradient middle) */
  --color-card-dark: #33271E;
  /* Product card dark brown */
  --color-header-tint: rgba(45, 32, 23, 0.9);
  /* Header background */
  /* NEW: Missing variable for the Hero dark gradient start */
  --color-dark-brown-start: #3B2A1A;
  /* Text & Primary Accents */
  --color-text-light: #E8DCC3;
  /* General light text (Off-white/Cream) */
  --color-text-hero: #F2E8D8;
  /* Hero light text */
  /* Gold/Copper Accents */
  --color-gold-accent: #bf8a29;
  /* Primary structural gold (Borders) */
  --color-gold-hover: #D6B25E;
  /* Interactive gold (Hover/Buttons) */
  --color-gold-primary: #E4C059;

  --large-shadow-blur: 16px;
  --medium-shadow-blur: 9px;
  /* Main heading gold (Used in sun gradient) */
  /* Note: The rgba(228, 192, 89, 0.4) is a transparency of --color-gold-primary, so it doesn't need its own variable, but it's important that E4C059 is correct. */
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-gold-primary);
  background-color: var(--color-dark-brown-start);
  overflow-x: hidden;
}


/* Universal fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Base header */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: var(--color-header-tint);
  backdrop-filter: blur(8px);
  z-index: 10000;
  border-bottom: 1px solid var(--color-gold-accent);

  /* slide animation */
  transform: translateY(0);
  transition: transform 0.2s ease;
}

/* Hidden state – slides out of view */
header.hidden {
  transform: translateY(-100%);
}


.logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: url("content/morning_mercies_logo_main.jpg") no-repeat center;
  background-size: 220%;
  background-position-y: 46.75%;
  background-position-x: 49%;
  border: 5px solid #C9A44A;
}

nav ul {
  font-family: 'Playfair Display', serif;
  list-style: none;
  display: flex;
  justify-self: center;
  font-size: 32px;
  gap: 256px;
}

nav a {
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 600;
  transition: 0.25s ease;
  display: inline-block;
  /* Needed for transform */
}

nav a:hover {
  color: var(--color-gold-hover);
  transform: scale(1.25);
  /* No layout shift! */
}

#cart {
  font-size: 1.2rem;
  z-index: 1;
}

/* =============================== */
/* HERO */
/* =============================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* Sun-Effect Stacked Gradients */
  background:
    /* 1. New Gold Sun Gradient (Top Layer) */
    radial-gradient(circle at 10% 10%, var(--color-gold-primary) 0%, rgba(228, 192, 89, 0.24) 30%, transparent 50%),
    /* 2. Original Dark Gradient (Bottom Layer) */
    radial-gradient(circle at center, var(--color-dark-brown-start) 0%, var(--color-medium-green) 40%, var(--color-dark-bg) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  color: var(--color-text-hero);
  margin-top: 0;
  z-index: 1;
}

.btn {
  text-decoration: none;
}


/* Diagonal Hebrew Mercy Pattern (No changes needed here, the element is intentionally oversized) */
.hero::before {
  content: "";
  position: absolute;
  /* Oversize so rotation never leaves gaps */
  width: 300%;
  height: 300%;
  left: -100%;
  top: -100%;
  background: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 240 240'>\<text x='10' y='60' font-size='128' font-family='serif' fill='rgba(228,192,89,0.25)'>חםר</text>\</svg>") repeat;
  opacity: 0.75;
  z-index: -1;
  pointer-events: none;
  transform: translateY(var(--parallax-offset, 0)) rotate(45deg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero mvc {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--color-gold-primary);
  text-shadow: 24px 24px var(--medium-shadow-blur) rgba(0, 0, 0, 0.5), 1px 0px 0px var(--color-gold-accent), 2px 0px 0px var(--color-gold-accent), 3px 0px 0px var(--color-gold-accent);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  margin-bottom: 16px;
  color: #E4C059;
  text-shadow: 24px 24px var(--large-shadow-blur) rgba(0, 0, 0, 0.5), 1px 0px 0px var(--color-gold-accent), 2px 0px 0px var(--color-gold-accent), 3px 0px 0px var(--color-gold-accent);
}

/* Animated gold underline */
.hero h1::after {
  content: "";
  display: block;
  margin: 12px auto 0;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-primary), var(--color-gold-accent));
  animation: shine 2s ease-in-out infinite alternate;
}

@keyframes shine {
  0% {
    transform: scaleX(0.8);
  }

  100% {
    transform: scaleX(1);
  }
}

.hero .btn {
  padding: 14px 28px;
  background: #2D251D;
  color: #F2E8D8;
  border: 2px solid #C9A44A;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  background: var(--color-gold-hover);
  color: var(--color-dark-bg);
}

/* =============================== */
/* PRODUCTS */
/* =============================== */
.products {
  text-align: center;
  padding: 64px 20px;
  /* Green gradient only */
  background: linear-gradient(135deg, #2a3a2a,
      /* Darker green */
      var(--color-medium-green),
      /* Main green */
      #45614a
      /* Slightly lighter green */
    );
  color: #F2E8D8;
  border-top: 1px solid var(--color-gold-accent);
  border-bottom: 1px solid var(--color-gold-accent);
}

.products h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--color-gold-accent);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.card {
  background: linear-gradient(135deg, #4B2E1E, #33271E, #5C3A21);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  min-width: 250px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Elegant gold micro-accent */
.card::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-gold-accent), transparent);
  margin-top: 10px;
}

.card img {
  width: 100%;
  display: block;
}

.card .info {
  padding: 16px;
}

.card .info h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: #E4C059;
}

.card .info p {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: #E8DCC3;
}

.card .info button {
  padding: 8px 16px;
  border: none;
  background: var(--color-gold-hover);
  color: #1B1B1B;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.card .info button:hover {
  background: var(--color-gold-accent);
}

/* =============================== */
/* ABOUT PARALLAX BLOCK */
/* =============================== */
.about-bg {
  position: relative;
  background: url(content/coffee_background.jpg) center top / cover no-repeat fixed;
}

.about-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* ☀️ FIX: Changed to a radial gradient for a spherical 'sun' look, positioned top-left. */
  background: radial-gradient(circle at 10% 10%,
      /* Position: Top-left corner */
      var(--color-gold-primary) 0%,
      /* Bright center */
      var(--color-gold-accent) 15%,
      /* Medium gold */
      var(--color-medium-green) 50%,
      /* Transition to dark green */
      var(--color-dark-bg) 75%
      /* Fade out to dark background */
    );
  opacity: 90%;
  z-index: 0;
  pointer-events: none;
}

.about {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 100px 20px;
}


.about img {
  flex: 1 1 400px;   /* grow/shrink, base width 400px */
  max-width: 500px;  /* prevent image from getting too big */
  width: 100%;       /* responsive */
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border: 4px solid var(--color-gold-accent);
  display: block;    /* required for margin auto to work if needed */
}


.about .text {
  flex: 1 1 400px;
  padding: 20px;
  max-width: 33vw;
}

.about .text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--color-gold-primary);
}

.about .text p {
  line-height: 1.6;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-text-hero);
}

/* =============================== */
/* FOOTER */
/* =============================== */
footer {
  background: var(--color-dark-brown-start);
  color: var(--color-text-light);
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
  border-top: 2px solid var(--color-gold-accent);
}

footer a {
  color: var(--color-gold-accent);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: var(--color-gold-hover);
  text-decoration: underline;
}


/* =============================== */
/* CURSOR BLOB */
/* =============================== */
#cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--color-gold-hover);
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  z-index: 10000;
  background: transparent;
  box-shadow: 0 0 16px rgba(201, 164, 74, 0.6);
}

#cart {
  background: url(content/FreeSample-Vectorizer-io-MercyCart.png)
}@media (max-width: 768px) {
  /* Header */
  header {
    padding: 8px 12px; /* thinner padding */
  }

  .logo {
    width: 48px;   /* smaller logo */
    height: 48px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
  }

   nav ul {
     /* keep links horizontal */
    justify-content: space-between; /* spread them evenly across the nav */
    align-items: center;
    justify-self: center;
    width: 100%;                  /* take full width */
    padding: 0 12px;              /* small horizontal padding */
    transition: gap 0.3s ease;
    margin: 0;
    font-size: 16px;
    gap: 16px;
  }

  nav li {
    flex: 1;                      /* each link takes equal space */
    text-align: center;            /* center the text inside each li */
  }

  nav a {
    display: inline-block;                /* fill the li */
    width: 100%;
    padding: 8px 0;                /* increase touch target for mobile */
  }

  #cursor-blob {
    opacity: 0;
  }


  nav a:hover {
  color: var(--color-gold-hover);
  transform: scale(1.1);
  /* No layout shift! */
}


  .hero {
      /* Sun-Effect Stacked Gradients */
    background:
      /* 1. New Gold Sun Gradient (Top Layer) */
      radial-gradient(circle at 5% 5%, var(--color-gold-primary) 0%, rgba(228, 192, 89, 0.24) 40%, transparent 75%),
      /* 2. Original Dark Gradient (Bottom Layer) */
      radial-gradient(circle at center, var(--color-dark-brown-start) 0%, var(--color-medium-green) 40%, var(--color-dark-bg) 100%);
  }
  

  .hero mvc {
    font-size: 2rem;
    text-shadow: 24px 24px 7px rgba(0, 0, 0, 0.5), 1px 0px 0px var(--color-gold-accent), 2px 0px 0px var(--color-gold-accent), 3px 0px 0px var(--color-gold-accent);
  }
  /* Hero */
  .hero h1 { 
    font-size: 3.5rem;
    text-shadow: 24px 24px 9px rgba(0, 0, 0, 0.5), 1px 0px 0px var(--color-gold-accent), 2px 0px 0px var(--color-gold-accent), 3px 0px 0px var(--color-gold-accent);
  }
  /* slightly smaller on mobile */
  .hero .btn { 
    font-size: 0.95rem; 
    padding: 8px 16px; 

  }

  /* Products */
  .grid { grid-template-columns: 1fr; gap: 14px; max-width: 90%; }
  .card { min-width: auto; }

  /* About */
  .about { flex-direction: column; padding: 50px 12px; }
  .about img, .about .text { max-width: 100%; flex: 1 1 100%; }
  .about .text p { font-size: 1.1rem; }
}
