/* =========================================================
   KSR TRADERS RICE
   ANIMATED RESPONSIVE CSS
   Chinnasalem Stores
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Noto+Sans+Tamil:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap");

/* =========================================================
   ROOT
========================================================= */

:root {
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;

  --gold-700: #a16207;
  --gold-600: #ca8a04;
  --gold-500: #eab308;
  --gold-400: #facc15;
  --gold-300: #fde047;

  --cream: #fffdf5;
  --cream-2: #fffbeb;
  --cream-3: #fef3c7;

  --brown-950: #27180d;
  --brown-900: #3b1f0b;
  --brown-800: #5b2c0b;
  --brown-700: #78350f;

  --text: #24150d;
  --muted: #6b625b;

  --white: #ffffff;
  --black: #111111;

  --border: rgba(127, 29, 29, 0.12);

  --shadow-sm: 0 8px 25px rgba(69, 10, 10, 0.08);
  --shadow: 0 20px 60px rgba(69, 10, 10, 0.13);
  --shadow-lg: 0 30px 90px rgba(69, 10, 10, 0.18);

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;

  --max-width: 1180px;

  --transition: 0.35s ease;
}

/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

::selection {
  background: var(--gold-400);
  color: var(--red-950);
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

/* =========================================================
   PAGE LOADER
========================================================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(
      circle at center,
      rgba(234, 179, 8, 0.12),
      transparent 35%
    ),
    var(--red-950);

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-rice {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.loader-rice span {
  width: 10px;
  height: 25px;
  background: var(--gold-400);
  border-radius: 50%;
  transform: rotate(35deg);
  animation: riceLoader 1s infinite ease-in-out;
}

.loader-rice span:nth-child(2) {
  animation-delay: 0.1s;
}

.loader-rice span:nth-child(3) {
  animation-delay: 0.2s;
}

.loader-rice span:nth-child(4) {
  animation-delay: 0.3s;
}

.loader-rice span:nth-child(5) {
  animation-delay: 0.4s;
}

.page-loader p {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes riceLoader {
  0%,
  100% {
    transform: translateY(0) rotate(35deg);
    opacity: 0.45;
  }

  50% {
    transform: translateY(-14px) rotate(35deg);
    opacity: 1;
  }
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;

  background: rgba(255, 253, 245, 0.88);
  border-bottom: 1px solid transparent;

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 253, 245, 0.97);
  border-color: var(--border);
  box-shadow: 0 8px 35px rgba(69, 10, 10, 0.1);
}

.nav-container {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  flex-shrink: 0;
}

.logo-symbol {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  border-radius: 16px;

  color: var(--white);
  font-size: 16px;
  font-weight: 800;

  background:
    linear-gradient(
      145deg,
      var(--red-700),
      var(--red-950)
    );

  box-shadow:
    0 8px 25px rgba(127, 29, 29, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  transform: rotate(-3deg);
  transition: var(--transition);
}

.logo:hover .logo-symbol {
  transform: rotate(0deg) scale(1.07);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  color: var(--red-900);
  font-size: 18px;
  font-weight: 800;
}

.logo-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

/* =========================================================
   NAVIGATION
========================================================= */

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

.nav-link {
  position: relative;

  padding: 10px 13px;

  color: var(--text);
  font-size: 14px;
  font-weight: 600;

  transition: var(--transition);
}

.nav-link::after {
  content: "";

  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;

  height: 2px;

  background: var(--red-700);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red-700);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;

  width: 46px;
  height: 46px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--white);

  cursor: pointer;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 21px;
  height: 2px;

  border-radius: 20px;

  background: var(--red-900);

  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
  position: relative;
  min-height: 820px;

  padding: 150px 0 100px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 75% 25%,
      rgba(250, 204, 21, 0.22),
      transparent 25%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(220, 38, 38, 0.08),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #fffdf5,
      #fff7dc
    );
}

.hero-section::before {
  content: "";

  position: absolute;
  width: 600px;
  height: 600px;

  right: -250px;
  top: 100px;

  border: 1px solid rgba(127, 29, 29, 0.08);
  border-radius: 50%;

  animation: rotateSlow 25s linear infinite;
}

