/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: #f6f1ea;
  color: #111;
}

/* ================= SHOPIFY IMAGE SAFETY ================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.logo-3d {
  width: 160px;
  height: 160px;
  perspective: 1000px;
}

.logo-3d img {
  width: 100%;
  height: 100%;
  animation: spin3D 4s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
}

@keyframes spin3D {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  height: 72px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(246,241,234,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-left img { height: 42px; }

.brand-name {
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* ================= NAV ================= */
.header-nav {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-left: auto;
}

.header-nav a,
.nav-trigger {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  position: relative;
}

.header-nav a::after,
.nav-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.3s ease;
}

.header-nav a:hover::after,
.nav-trigger:hover::after {
  width: 100%;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* ================= SHOPIFY HERO SAFETY ================= */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* mobile browser safe */
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  animation: slowZoomIn 22s ease-in-out infinite;
}

@keyframes slowZoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: absolute;       /* 👈 key change */
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* 👈 move content to bottom */

  padding-bottom: 60px;     /* space from bottom */
  color: #fff;
  text-align: center;
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(3rem, 6vw, 4.2rem);
}

.hero-content p {
  font-size: 1.3rem;
}

/* ================= CONTENT ================= */
.content-section {
  max-width: 860px;
  margin: 140px auto;
  padding: 0 24px;
  text-align: center;
}

.content-section h2 {
  font-size: 2.6rem;
  margin-bottom: 24px;
}

/* ================= DECORATIVE PRODUCTS ================= */
.products-decorative {
  position: relative;
  padding: 180px 60px;
  background:
    radial-gradient(circle at top, #fff6e3, #fdfdfd 60%);
}

.products-decorative::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,210,140,0.35), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255,230,180,0.35), transparent 60%);
  pointer-events: none;
}

/* GRID */
.products-decorative {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 60px;
}

/* CARD */
.product-card {
  position: relative;
  padding: 70px 30px 60px;
  border-radius: 36px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  text-align: center;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.08);
  transition: all 0.5s ease;
  overflow: hidden;
}

/* SHINE EFFECT */
.product-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.6),
    transparent 70%
  );
  transform: rotate(25deg);
  transition: 0.8s ease;
}

.product-card:hover::before {
  top: 100%;
  left: 100%;
}

/* HOVER */
.product-card:hover {
  transform: translateY(-18px) scale(1.03);
  box-shadow:
    0 50px 100px rgba(255,190,100,0.35);
}

/* ICON */
.product-icon {
  font-size: 3rem;
  margin-bottom: 18px;
}

/* TEXT */
.product-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  opacity: 0.75;
}

/* PRODUCT-SPECIFIC GLOW */
.product-card.milk:hover {
  box-shadow: 0 50px 100px rgba(255,255,255,0.7);
}

.product-card.butter:hover {
  box-shadow: 0 50px 100px rgba(255,210,120,0.6);
}

.product-card.ghee:hover {
  box-shadow: 0 50px 100px rgba(255,185,80,0.6);
}

.product-card.honey:hover {
  box-shadow: 0 50px 100px rgba(255,170,60,0.6);
}

/* ================= PRODUCT LINK (CLICKABLE CARD) ================= */
.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #111;
  color: #f6f1ea;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.2fr 0.6fr;
  gap: 50px;
  align-items: center;
}

/* BRAND */
.footer-brand p {
  margin-top: 10px;
  opacity: 0.8;
}

.location-tags {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.location-tags span {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* MAP */
.footer-map iframe {
  width: 100%;
  height: 180px;
  border-radius: 18px;
  border: none;
  filter: grayscale(1) contrast(1.1);
}

/* CONTACT CARDS */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact h4 {
  margin-bottom: 10px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  color: #f6f1ea;
  transition: 0.35s ease;
}

.contact-card span {
  font-size: 1.4rem;
}

.contact-card p {
  font-size: 0.85rem;
  opacity: 0.85;
}

.contact-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px);
}

/* SOCIAL */
.footer-social-modern {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.footer-social-modern a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6f1ea;
  font-size: 22px;
  transition: 0.35s ease;
}

