/* Akshaya Paatra — static site styles
   Brand: terracotta #b05f2c, gold accents #956f32 / #dfa027
   Fonts: Raleway (headings/UI), Lato (body) */

:root {
  --brand: #b05f2c;
  --brand-dark: #8a4a22;
  --gold: #dfa027;
  --gold-dark: #956f32;
  --ink: #2b2420;
  --text: #4d4d4d;
  --text-light: #767676;
  --bg: #fffaf5;
  --bg-alt: #f8f1e7;
  --border: #e6e0d6;
  --white: #ffffff;
  --max-width: 1180px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(139, 74, 34, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', system-ui, sans-serif;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 0.5em;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--brand); }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1ebc59; transform: translateY(-1px); }
.btn-small { padding: 8px 18px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.97);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}
.site-header__logo img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a:not(.btn) {
  display: block;
  padding: 10px 16px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-radius: 6px;
}
.main-nav > li > a:not(.btn):hover,
.main-nav > li.is-active > a:not(.btn) { color: var(--brand); }

.main-nav .dropdown { position: relative; }
.main-nav .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
  border: 1px solid var(--border);
}
.main-nav .dropdown:hover .dropdown-menu,
.main-nav .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 18px;
}
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px; height: 42px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Mobile nav (own stacking layer, not nested under blurred header) ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 90px 24px 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > li > a:not(.btn) { padding: 14px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
    padding: 0 0 0 16px;
  }
  .main-nav .dropdown.is-open .dropdown-menu { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--gold-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  object-fit: cover;
  opacity: 0.35;
}
.hero__content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); max-width: 640px; }
.hero p { font-size: 18px; max-width: 560px; opacity: 0.95; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--gold-dark) 100%);
  color: #fff;
  padding: 70px 0 50px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb { color: rgba(255,255,255,0.85); font-size: 14px; }
.breadcrumb a { color: #fff; text-decoration: underline; }

/* ---------- Category cards (home) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 60px 0;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card__label {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(20,10,5,0.85), transparent);
  color: #fff;
  padding: 40px 18px 18px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-header .eyebrow {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

/* ---------- Product grid ---------- */
.subcategory-block { margin-bottom: 48px; }
.subcategory-block h2 {
  font-size: 22px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card__img {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__img .placeholder-icon { font-size: 40px; opacity: 0.4; }
.product-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__name { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.product-card__unit { font-size: 12.5px; color: var(--text-light); }
.product-card__price { font-weight: 700; color: var(--brand); font-size: 16px; }
.product-card__price .old { color: var(--text-light); text-decoration: line-through; font-weight: 400; font-size: 13px; margin-left: 6px; }
.product-card__price .unpriced { color: var(--text-light); font-weight: 600; font-size: 13.5px; font-style: italic; }
.product-card__options { font-size: 12.5px; color: var(--text-light); }
.product-card__actions { margin-top: auto; padding-top: 8px; }

/* ---------- Buttons: add to order ---------- */
.add-order-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1.5px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  font-size: 13.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.add-order-btn:hover { background: var(--brand); color: #fff; }
.add-order-btn.is-added { background: var(--brand); color: #fff; }

/* ---------- About page ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-story img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-story .signature { font-family: 'Raleway', sans-serif; font-style: italic; margin-top: 18px; color: var(--gold-dark); }

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item__q::after { content: '+'; font-size: 22px; color: var(--brand); }
.faq-item.is-open .faq-item__q::after { content: '\2212'; }
.faq-item__a {
  display: none;
  padding: 0 0 20px;
  color: var(--text);
}
.faq-item.is-open .faq-item__a { display: block; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.form-note { font-size: 13px; color: var(--text-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cfc4; padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h6 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.site-footer .logo img { height: 44px; margin-bottom: 14px; }
.site-footer p { font-size: 14px; color: #b6a99a; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { margin-bottom: 12px; font-size: 14px; display: flex; gap: 10px; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #8a7d6f; }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--white);
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid var(--border);
}
.cart-drawer__close { background: none; border: none; font-size: 22px; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-line__name { font-size: 14px; font-weight: 600; }
.cart-line__meta { font-size: 12.5px; color: var(--text-light); }
.cart-line__remove { background: none; border: none; color: #c0392b; font-size: 13px; }
.cart-drawer__footer { padding: 18px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(20,10,5,0.4);
  z-index: 199; display: none;
}
.cart-overlay.is-open { display: block; }
.cart-empty { color: var(--text-light); text-align: center; padding: 40px 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 760px) {
  .about-story, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