.hero-section::after {
  content: "";

  position: absolute;
  width: 350px;
  height: 350px;

  left: -180px;
  bottom: -120px;

  border-radius: 50%;

  background: rgba(234, 179, 8, 0.08);

  animation: floatCircle 7s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;

  align-items: center;
  gap: 70px;
}

.hero-content {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 22px;

  color: var(--red-800);
  font-size: 13px;
  font-weight: 800;

  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.eyebrow span {
  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--gold-500);

  box-shadow: 0 0 0 7px rgba(234, 179, 8, 0.12);

  animation: pulseDot 2s infinite;
}

.hero-content h1 {
  max-width: 700px;

  font-family: "Baloo 2", "Noto Sans Tamil", sans-serif;

  color: var(--brown-950);

  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 800;

  letter-spacing: -1.5px;
}

.hero-content h1 span {
  display: block;
  color: var(--red-800);
}

.hero-content h2 {
  margin-top: 25px;

  color: var(--brown-800);

  font-size: clamp(20px, 3vw, 31px);
  line-height: 1.25;
  font-weight: 800;
}

.tamil-text {
  color: var(--red-700);
  font-family: "Noto Sans Tamil", sans-serif;
}

.hero-description {
  max-width: 600px;

  margin-top: 23px;

  color: var(--muted);

  font-size: 16px;
}

.hero-description strong {
  color: var(--red-800);
}

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

  margin-top: 32px;
}

.btn {
  min-height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 0 24px;

  border-radius: 14px;

  font-size: 14px;
  font-weight: 800;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--red-600),
      var(--red-950)
    );

  box-shadow:
    0 12px 30px rgba(127, 29, 29, 0.25);
}

.btn-primary:hover {
  box-shadow:
    0 18px 38px rgba(127, 29, 29, 0.32);
}

.btn-outline {
  color: var(--red-800);

  border: 1px solid rgba(127, 29, 29, 0.2);

  background: rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;

  margin-top: 45px;
}

.hero-points > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points strong {
  color: var(--red-800);
  font-size: 17px;
}

.hero-points span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
  position: relative;
  min-height: 550px;

  display: grid;
  place-items: center;
}

.hero-image-card {
  position: relative;

  width: min(100%, 500px);

  padding: 14px;

  border-radius: 36px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 247, 220, 0.8)
    );

  box-shadow: var(--shadow-lg);

  transform: rotate(2deg);

  animation: heroCardFloat 6s ease-in-out infinite;
}

.hero-image-card::before {
  content: "";

  position: absolute;
  inset: -10px;

  border: 1px solid rgba(202, 138, 4, 0.2);
  border-radius: 44px;

  z-index: -1;
}

.image-glow {
  position: absolute;
  inset: 20px;

  background: rgba(234, 179, 8, 0.25);

  filter: blur(35px);

  z-index: -2;
}

.hero-image-card img {
  height: 470px;

  object-fit: cover;

  border-radius: 27px;
}

.floating-brand {
  position: absolute;

  left: -45px;
  bottom: -55px;

  min-width: 190px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 15px 18px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.95);

  box-shadow: var(--shadow);

  backdrop-filter: blur(10px);

  animation: floatingBadge 5s ease-in-out infinite;
}

.floating-brand > span {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  color: var(--white);
  font-size: 13px;
  font-weight: 800;

  background: var(--red-800);
}

.floating-brand strong {
  display: block;

  color: var(--red-900);

  font-size: 14px;
}

.floating-brand small {
  color: var(--muted);
  font-size: 11px;
}

.floating-rice {
  position: absolute;

  display: grid;
  place-items: center;

  border-radius: 50%;

  box-shadow: var(--shadow);

  background: rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(10px);

  animation: floatingRice 5s ease-in-out infinite;
}

.rice-card-1 {
  width: 82px;
  height: 82px;

  right: -15px;
  top: 55px;

  font-size: 36px;

  animation-delay: 0.5s;
}

.rice-card-2 {
  width: 70px;
  height: 70px;

  right: 30px;
  bottom: 60px;

  font-size: 31px;

  animation-delay: 1.2s;
}

.hero-bg-rice {
  position: absolute;

  color: rgba(127, 29, 29, 0.09);

  pointer-events: none;

  user-select: none;

  animation: backgroundRice 8s ease-in-out infinite;
}

