/* ============================
   Zaikify — Base & Variables
   ============================ */
:root {
  --color-bg: #FFFCF7;
  --color-bg-alt: #FFF4E6;
  --color-surface: #FFFFFF;
  --color-text: #2B2118;
  --color-text-muted: #6E5E52;
  --color-border: #EFE3D3;

  --color-red: #C1440E;
  --color-red-dark: #9A350A;
  --color-red-light: #FBE6DC;
  --color-red-border: #F0C9B7;
  --color-yellow: #E4A93A;
  --color-yellow-dark: #C98A1F;
  --color-green: #7A9D54;
  --color-green-dark: #5F7E3D;
  --color-maroon: #7A1F2B;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(43, 33, 24, 0.06);
  --shadow-md: 0 12px 30px rgba(43, 33, 24, 0.10);
  --shadow-lg: 0 20px 50px rgba(43, 33, 24, 0.14);

  --container-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 16px;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 17px;
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-red);
  color: var(--color-red);
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
}
.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-small {
  padding: 10px 22px;
  font-size: 14px;
}

/* ============================
   Header
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-maroon);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}
.nav-link:hover { color: var(--color-red); }

/* Categories dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}

.nav-caret {
  transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 170px;
  z-index: 50;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}
.nav-dropdown-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-red);
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================
   Hero
   ============================ */
.hero {
  padding-top: 90px;
  padding-bottom: 70px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-text {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}
.hero-blob--red {
  width: 260px; height: 260px;
  background: var(--color-red);
  top: -20px; left: 10px;
  opacity: 0.18;
}
.hero-blob--yellow {
  width: 220px; height: 220px;
  background: var(--color-yellow);
  bottom: -10px; right: 10px;
  opacity: 0.25;
}
.hero-blob--green {
  width: 180px; height: 180px;
  background: var(--color-green);
  bottom: 40px; left: 40px;
  opacity: 0.2;
}

.hero-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  max-width: 92%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--color-red), var(--color-yellow), var(--color-green), var(--color-red));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  opacity: 0.4;
}

.hero-logo-img {
  position: relative;
  z-index: 2;
  width: 340px;
  max-width: 100%;
}

/* Orbiting product thumbnails around the fixed, upright logo */
.hero-orbit {
  position: absolute;
  width: 420px;
  height: 420px;
  max-width: 92%;
  aspect-ratio: 1 / 1;
  --orbit-radius: 200px;
  animation: hero-orbit-spin 34s linear infinite;
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  /* Rotate into position, translate out along the radius, then rotate back —
     this cancels the item's own placement angle so only the ancestor's
     spin (countered below) affects its orientation, keeping it upright. */
  transform: rotate(var(--item-angle, 0deg)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--item-angle, 0deg)));
}

.orbit-item-face {
  position: absolute;
  top: -46px;
  left: -46px;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hero-orbit-counter-spin 34s linear infinite;
}
.orbit-item-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(43, 33, 24, 0.28));
}

@media (max-width: 900px) {
  .hero-orbit { --orbit-radius: 120px; }
  .orbit-item-face { width: 68px; height: 68px; top: -34px; left: -34px; }
}

@keyframes hero-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes hero-orbit-counter-spin {
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit, .orbit-item-face { animation: none; }
}

/* ============================
   Categories
   ============================ */
.categories { background: var(--color-bg-alt); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 420px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-overlay {
  position: absolute;
  inset: 0;
}

.category-card--spices .category-overlay {
  background: linear-gradient(180deg, rgba(154, 53, 10, 0.15) 0%, rgba(97, 26, 6, 0.82) 100%);
}
.category-card--premixes .category-overlay {
  background: linear-gradient(180deg, rgba(120, 96, 15, 0.12) 0%, rgba(68, 78, 20, 0.85) 100%);
}

.category-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-weight: 700;
  font-size: 14px;
}

.category-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 32px;
  color: #fff;
}

