/* ==========================================================
   ACHARYA PP LOGESHWAR — DESIGN TOKENS
   Palette drawn from temple brass lamps, kumkum, and banana-leaf
   ivory — not a generic "spiritual site" gradient.
   ========================================================== */
:root {
  --ivory:        #F7FAF7;   /* base background — soft lotus-petal white */
  --ivory-deep:    #EDF4EE;  /* section alternation */
  --maroon:       #1F6F72;   /* logo teal — used as the primary accent color */
  --maroon-deep:  #164F52;   /* deep teal — headings, footer, dark surfaces */
  --brass:        #7CB966;   /* logo leaf-green — secondary accent/borders */
  --brass-light:  #A8D98C;
  --teal:         #1D4E4A;   /* deep teal-green — wellness section backdrop */
  --ink:          #22302E;   /* body text */
  --ink-soft:     #55645F;
  --white:        #FFFFFF;

  --font-display: 'Raleway', 'Noto Serif Tamil', serif;
  --font-body:    'Raleway', 'Noto Sans', 'Noto Sans Tamil', sans-serif;

  --radius: 2px;
  --shadow-soft: 0 12px 32px rgba(85, 25, 15, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--maroon-deep);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--brass);
  font-weight: 600;
}

/* ---------- Kolam divider — the signature element ---------- */
.kolam-divider {
  width: 100%;
  height: 28px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  opacity: 0.85;
}
.kolam-divider svg { height: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--maroon); color: var(--ivory); }
.btn-primary:hover { box-shadow: var(--shadow-soft); background: var(--maroon-deep); }
.btn-compact { padding: 10px 20px; font-size: 0.82rem; }
.nav-cta-link {
  color: var(--maroon-deep); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.nav-cta-link:hover { color: var(--brass); gap: 10px; }
.nav-cart-link { position: relative; color: var(--maroon-deep); font-weight: 500; font-size: 0.86rem; text-decoration: none; }
.nav-cart-link:hover { color: var(--brass); }
.nav-cart-badge {
  position: absolute; top: -9px; right: -14px; background: var(--brass);
  color: #fff; font-size: 0.65rem; font-weight: 700; border-radius: 50%;
  width: 17px; height: 17px; display: flex; align-items: center; justify-content: center;
}
.btn-outline { border-color: var(--brass); color: var(--maroon-deep); background: transparent; }
.btn-outline:hover { background: var(--brass-light); }
.btn-ghost { color: var(--ivory); border-color: rgba(255,255,255,0.5); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.main-nav-strip { background: var(--ivory); border-bottom: 1px solid rgba(22,79,82,0.12); }
.nav-split {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
}
.nav-side { display: flex; align-items: center; gap: 22px; }
.nav-side.nav-left { justify-self: end; padding-right: 28px; }
.nav-side.nav-right { justify-self: start; padding-left: 28px; gap: 18px; }
.nav-side ul { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-side li { list-style: none; }
.nav-side a {
  display: block; padding: 18px 0;
  font-size: 0.86rem; font-weight: 500; color: var(--maroon-deep);
  text-decoration: none; white-space: nowrap; position: relative;
}
.nav-side a::after {
  content: ''; position: absolute; left: 0; bottom: 12px;
  width: 0; height: 2px; background: var(--brass-light);
  transition: width 0.25s ease;
}
.nav-side a:hover::after { width: 100%; }
.nav-side a:hover { color: var(--brass); }

.brand-center { display: flex; align-items: center; padding: 8px 0; }
.brand-logo { height: 64px; width: auto; }

.lang-switch select {
  font-family: var(--font-body); border: 1px solid rgba(22,79,82,0.3);
  background: rgba(22,79,82,0.05); color: var(--maroon-deep);
  padding: 6px 10px; border-radius: 3px;
  font-size: 0.78rem; cursor: pointer;
}
.lang-switch select option { color: var(--ink); }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--maroon-deep); line-height: 1; padding: 4px; }
.mobile-header-row { display: none; }
.mobile-menu-extras { display: none; }
ul.main-nav { display: none; }

@media (max-width: 900px) {
  .nav-split { display: none; }
  .mobile-header-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; background: var(--ivory);
    box-shadow: 0 2px 10px rgba(22,79,82,0.08);
  }
  .mobile-header-row .brand-logo { height: 52px; }
  .menu-toggle { display: block; color: var(--maroon-deep); }
  ul.main-nav { display: none; }
  ul.main-nav.open {
    display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0;
    background: var(--maroon-deep); padding: 10px 22px 24px; gap: 2px; z-index: 90;
    max-height: calc(100vh - 72px); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  }
  ul.main-nav.open li { list-style: none; }
  ul.main-nav.open a {
    display: block; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(251,245,234,0.9); text-decoration: none;
  }
  .mobile-menu-extras { display: flex !important; flex-direction: column; gap: 12px; padding-top: 14px; }
  .mobile-menu-extras .lang-switch select { width: 100%; background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
  .mobile-menu-extras .lang-switch select option { color: var(--ink); }
  .mobile-menu-extras .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ---------- Hero / Banner ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(42,20,14,0.55), rgba(42,20,14,0.72)), var(--maroon-deep);
  background-size: cover; background-position: center;
  color: var(--ivory); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 12% 20%, rgba(217,179,102,0.18), transparent 40%),
                     radial-gradient(circle at 88% 78%, rgba(217,179,102,0.14), transparent 45%);
  pointer-events: none;
}
.hero-banner-img-link { display: block; line-height: 0; cursor: pointer; }
.hero-banner-img { width: 100%; height: auto; display: block; }
.hero-content { max-width: 680px; position: relative; z-index: 2; }
.hero .eyebrow { color: var(--brass-light); }
.hero h1 { color: var(--ivory); margin: 14px 0 18px; }
.hero p { font-size: 1.08rem; color: rgba(251,245,234,0.9); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .hero {
    min-height: 62vh;
    background-position: center 30%;
  }
  .hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(22,15,10,0.35), rgba(22,15,10,0.75));
    pointer-events: none;
  }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 2.1rem; margin: 10px 0 14px; }
  .hero p { font-size: 0.95rem; margin-bottom: 22px; }
  .hero-actions .btn { flex: 1; min-width: 140px; text-align: center; justify-content: center; }
}
@media (max-width: 420px) {
  .hero { min-height: 56vh; }
  .hero h1 { font-size: 1.75rem; }
}