.rice-1 {
  top: 18%;
  left: 5%;

  font-size: 55px;
}

.rice-2 {
  right: 5%;
  top: 15%;

  font-size: 75px;

  animation-delay: 1s;
}

.rice-3 {
  left: 35%;
  bottom: 8%;

  font-size: 50px;

  animation-delay: 2s;
}

/* =========================================================
   BRAND STRIP
========================================================= */

.brand-strip {
  position: relative;
  z-index: 5;

  padding: 22px 0;

  color: var(--white);

  background:
    linear-gradient(
      90deg,
      var(--red-950),
      var(--red-800),
      var(--red-950)
    );
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 25px;

  text-align: center;
}

.brand-strip-inner > span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.grain-line {
  width: 70px;
  height: 1px;

  background: rgba(250, 204, 21, 0.6);

  position: relative;
}

.grain-line::after {
  content: "🌾";

  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  padding: 0 5px;

  background: var(--red-800);

  font-size: 14px;
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
  position: relative;

  padding: 105px 0;

  overflow: hidden;
}

.section-heading {
  max-width: 760px;

  margin-bottom: 55px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-tag {
  display: inline-block;

  margin-bottom: 14px;

  color: var(--red-700);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--brown-950);

  font-family: "Baloo 2", "Noto Sans Tamil", sans-serif;

  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 800;
}

.section-heading h2 span {
  color: var(--red-700);
}

.section-heading p {
  max-width: 680px;

  margin-top: 18px;

  color: var(--muted);

  font-size: 15px;
}

.centered p {
  margin-inline: auto;
}

/* =========================================================
   ABOUT
========================================================= */

.about-section {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;

  align-items: center;

  gap: 80px;
}

.about-images {
  position: relative;

  min-height: 570px;
}

.about-image-main {
  position: absolute;

  width: 78%;

  left: 0;
  top: 0;

  padding: 10px;

  border-radius: 30px;

  background: var(--white);

  box-shadow: var(--shadow);
}

.about-image-main img {
  height: 430px;

  object-fit: cover;

  border-radius: 22px;
}

.about-image-small {
  position: absolute;

  width: 46%;

  right: 0;
  bottom: 20px;

  padding: 8px;

  border-radius: 24px;

  background: var(--white);

  box-shadow: var(--shadow-lg);

  transform: rotate(5deg);

  transition: var(--transition);
}

.about-image-small:hover {
  transform: rotate(0deg) scale(1.03);
}

.about-image-small img {
  height: 250px;

  object-fit: cover;

  border-radius: 17px;
}

.experience-badge {
  position: absolute;

  left: 12%;
  bottom: 65px;

  width: 125px;
  height: 125px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: var(--white);

  background:
    linear-gradient(
      145deg,
      var(--red-600),
      var(--red-950)
    );

  border: 7px solid var(--cream);

  box-shadow: var(--shadow);

  animation: badgeFloat 5s ease-in-out infinite;
}

.experience-badge strong {
  font-size: 22px;
  font-weight: 800;
}

.experience-badge span {
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.about-content {
  position: relative;
}

.content-number {
  position: absolute;

  right: 0;
  top: -30px;

  color: rgba(127, 29, 29, 0.06);

  font-size: 100px;
  font-weight: 900;

  line-height: 1;
}

.about-content h3 {
  position: relative;

  font-family: "Baloo 2", "Noto Sans Tamil", sans-serif;

  color: var(--brown-950);

  font-size: 38px;
  line-height: 1.1;
}

.about-content h3 span {
  display: block;

  margin-top: 5px;

  color: var(--red-700);

  font-family: "Noto Sans Tamil", sans-serif;

  font-size: 18px;
}

.about-content > p {
  position: relative;

  margin-top: 18px;

  color: var(--muted);

  font-size: 15px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 15px;

  margin-top: 28px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 15px;

  border: 1px solid var(--border);
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.7);

  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);

  border-color: rgba(127, 29, 29, 0.2);

  box-shadow: var(--shadow-sm);
}

.feature-item > span {
  width: 24px;
  height: 24px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 50%;

  color: var(--white);

  background: var(--red-700);

  font-size: 12px;
  font-weight: 800;
}

.feature-item strong {
  display: block;

  color: var(--brown-900);

  font-size: 12px;
}

