:root {
  --primary: hsl(16, 100%, 50%);
  --primary-dark: hsl(16, 100%, 40%);
  --primary-light: hsl(16, 100%, 96%);
  --accent: hsl(35, 90%, 55%);
  --foreground: hsl(20, 15%, 15%);
  --muted-foreground: hsl(20, 8%, 40%);
  --background: hsl(30, 40%, 98%);
  --card: #ffffff;
  --border: hsl(20, 15%, 88%);
  --muted: hsl(30, 25%, 94%);
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  flex-wrap: wrap;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar .logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--foreground);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: var(--muted);
  color: var(--primary);
}

.nav-link[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.45), var(--background));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 1.25rem 4rem;
  max-width: 840px;
}

.hero-content .logo-badge img {
  height: 130px;
  width: auto;
  margin: 0 auto 2rem;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin: 0 auto 1.5rem;
  opacity: 0.95;
  max-width: 640px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-small {
  min-height: 55vh;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.section-header p {
  color: var(--muted-foreground);
  max-width: 620px;
  margin: 0 auto;
}

/* Category grid (home) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.category-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(to bottom right, hsl(16, 100%, 55%), hsl(16, 100%, 45%));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: scale(1.05);
  border-color: #fff;
  box-shadow: var(--shadow-md);
}

.category-tile svg {
  width: 2.25rem;
  height: 2.25rem;
}

.category-tile h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-tile p {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Remedy category cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 87, 34, 0.3);
}

.info-card .icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: linear-gradient(to bottom right, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.info-card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.group-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2.5rem 0 1rem;
}

.group-heading:first-of-type {
  margin-top: 0;
}

/* Search & filters */
.search-wrap {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  font-size: 1rem;
  background: var(--card);
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-wrap .icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted-foreground);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.filter-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  transform: scale(1.05);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Remedy cards */
.remedy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.remedy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.remedy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 87, 34, 0.3);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--primary);
  color: #fff;
  margin-bottom: 0.75rem;
}

.remedy-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
}

.remedy-card .tamil-name {
  display: block;
  font-weight: 400;
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

.remedy-card .problem {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.remedy-card .description {
  font-size: 0.87rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin: 0.5rem 0;
}

.remedy-card .temples-label {
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0.5rem;
}

.remedy-card ul.temples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.remedy-card ul.temples li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.87rem;
}

.remedy-card ul.temples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.remedy-card ul.temples li .temple-name {
  font-weight: 600;
}

.remedy-card ul.temples li .temple-location {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.remedy-card .show-more {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0 0;
  text-align: left;
}

.no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted-foreground);
}

/* Philosophy */
.philosophy {
  background: var(--muted);
}

.philosophy .container {
  max-width: 820px;
}

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.alert-primary {
  background: rgba(255, 87, 34, 0.06);
  border: 1px solid rgba(255, 87, 34, 0.2);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.philosophy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.philosophy-card h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.philosophy-card ul {
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.philosophy-card ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.philosophy-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.philosophy-card p {
  color: var(--muted-foreground);
}

.philosophy-card .sub-block {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}

.order-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.order-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.order-list li .num {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Contact */
.contact {
  background: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid-single {
  grid-template-columns: 1fr;
  max-width: 480px;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-info-item svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-info-item .label {
  font-weight: 600;
  margin: 0;
}

.contact-info-item .value {
  color: var(--muted-foreground);
  margin: 0;
}

/* Footer */
footer {
  background: var(--muted);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

footer .footer-logo img {
  height: 48px;
  width: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

footer .footer-logo span {
  font-size: 1.4rem;
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.social-links a:hover {
  transform: scale(1.05);
  border-color: rgba(255, 87, 34, 0.5);
  box-shadow: var(--shadow);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--primary);
}

footer .copyright {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-weight: 500;
  margin: 0;
}

footer .tagline {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  max-width: 420px;
  margin: 0;
}

/* Floating buttons */
.floating-contact {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fab {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
  color: #fff;
}

.fab:hover {
  transform: scale(1.1);
}

.fab-whatsapp {
  background: #25d366;
}

.fab-email {
  background: var(--primary);
}

/* Icon sizing */
.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.35rem;
  height: 1.35rem;
}

@media (max-width: 640px) {
  .navbar .logo img {
    height: 34px;
  }

  .navbar .container {
    flex-wrap: nowrap;
  }

  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    white-space: nowrap;
  }

  section {
    padding: 3rem 0;
  }
}