/* ---------- Page banner carousel (About/Services/Poojas/Events/Products/Contact) ---------- */
.page-hero-carousel { position: relative; overflow: hidden; min-height: 42vh; }
.pbc-track { display: flex; height: 100%; transition: transform 0.6s ease; }
.pbc-slide {
  min-width: 100%; min-height: 42vh; position: relative;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.pbc-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,15,10,0.35), rgba(22,15,10,0.65)); }
.pbc-content { position: relative; z-index: 2; color: var(--ivory); }
.pbc-content .eyebrow { color: var(--brass-light); }
.pbc-content h1 { color: var(--ivory); margin-top: 10px; }
.pbc-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.pbc-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; }
.pbc-dot.active { background: #fff; }
@media (max-width: 700px) {
  .page-hero-carousel, .pbc-slide { min-height: 34vh; }
}

/* ---------- Modern product card (ecommerce style) ---------- */
.grid-shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .grid-shop { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-shop { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .grid-shop { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(22,79,82,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 12px 28px rgba(22,79,82,0.14); transform: translateY(-3px); }
.product-card-img { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ivory-deep); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.pc-badge {
  position: absolute; top: 10px; right: 10px; color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 20px;
}
.pc-badge-out { background: rgba(179,65,59,0.92); left: 10px; right: auto; }
.pc-badge-featured { background: linear-gradient(135deg, #B08D3F, #7CB966); }
.product-card-body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 0.94rem; margin-bottom: 6px; line-height: 1.3; font-weight: 600; }
.product-card-body h3 a { color: var(--ink); text-decoration: none; }
.product-card-body h3 a:hover { color: var(--teal); }
.pc-price { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }

.qty-stepper {
  display: inline-flex; align-items: center; border: 1px solid rgba(22,79,82,0.25);
  border-radius: 6px; overflow: hidden; margin-bottom: 10px; width: fit-content;
}
.qty-stepper-sm { width: 100%; justify-content: center; }
.qty-btn {
  width: 30px; height: 30px; border: none; background: var(--ivory-deep); color: var(--teal);
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.qty-btn:hover { background: rgba(124,185,102,0.25); }
.qty-input {
  width: 100%; height: 30px; border: none; border-left: 1px solid rgba(22,79,82,0.15);
  border-right: 1px solid rgba(22,79,82,0.15); text-align: center; font-size: 0.9rem;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-add-btn {
  width: 100%; padding: 11px; border: none; border-radius: 6px;
  background: var(--brass); color: #fff; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.02em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s ease;
}
.pc-add-btn:hover { background: var(--teal); }

/* ---------- Add to cart toast ---------- */
#cartToast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--teal); color: #fff; padding: 12px 24px; border-radius: 30px;
  font-size: 0.9rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 500;
}
#cartToast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- Homepage product carousel ---------- */
.product-carousel-wrap { position: relative; }
.product-carousel {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.product-carousel .card, .product-carousel-item { width: 240px; min-width: 240px; max-width: 240px; scroll-snap-align: start; flex-shrink: 0; }
.product-carousel-nav {
  display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px;
}
.pc-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--brass);
  background: var(--white); color: var(--maroon-deep); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.pc-arrow:hover { background: var(--brass-light); }

/* ---------- Ecommerce-style shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.shop-sidebar {
  position: sticky; top: 90px; background: var(--white); border: 1px solid rgba(22,79,82,0.08);
  border-radius: 10px; padding: 22px 20px;
}
.shop-search { display: flex; gap: 8px; margin-bottom: 24px; }
.shop-search input {
  flex: 1; padding: 10px 13px; border: 1px solid rgba(22,79,82,0.2);
  border-radius: 6px; font-family: var(--font-body); font-size: 0.88rem;
}
.shop-search input:focus { outline: none; border-color: var(--teal); }
.shop-search button {
  background: var(--teal); color: #fff; border: none; border-radius: 6px;
  padding: 0 15px; cursor: pointer; font-size: 1rem;
}
.shop-search button:hover { background: var(--maroon-deep); }
.shop-filter-block { padding-top: 18px; border-top: 1px solid rgba(22,79,82,0.08); margin-bottom: 4px; }
.shop-filter-block:first-of-type { border-top: none; padding-top: 0; }
.shop-filter-block h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.shop-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-price-inputs input {
  padding: 9px 10px; border: 1px solid rgba(22,79,82,0.2); border-radius: 6px; font-size: 0.85rem;
}
.shop-price-inputs input:focus { outline: none; border-color: var(--teal); }
.shop-cat-list { list-style: none; margin: 0; padding: 0; }
.shop-cat-list li { margin-bottom: 2px; }
.shop-cat-list a {
  display: block; padding: 8px 10px; color: var(--ink-soft); text-decoration: none;
  font-size: 0.88rem; border-radius: 6px; transition: all 0.15s ease;
}
.shop-cat-list a:hover { background: var(--ivory-deep); color: var(--teal); }
.shop-cat-list a.active { background: rgba(124,185,102,0.15); color: var(--teal); font-weight: 700; }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; margin-bottom: 24px; }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-alt { background: var(--ivory-deep); }
.section-dark { background: var(--teal); color: var(--ivory); }
.section-dark h2, .section-dark .eyebrow { color: var(--ivory); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid rgba(176,141,63,0.25);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.card img { height: 190px; object-fit: cover; width: 100%; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.card-tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal); font-weight: 700;
  background: rgba(36,71,59,0.1); padding: 3px 10px; border-radius: 20px;
  margin-bottom: 10px; width: fit-content;
}
.card-body .btn { margin-top: 16px; align-self: flex-start; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white); border-left: 3px solid var(--brass);
  padding: 26px; border-radius: var(--radius);
}
.testimonial p.quote { font-style: italic; color: var(--ink-soft); margin-bottom: 14px; }
.testimonial .who { font-family: var(--font-display); color: var(--maroon-deep); font-size: 0.95rem; }
.testimonial .where { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Events ---------- */
.event-row {
  display: flex; gap: 20px; align-items: center; background: var(--white);
  padding: 18px 22px; border-radius: var(--radius); border: 1px solid rgba(176,141,63,0.25);
  margin-bottom: 14px;
}
.event-date {
  background: var(--maroon); color: var(--ivory); text-align: center;
  padding: 10px 16px; border-radius: var(--radius); font-family: var(--font-display);
  min-width: 74px;
}
.event-date .day { font-size: 1.4rem; display: block; line-height: 1; }
.event-date .mon { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-info h3 { margin-bottom: 4px; font-size: 1.05rem; }
.event-info span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Global reach map strip ---------- */
.reach-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.reach-chip {
  border: 1px solid var(--brass); padding: 8px 18px; border-radius: 30px;
  font-size: 0.85rem; color: var(--maroon-deep); background: var(--white);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(176,141,63,0.4);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--maroon-deep); color: rgba(251,245,234,0.85); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--brass-light); font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid a { color: rgba(251,245,234,0.75); font-size: 0.9rem; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--brass-light); }
.footer-bottom {
  border-top: 1px solid rgba(251,245,234,0.15); padding-top: 22px;
  text-align: center; font-size: 0.8rem; color: rgba(251,245,234,0.55);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