.feature-item small {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-family: "Noto Sans Tamil", sans-serif;

  font-size: 10px;
}

/* =========================================================
   OWNER
========================================================= */

.owner-section {
  background:
    linear-gradient(
      135deg,
      var(--brown-950),
      var(--red-950)
    );

  color: var(--white);
}

.owner-section::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -250px;
  top: -200px;

  border: 1px solid rgba(250, 204, 21, 0.15);

  border-radius: 50%;

  animation: rotateSlow 25s linear infinite;
}

.owner-grid {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1fr 0.8fr;

  align-items: center;

  gap: 80px;
}

.owner-content .section-tag {
  color: var(--gold-400);
}

.owner-content h2 {
  font-family: "Baloo 2", "Noto Sans Tamil", sans-serif;

  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
}

.owner-content h2 span {
  display: block;

  color: var(--gold-400);
}

.owner-tamil {
  margin-top: 8px;

  color: var(--gold-300);

  font-family: "Noto Sans Tamil", sans-serif;

  font-size: 20px;
  font-weight: 700;
}

.owner-content > p:not(.owner-tamil) {
  max-width: 650px;

  margin-top: 22px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 15px;
}

.owner-content strong {
  color: var(--white);
}

.owner-quote {
  position: relative;

  margin-top: 30px;
  padding: 25px 25px 25px 55px;

  border-left: 3px solid var(--gold-400);

  background: rgba(255, 255, 255, 0.05);

  border-radius: 0 20px 20px 0;
}

.quote-mark {
  position: absolute;

  left: 17px;
  top: 12px;

  color: var(--gold-400);

  font-size: 40px;
  line-height: 1;
}

.owner-quote p {
  color: rgba(255, 255, 255, 0.8);

  font-size: 14px;
  font-style: italic;
}

.owner-card {
  position: relative;

  overflow: hidden;

  border-radius: 30px;

  background: var(--white);

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);

  transform: rotate(2deg);

  transition: 0.5s ease;
}

.owner-card:hover {
  transform: rotate(0deg) translateY(-8px);
}

.owner-photo {
  position: relative;
}

.owner-photo img {
  height: 460px;
  object-fit: cover;
}

.owner-photo-overlay {
  position: absolute;

  inset: 0;

  display: flex;
  align-items: flex-end;

  padding: 20px;

  background:
    linear-gradient(
      transparent 55%,
      rgba(0, 0, 0, 0.65)
    );
}

.owner-photo-overlay span {
  color: var(--gold-400);

  font-size: 35px;
  font-weight: 900;
}

.owner-card-info {
  padding: 25px;

  color: var(--brown-950);
}

.owner-card-info > span {
  color: var(--red-700);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 2px;
}

.owner-card-info h3 {
  margin-top: 5px;

  font-family: "Baloo 2", sans-serif;

  font-size: 28px;
}

.owner-card-info p {
  color: var(--red-700);

  font-family: "Noto Sans Tamil", sans-serif;

  font-size: 14px;
}

.owner-line {
  width: 50px;
  height: 3px;

  margin: 12px 0;

  border-radius: 20px;

  background: var(--gold-500);
}

.owner-card-info > strong {
  color: var(--muted);

  font-size: 12px;
}

/* =========================================================
   BRAND GALLERY
========================================================= */

.gallery-section {
  background: var(--white);
}

.brand-gallery {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}

.gallery-card {
  position: relative;

  min-height: 390px;

  overflow: hidden;

  border-radius: 24px;

  background: var(--brown-950);

  box-shadow: var(--shadow-sm);

  transition: 0.45s ease;
}

.gallery-card:hover {
  transform: translateY(-10px);

  box-shadow: var(--shadow);
}

.gallery-card img {
  height: 390px;

  object-fit: cover;

  transition: 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      transparent 35%,
      rgba(39, 24, 13, 0.85)
    );
}

.gallery-card figcaption {
  position: absolute;

  z-index: 2;

  left: 20px;
  right: 20px;
  bottom: 20px;

  color: var(--white);
}

.gallery-card figcaption strong {
  display: block;

  font-size: 14px;
}

.gallery-card figcaption span {
  display: block;

  margin-top: 3px;

  color: var(--gold-300);

  font-family: "Noto Sans Tamil", sans-serif;

  font-size: 11px;
}