.footer-social-modern a:hover {
  background: #fff;
  color: #111;
  transform: translateY(-6px);
}
/* ================= HEADER LAYOUT ================= */
.site-header {
  position: sticky;
  top: 0;
  height: 72px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: rgba(246,241,234,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1000;
}

/* LEFT */
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-left img {
  height: 42px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* CENTER NAV */
.header-nav-center {
  display: flex;
  justify-content: center;
  gap: 36px;
}

/* LINKS */
.header-nav a,
.nav-trigger {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  position: relative;
  cursor: pointer;
}

/* UNDERLINE ANIMATION */
.header-nav a::after,
.nav-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.3s ease;
}

.header-nav a:hover::after,
.nav-trigger:hover::after {
  width: 100%;
}

/* ================= DROPDOWN ================= */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 0;
  min-width: 180px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: rgba(0,0,0,0.04);
}

.section-origin {
  background:
    radial-gradient(circle at top, #ffffff 0%, #fdf6ee 60%, transparent 100%);
  padding: 140px 40px;
  border-radius: 48px;
}

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffe8c8, #fff3dc);
  color: #7a4a00;
  font-weight: 700;
  margin-bottom: 22px;
}

.section-products {
  background:
    linear-gradient(135deg, #fff7e6, #ffffff);
  padding: 140px 40px;
  border-radius: 48px;
  box-shadow:
    0 40px 80px rgba(255, 200, 120, 0.25);
}

.section-trust {
  background:
    radial-gradient(circle at bottom, #fff1cc, #ffffff 65%);
  padding: 160px 40px;
  border-radius: 48px;
}

.badge-trust {
  background: linear-gradient(135deg, #ffd36a, #ffefc1);
  color: #5c3b00;
}

.content-section {
  position: relative;
}

.content-section::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 60px;
  background: radial-gradient(circle, rgba(255,210,140,0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.content-section:hover::after {
  opacity: 1;
}

/* ================= GLOBAL MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

  /* HEADER */
  .site-header {
    padding: 0 20px;
  }

  .brand-name {
    display: none;
  }

  .header-nav-center {
    gap: 18px;
    font-size: 0.95rem;
  }

  /* HERO */
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-bottom: 40px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  /* CONTENT */
  .content-section {
    margin: 90px auto;
    padding: 0 18px;
  }

  /* PRODUCTS */
  .products-decorative {
    padding: 100px 24px;
    gap: 36px;
  }

  /* FOOTER */
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social-modern {
    flex-direction: row;
    justify-content: center;
  }
}

/* ================= SHOPIFY-STYLE MOBILE OPTIMIZATION ================= */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {

  /* Disable heavy hover animations on mobile */
  .product-card:hover,
  .contact-card:hover,
  .footer-social-modern a:hover {
    transform: none;
    box-shadow: inherit;
  }

  .product-card::before {
    display: none;
  }
}

/* Better mobile tap response */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ================= MOBILE-FIRST SPACING ================= */
@media (max-width: 768px) {

  /* Header height like Shopify */
  .site-header {
    height: 64px;
  }

  /* Hero image GPU optimization */
  .hero img {
    will-change: transform;
    animation-duration: 28s;
  }

  /* Reduce hero overlay opacity slightly for mobile */
  .hero::after {
    background: rgba(0,0,0,0.38);
  }

  /* Content breathing room */
  .content-section h2 {
    font-size: 2.1rem;
  }

  /* Cards scale consistency */
  .product-card {
    padding: 56px 22px 52px;
    border-radius: 28px;
  }

  .product-card h3 {
    font-size: 1.4rem;
  }

  /* Footer spacing like Shopify */
  .site-footer {
    padding: 60px 24px;
    gap: 36px;
  }

  .footer-map iframe {
    height: 220px;
  }
}

/* ================= SMALL DEVICES (iPhone SE / Android Small) ================= */
@media (max-width: 420px) {

  .hero-content {
    padding-bottom: 32px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .products-decorative {
    padding: 80px 18px;
    gap: 28px;
  }

  .product-card {
    padding: 48px 20px;
  }
}

/* ================= LIMIT HERO RULES TO HOME ONLY ================= */
body:not(.home) .hero {
  height: auto;
  min-height: unset;
}

body:not(.home) .hero img {
  position: static;
  height: auto;
  animation: none;
}

@media (max-width: 768px) {
  .milk-image img,
  .butter-image img,
  .honey-image img,
  .ghee-image img {
    border-radius: 24px;
  }
}

