:root {
  --forest: #14432b;
  --forest2: #1f6b43;
  --amber: #e0a122;
  --cream: #faf3e0;
  --slate: #1f2a2e;
  --glass: rgba(250, 243, 224, 0.14);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: "Hind Madurai", "Noto Sans Tamil", system-ui, sans-serif;
  background: var(--cream);
  color: var(--slate);
  line-height: 1.65;
  overflow-x: hidden;
}
body.ta {
  font-family: "Noto Sans Tamil", "Hind Madurai", sans-serif;
  line-height: 1.8;
}
h1,
h2,
h3 {
  font-family: Fraunces, "Noto Sans Tamil", serif;
  line-height: 1.2;
  color: var(--forest);
}
canvas#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main,
footer {
  position: relative;
  z-index: 1;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 4vw;
  background: rgba(20, 67, 43, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.brand {
  color: var(--cream);
  font-family: Fraunces, serif;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
}
#menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
#menu a:not(.btn) {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
}
#menu a:not(.btn):hover {
  color: var(--amber);
}
.lang {
  background: transparent;
  color: var(--amber);
  border: 1.5px solid var(--amber);
  border-radius: 99px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
}

/* buttons */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 99px;
  padding: 0.65rem 1.3rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
.btn.amber {
  background: var(--amber);
  color: var(--slate);
}
.btn.wa {
  background: #25d366;
  color: #06361a;
}
.btn.ghost {
  border: 2px solid var(--cream);
  color: var(--cream);
  background: transparent;
}
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* hero */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 6vh 6vw;
  background: linear-gradient(135deg, var(--forest), #0c2b1b 70%);
  color: var(--cream);
  overflow: hidden;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(1.9rem, 4.5vw, 3.6rem);
  margin: 0.6rem 0 1rem;
}
.hero p {
  max-width: 56ch;
  font-size: 1.1rem;
}
.kicker {
  color: var(--amber);
  font-weight: 700;
}
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.scene {
  perspective: 900px;
  display: grid;
  place-items: center;
  height: 340px;
}
.cube {
  position: relative;
  width: 170px;
  height: 170px;
  transform-style: preserve-3d;
  animation: spin 18s linear infinite;
}
.cube i {
  position: absolute;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-style: normal;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.cube i:nth-child(1) {
  transform: translateZ(85px);
}
.cube i:nth-child(2) {
  transform: rotateY(90deg) translateZ(85px);
}
.cube i:nth-child(3) {
  transform: rotateY(180deg) translateZ(85px);
}
.cube i:nth-child(4) {
  transform: rotateY(-90deg) translateZ(85px);
}
.cube i:nth-child(5) {
  transform: rotateX(90deg) translateZ(85px);
}
.cube i:nth-child(6) {
  transform: rotateX(-90deg) translateZ(85px);
}
@keyframes spin {
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* sections */
.sec {
  padding: clamp(3rem, 8vw, 6rem) 6vw;
  max-width: 1300px;
  margin: auto;
}
.sec h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 1.6rem;
}
.amber-bg {
  max-width: none;
  background: linear-gradient(180deg, #f7e3a8, var(--cream));
}
.amber-bg > * {
  max-width: 1300px;
  margin-inline: auto;
}
.grid {
  display: grid;
  gap: 1.5rem;
}
.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cards {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  perspective: 1000px;
}
.card,
.owner {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20, 67, 43, 0.15);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  box-shadow: 0 24px 44px rgba(20, 67, 43, 0.28);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--forest2);
}
.card h3 {
  padding: 1rem 1.2rem 0;
  font-size: 1.15rem;
  transform: translateZ(30px);
}
.card p {
  padding: 0.4rem 1.2rem;
}
.card .btn {
  margin: 0.4rem 1.2rem 1.3rem;
  font-size: 0.9rem;
  transform: translateZ(40px);
}
.owner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 760px;
  padding-right: 1.5rem;
}
.owner img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.owner h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.owner .btn {
  margin-top: 1rem;
}

.sub {
  max-width: 70ch;
  margin: -0.8rem 0 1.6rem;
}
.pack img {
  height: 230px;
  object-fit: contain;
  padding: 0.8rem;
  background: linear-gradient(180deg, #fff, #f7e3a8);
}
/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px) rotateX(8deg);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* form, faq, map */
.glass {
  background: linear-gradient(135deg, var(--forest), var(--forest2));
  padding: 1.6rem;
  border-radius: 20px;
}
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.form input,
.form select {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 0;
  font: inherit;
  background: var(--cream);
}
.faq details {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.faq summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--forest);
}
.faq details[open] summary {
  background: #f7e3a8;
}
.faq details p {
  padding: 1rem 1.2rem;
}
.map {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 18px;
  margin: 1rem 0 1.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
footer {
  background: var(--slate);
  color: var(--cream);
  text-align: center;
  padding: 1.6rem 4vw;
  font-size: 0.9rem;
}
.float-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  50% {
    transform: scale(1.1);
  }
}

/* responsive */
@media (max-width: 980px) {
  .burger {
    display: block;
  }
  #menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 4vw 1.4rem;
    background: rgba(20, 67, 43, 0.97);
  }
  #menu.open {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .scene {
    height: 260px;
  }
}
@media (max-width: 600px) {
  .owner {
    grid-template-columns: 1fr;
    padding: 0 0 1.5rem;
  }
  .owner div {
    padding: 0 1.2rem;
  }
  .owner img {
    min-height: 220px;
  }
  .map {
    height: 300px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