/* =========================================================
   RICE SECTION
========================================================= */

.rice-section {
  background:
    linear-gradient(
      180deg,
      var(--cream-2),
      var(--cream)
    );
}

.rice-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.rice-card {
  position: relative;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 28px;

  background: var(--white);

  box-shadow: var(--shadow-sm);

  transition: 0.45s ease;
}

.rice-card:hover {
  transform: translateY(-12px);

  box-shadow: var(--shadow);
}

.rice-card.featured {
  border: 2px solid rgba(202, 138, 4, 0.45);

  transform: translateY(-10px);
}

.rice-card.featured:hover {
  transform: translateY(-18px);
}

.rice-number {
  position: absolute;

  z-index: 3;

  top: 15px;
  left: 15px;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: var(--white);

  background: var(--red-800);

  font-size: 12px;
  font-weight: 800;

  box-shadow: 0 8px 20px rgba(127, 29, 29, 0.3);
}

.rice-image {
  position: relative;

  overflow: hidden;
}

.rice-image img {
  height: 300px;

  object-fit: cover;

  transition: 0.6s ease;
}

.rice-card:hover .rice-image img {
  transform: scale(1.07);
}

.rice-label {
  position: absolute;

  right: 15px;
  bottom: 15px;

  padding: 7px 11px;

  border-radius: 20px;

  color: var(--white);

  background: rgba(127, 29, 29, 0.88);

  backdrop-filter: blur(8px);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1px;
}

.rice-info {
  padding: 25px;
}

.rice-small {
  color: var(--gold-600);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.rice-info h3 {
  margin-top: 6px;

  color: var(--brown-950);

  font-family: "Baloo 2", sans-serif;

  font-size: 27px;
  line-height: 1.1;
}

.rice-info h4 {
  margin-top: 6px;

  color: var(--red-700);

  font-family: "Noto Sans Tamil", sans-serif;

  font-size: 15px;
}

.rice-info p {
  margin-top: 14px;

  color: var(--muted);

  font-size: 13px;
}

/* =========================================================
   FOOD GALLERY
========================================================= */

.food-section {
  background: var(--white);
}

.food-gallery {
  display: grid;

  grid-template-columns: 1.4fr 1fr 1fr;

  grid-template-rows: 260px 260px;

  gap: 15px;
}

.food-item {
  position: relative;

  overflow: hidden;

  border-radius: 22px;

  background: var(--brown-950);
}

.food-large {
  grid-row: span 2;
}

.food-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.6s ease;
}

.food-item:hover img {
  transform: scale(1.08);
}

.food-item::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      transparent 45%,
      rgba(39, 24, 13, 0.78)
    );
}

.food-item figcaption {
  position: absolute;

  z-index: 2;

  left: 18px;
  bottom: 17px;

  color: var(--white);

  font-size: 13px;
  font-weight: 700;
}

/* =========================================================
   WHY
========================================================= */

.why-section {
  background: var(--cream-2);
}

.why-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}

.why-card {
  padding: 30px 22px;

  text-align: center;

  border: 1px solid var(--border);
  border-radius: 23px;

  background: var(--white);

  box-shadow: var(--shadow-sm);

  transition: 0.4s ease;
}

.why-card:hover {
  transform: translateY(-9px);

  box-shadow: var(--shadow);
}

.why-icon {
  width: 70px;
  height: 70px;

  margin: 0 auto 18px;

  display: grid;
  place-items: center;

  border-radius: 22px;

  background: var(--cream-3);

  font-size: 32px;

  transition: 0.4s ease;
}

.why-card:hover .why-icon {
  transform: rotate(8deg) scale(1.08);
}

.why-card h3 {
  color: var(--brown-950);

  font-family: "Baloo 2", sans-serif;

  font-size: 23px;
}

.why-card p {
  margin-top: 8px;

  color: var(--muted);

  font-size: 12px;
}

/* =========================================================
   FAQ
========================================================= */

.faq-section {
  background: var(--white);
}

.faq-grid {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 80px;

  align-items: start;
}