.category-content h3 {
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.category-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  max-width: 380px;
  margin-bottom: 22px;
}

.category-card--soon {
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px dashed var(--color-border);
  min-height: 420px;
}

.category-content--center {
  text-align: center;
  color: var(--color-text-muted);
  padding: 32px;
  margin: auto;
}

.soon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-red);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.category-card--soon h3 {
  color: var(--color-text);
  font-size: 24px;
  margin-bottom: 8px;
}
.category-card--soon p {
  color: var(--color-text-muted);
  font-size: 15px;
  max-width: 260px;
  margin: 0 auto;
}

/* ============================
   Category listing pages
   ============================ */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--color-red); }
.breadcrumb .breadcrumb-sep { opacity: 0.5; }
.breadcrumb .breadcrumb-current { color: var(--color-text); font-weight: 600; }

.page-banner {
  padding-top: 64px;
  padding-bottom: 56px;
  text-align: center;
}
.page-banner--spices { background: linear-gradient(180deg, rgba(193, 68, 14, 0.08), transparent); }
.page-banner--premixes { background: linear-gradient(180deg, rgba(122, 157, 84, 0.12), transparent); }

.page-banner h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 600;
  margin-bottom: 16px;
}

.page-banner p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 17px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 20px 0;
  background: #FFFFFF;
  min-height: 250px;
}
.product-image img {
  width: 100%;
  max-width: 190px;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(43, 33, 24, 0.18));
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px 26px 30px;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--color-text-muted);
  font-size: 14.5px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-cta {
  align-self: center;
}

.category-back-cta {
  text-align: center;
  margin-top: 64px;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}
.category-back-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}
.category-back-cta p {
  color: var(--color-text-muted);
  margin-bottom: 26px;
}

/* ============================
   About
   ============================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.feature-icon--green { background: rgba(122, 157, 84, 0.15); color: var(--color-green-dark); }
.feature-icon--red { background: rgba(193, 68, 14, 0.12); color: var(--color-red); }
.feature-icon--yellow { background: rgba(228, 169, 58, 0.18); color: var(--color-yellow-dark); }

.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ============================
   Contact
   ============================ */
.contact { background: var(--color-bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(193, 68, 14, 0.1);
  color: var(--color-red);
}

.contact-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-info-item a {
  font-weight: 600;
  font-size: 15.5px;
}
.contact-info-item a:hover { color: var(--color-red); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
  background: var(--color-red);
  color: #fff;
  transform: translateY(-2px);
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-row .optional {
  color: var(--color-text-muted);
  font-weight: 400;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(193, 68, 14, 0.12);
}

.form-row textarea { resize: vertical; }

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}
.form-status.success { color: var(--color-green-dark); }
.form-status.error { color: var(--color-red); }

/* ============================
   Footer
   ============================ */
.site-footer {
  background: var(--color-red-light);
  color: var(--color-text);
  padding-top: 56px;
  border-top: 1px solid var(--color-red-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-red-border);
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 15px; color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-red); }

.social-links--footer .social-icon {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.social-links--footer .social-icon:hover {
  background: var(--color-red);
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px 28px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
  section { padding: 72px 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; min-height: 280px; margin-bottom: 12px; }
  .hero-ring { width: 280px; height: 280px; }
  .hero-logo-img { width: 240px; }

  .category-grid { grid-template-columns: 1fr; }
  .category-card, .category-card--soon { min-height: 340px; }

  .feature-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .brand-logo { height: 36px; }

  .nav.nav-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .site-header { position: sticky; }

  .nav.nav-open .nav-dropdown {
    width: 100%;
  }
  .nav.nav-open .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .nav.nav-open .nav-dropdown-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    background: none;
    padding: 4px 0 0 14px;
    min-width: 0;
  }
  .nav.nav-open .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .contact-form { padding: 28px; }
  .contact-info { padding: 28px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