.faq-list {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.faq-item {
  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 17px;

  background: var(--cream);
}

.faq-question {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 19px 20px;

  border: 0;

  color: var(--brown-950);

  background: transparent;

  text-align: left;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.faq-question strong {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 50%;

  color: var(--white);

  background: var(--red-800);

  font-size: 18px;

  transition: 0.3s ease;
}

.faq-item.open .faq-question strong {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;

  grid-template-rows: 0fr;

  transition: grid-template-rows 0.35s ease;
}

.faq-answer p {
  overflow: hidden;

  padding: 0 20px;

  color: var(--muted);

  font-size: 13px;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
  padding-bottom: 20px;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section {
  background:
    linear-gradient(
      135deg,
      var(--cream-2),
      #fff7dc
    );
}

.contact-box {
  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  gap: 40px;

  padding: 55px;

  border-radius: 34px;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--red-950),
      var(--red-800)
    );

  box-shadow: var(--shadow-lg);

  overflow: hidden;

  position: relative;
}

.contact-box::before {
  content: "🌾";

  position: absolute;

  right: -30px;
  top: -45px;

  font-size: 190px;

  opacity: 0.08;

  transform: rotate(30deg);
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-content .section-tag {
  color: var(--gold-400);
}

.contact-content h2 {
  font-family: "Baloo 2", sans-serif;

  font-size: clamp(35px, 5vw, 54px);

  line-height: 1.05;
}

.contact-content h2 span {
  display: block;

  color: var(--gold-400);
}

.contact-content > p {
  max-width: 600px;

  margin-top: 18px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 14px;
}

.contact-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 28px;
}

.contact-button {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  padding: 13px 18px;

  border-radius: 13px;

  color: var(--red-950);

  background: var(--white);

  font-size: 12px;
  font-weight: 800;

  transition: var(--transition);
}

.contact-button:hover {
  transform: translateY(-4px);

  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.contact-button.whatsapp {
  color: var(--white);

  background: #15803d;
}

.contact-details {
  position: relative;
  z-index: 2;

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 18px;
}

.contact-detail {
  display: flex;

  align-items: flex-start;

  gap: 15px;

  padding: 17px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.06);
}

.detail-icon {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 12px;

  background: rgba(250, 204, 21, 0.12);

  font-size: 18px;
}

.contact-detail small {
  display: block;

  color: var(--gold-300);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.contact-detail p {
  margin-top: 3px;

  color: rgba(255, 255, 255, 0.8);

  font-size: 12px;
}

/* =========================================================
   LOCATION
========================================================= */

.location-section {
  background: var(--white);
}

.location-grid {
  display: grid;

  grid-template-columns: 0.75fr 1.25fr;

  gap: 50px;

  align-items: center;
}

.location-info h2 {
  color: var(--brown-950);

  font-family: "Baloo 2", sans-serif;

  font-size: clamp(36px, 5vw, 52px);

  line-height: 1.05;
}

.location-info h2 span {
  display: block;

  color: var(--red-700);
}

.location-info > p {
  margin-top: 18px;

  color: var(--muted);

  font-size: 14px;
}

.location-address {
  display: flex;

  gap: 14px;

  margin-top: 25px;

  padding: 18px;

  border: 1px solid var(--border);

  border-radius: 18px;

  background: var(--cream);
}

.location-address > span {
  font-size: 23px;
}

.location-address strong {
  color: var(--brown-950);

  font-size: 13px;
}

.location-address p {
  margin-top: 4px;

  color: var(--muted);

  font-size: 12px;
}

.map-button {
  display: inline-flex;

  margin-top: 20px;

  padding: 13px 18px;

  border-radius: 13px;

  color: var(--white);

  background: var(--red-800);

  font-size: 12px;
  font-weight: 800;

  transition: var(--transition);
}

.map-button:hover {
  transform: translateY(-4px);

  background: var(--red-950);

  box-shadow: var(--shadow-sm);
}

.map-wrapper {
  position: relative;

  min-height: 470px;

  overflow: hidden;

  border: 8px solid var(--white);

  border-radius: 30px;

  box-shadow: var(--shadow);

  background: #eee;
}

.map-wrapper iframe {
  width: 100%;
  height: 470px;

  display: block;

  border: 0;
}

.map-label {
  position: absolute;

  left: 18px;
  bottom: 18px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 11px 14px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.94);

  box-shadow: var(--shadow-sm);

  backdrop-filter: blur(10px);
}

.map-label > span {
  font-size: 20px;
}

.map-label strong {
  display: block;

  color: var(--brown-950);

  font-size: 12px;
}

.map-label small {
  display: block;

  color: var(--muted);

  font-size: 9px;
}

/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
  position: relative;

  padding: 55px 0;

  overflow: hidden;

  color: var(--white);

  background:
    linear-gradient(
      90deg,
      var(--red-950),
      var(--red-800)
    );
}

.final-cta::before {
  content: "";

  position: absolute;

  width: 450px;
  height: 450px;

  right: -200px;
  top: -220px;

  border: 1px solid rgba(250, 204, 21, 0.15);

  border-radius: 50%;

  animation: rotateSlow 20s linear infinite;
}

.final-cta-inner {
  position: relative;
  z-index: 2;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.final-grain {
  font-size: 55px;

  animation: grainSwing 4s ease-in-out infinite;
}

.final-cta-inner > div:nth-child(2) > span {
  color: var(--gold-300);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 2px;
}

.final-cta h2 {
  margin-top: 5px;

  font-family: "Baloo 2", sans-serif;

  font-size: clamp(25px, 4vw, 38px);

  line-height: 1.1;
}

.final-cta h2 strong {
  color: var(--gold-300);

  font-family: "Noto Sans Tamil", sans-serif;

  font-size: 0.65em;
}

.btn-light {
  color: var(--red-950);

  background: var(--white);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
  background: var(--gold-300);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  color: rgba(255, 255, 255, 0.7);

  background: #1c0b07;
}

.footer-grid {
  display: grid;

  grid-template-columns: 1.3fr 0.7fr 1fr 0.9fr;

  gap: 45px;

  padding: 70px 0 55px;
}

.footer-logo .logo-text strong {
  color: var(--white);
}

.footer-logo .logo-text small {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand > p {
  max-width: 330px;

  margin-top: 18px;

  font-size: 12px;
  line-height: 1.8;
}

.footer-links,
.footer-contact {
  display: flex;

  flex-direction: column;

  align-items: flex-start;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 17px;

  color: var(--gold-300);

  font-size: 13px;

  letter-spacing: 1px;
}

.footer-links a,
.footer-links span {
  margin: 4px 0;

  color: rgba(255, 255, 255, 0.58);

  font-size: 11px;

  transition: 0.25s ease;
}

.footer-links a:hover {
  color: var(--gold-300);

  transform: translateX(4px);
}

.footer-contact p {
  margin: 4px 0;

  font-size: 11px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .container {
  min-height: 70px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);

  font-size: 10px;
}

/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 4000;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 50%;

  color: var(--white);

  background: var(--red-800);

  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.3);

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(20px);

  transition: 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red-950);

  transform: translateY(-5px);
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(35px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes heroCardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }

  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes floatingBadge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatingRice {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(8deg);
  }
}

@keyframes backgroundRice {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-25px) rotate(8deg);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow:
      0 0 0 5px rgba(234, 179, 8, 0.12);
  }

  50% {
    box-shadow:
      0 0 0 10px rgba(234, 179, 8, 0.04);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floatCircle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-25px);
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes grainSwing {
  0%,
  100% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {
  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding-inline: 9px;
    font-size: 12px;
  }

  .hero-grid {
    gap: 40px;
  }

  .about-grid,
  .owner-grid {
    gap: 50px;
  }

  .brand-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   MOBILE NAV
========================================================= */

@media (max-width: 820px) {
  .nav-container {
    min-height: 72px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;

    top: 72px;
    left: 0;

    width: 100%;

    padding: 15px;

    display: flex;

    flex-direction: column;
    align-items: stretch;

    background: rgba(255, 253, 245, 0.98);

    border-bottom: 1px solid var(--border);

    box-shadow: 0 20px 40px rgba(69, 10, 10, 0.12);

    transform: translateY(-130%);

    opacity: 0;
    visibility: hidden;

    transition:
      transform 0.4s ease,
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .main-nav.open {
    transform: translateY(0);

    opacity: 1;

    visibility: visible;
  }

  .nav-link {
    padding: 14px 16px;

    border-radius: 10px;

    font-size: 14px;
  }

  .nav-link:hover {
    background: rgba(127, 29, 29, 0.05);
  }

  .nav-link::after {
    display: none;
  }

  .hero-section {
    min-height: auto;

    padding-top: 125px;
  }

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

  .hero-content {
    max-width: none;

    text-align: center;
  }

  .eyebrow,
  .hero-actions,
  .hero-points {
    justify-content: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 470px;

    margin-top: 20px;
  }

  .hero-image-card {
    width: min(100%, 440px);
  }

  .hero-image-card img {
    height: 400px;
  }

  .floating-brand {
    left: 0;
  }

  .about-grid,
  .owner-grid,
  .faq-grid,
  .location-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .about-images {
    min-height: 520px;
  }

  .about-content {
    margin-top: 15px;
  }

  .owner-card {
    max-width: 500px;

    margin-inline: auto;
  }

  .contact-box {
    padding: 40px 30px;
  }

  .location-grid {
    gap: 40px;
  }

  .location-info {
    max-width: 650px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {
  .container {
    width: min(91%, 560px);
  }

  .section {
    padding: 75px 0;
  }

  .hero-section {
    padding-top: 115px;
    padding-bottom: 70px;
  }

  .hero-content h1 {
    font-size: clamp(40px, 12vw, 60px);

    letter-spacing: -0.5px;
  }

  .hero-content h2 {
    font-size: 22px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-points {
    gap: 15px;
  }

  .hero-points > div {
    width: 100%;

    justify-content: center;
  }

  .hero-visual {
    min-height: 400px;
  }

  .hero-image-card {
    width: 100%;

    transform: rotate(1deg);
  }

  .hero-image-card img {
    height: 350px;
  }

  .floating-brand {
    left: 5px;
    bottom: 20px;

    min-width: 170px;
  }

  .rice-card-1 {
    right: -5px;
    top: 25px;

    width: 65px;
    height: 65px;

    font-size: 28px;
  }

  .rice-card-2 {
    right: 5px;
    bottom: 35px;

    width: 60px;
    height: 60px;

    font-size: 25px;
  }

  .brand-strip-inner {
    flex-direction: column;

    gap: 10px;
  }

  .grain-line {
    width: 50px;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .about-images {
    min-height: 420px;
  }

  .about-image-main {
    width: 88%;
  }

  .about-image-main img {
    height: 320px;
  }

  .about-image-small {
    width: 47%;

    bottom: 10px;
  }

  .about-image-small img {
    height: 180px;
  }

  .experience-badge {
    left: 5%;
    bottom: 35px;

    width: 95px;
    height: 95px;
  }

  .experience-badge strong {
    font-size: 17px;
  }

  .experience-badge span {
    font-size: 8px;
  }

  .about-content h3 {
    font-size: 32px;
  }

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

  .owner-content h2 {
    font-size: 40px;
  }

  .owner-photo img {
    height: 350px;
  }

  .brand-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card img {
    min-height: 360px;
    height: 360px;
  }

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

  .rice-card.featured {
    transform: none;
  }

  .rice-card.featured:hover {
    transform: translateY(-10px);
  }

  .food-gallery {
    display: grid;

    grid-template-columns: 1fr;

    grid-template-rows: none;
  }

  .food-large {
    grid-row: auto;
  }

  .food-item,
  .food-large {
    height: 300px;
  }

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

  .contact-box {
    padding: 35px 20px;

    border-radius: 25px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-button {
    justify-content: center;
  }

  .map-wrapper {
    min-height: 350px;
  }

  .map-wrapper iframe {
    height: 350px;
  }

  .final-cta-inner {
    flex-direction: column;

    text-align: center;
  }

  .final-cta-inner .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 35px;

    padding: 55px 0 40px;
  }

  .footer-bottom .container {
    padding: 20px 0;

    flex-direction: column;

    text-align: center;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {
  .logo-symbol {
    width: 45px;
    height: 45px;
  }

  .logo-text strong {
    font-size: 15px;
  }

  .hero-content h1 {
    font-size: 39px;
  }

  .hero-image-card img {
    height: 300px;
  }

  .floating-brand {
    transform: scale(0.88);
    transform-origin: left bottom;
  }

  .section-heading h2 {
    font-size: 32px;
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}