:root {
  --night: #0d0f3a;
  --panel: #171a55;
  --line: #2c3194;
  --ink: #eef0ff;
  --volt: #ffd400;
  --red: #e63946;
  --r: 14px;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  font-family: "Noto Sans Tamil", system-ui, sans-serif;
  background: var(--night);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}
#arc {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.top,
main,
footer {
  position: relative;
  z-index: 1;
}
a {
  color: var(--volt);
}
:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(13, 15, 58, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
  flex-wrap: wrap;
}
.logo {
  font:
    800 1.6rem "Baloo Thambi 2",
    sans-serif;
  color: var(--red);
  text-decoration: none;
}
.logo b {
  color: var(--volt);
  margin-left: 0.15em;
}
nav {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
nav a:hover,
nav a.wa {
  background: var(--volt);
  color: var(--night);
}
.burger {
  display: none;
  background: none;
  border: 2px solid var(--line);
  color: var(--ink);
  font-size: 1.4rem;
  border-radius: 8px;
  padding: 0 0.6rem;
}
section {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 1.2rem;
}
h1,
h2,
h3 {
  font-family: "Baloo Thambi 2", sans-serif;
  line-height: 1.25;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--volt);
  margin-bottom: 1rem;
  border-left: 6px solid var(--red);
  padding-left: 0.7rem;
}
h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.4rem;
}
.wide {
  max-width: 70ch;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 80vh;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--ink);
}
.hero h1 span {
  display: block;
  color: var(--volt);
}
.tag {
  color: var(--volt);
  font-size: 0.95rem;
}
.lead {
  font-size: 1.2rem;
  margin: 1rem 0 1.5rem;
  max-width: 36ch;
}
.cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--volt);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.volt {
  background: var(--volt);
  color: var(--night);
}
.ghost {
  background: transparent;
  color: var(--volt);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--red);
}
.stage {
  perspective: 1000px;
}
.card3d {
  transform-style: preserve-3d;
  transition: transform 0.15s;
  border-radius: var(--r);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 212, 0, 0.25);
  animation: float 6s ease-in-out infinite;
}
.card3d img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
  transform: translateZ(30px);
}
@keyframes float {
  50% {
    translate: 0 -12px;
  }
}
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0;
}
.facts li {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 1rem;
}
.facts strong {
  display: block;
  color: var(--volt);
}
.owner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}
.ph {
  position: relative;
  background: linear-gradient(135deg, var(--panel), var(--line));
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
}
.ph::before {
  content: attr(data-fb);
  font: 800 3rem "Baloo Thambi 2";
  color: var(--volt);
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph img.err {
  display: none;
}
.owner-ph {
  aspect-ratio: 6/7;
}
.ph figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0.8rem;
  background: rgba(13, 15, 58, 0.85);
  font-size: 0.9rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.grid .ph:hover {
  transform: perspective(600px) rotateY(-6deg) scale(1.03);
  transition: 0.3s;
}
.flips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  perspective: 900px;
}
.flip {
  background: none;
  border: 0;
  height: 150px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  perspective: 900px;
}
.in {
  display: block;
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}
.flip:hover .in,
.flip:focus-visible .in,
.flip.on .in {
  transform: rotateY(180deg);
}
.f,
.b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: var(--r);
  backface-visibility: hidden;
  text-align: center;
}
.f {
  background: var(--panel);
  border: 2px solid var(--volt);
  font: 600 1.2rem "Baloo Thambi 2";
}
.b {
  background: var(--volt);
  color: var(--night);
  transform: rotateY(180deg);
  font-size: 0.95rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  counter-reset: s;
  padding: 0;
}
.steps li {
  counter-increment: s;
  background: var(--panel);
  border-radius: var(--r);
  padding: 1rem;
  border-top: 4px solid var(--red);
}
.steps li::before {
  content: counter(s);
  display: block;
  font: 800 2rem "Baloo Thambi 2";
  color: var(--volt);
}
address {
  font-style: normal;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  max-width: 70ch;
}
.maptype {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.maptype button {
  background: var(--panel);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font: inherit;
  cursor: pointer;
}
.maptype button.on {
  background: var(--volt);
  color: var(--night);
}
#map {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--r);
}
form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}
label {
  display: grid;
  gap: 0.3rem;
}
input,
select,
textarea {
  font: inherit;
  padding: 0.7rem;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 2px solid var(--line);
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .burger {
    display: block;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }
  nav.open {
    display: flex;
  }
  .hero,
  .owner {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  #map {
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: waPulse 2s infinite;
}
.wa-float:hover {
  transform: scale(1.06);
}
.wa-float:focus-visible {
  outline: 3px solid #ffd400;
  outline-offset: 3px;
}
@keyframes waPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0.6),
      0 8px 24px rgba(0, 0, 0, 0.4);
  }
  70% {
    box-shadow:
      0 0 0 18px rgba(37, 211, 102, 0),
      0 8px 24px rgba(0, 0, 0, 0.4);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0),
      0 8px 24px rgba(0, 0, 0, 0.4);
  }
}
@media (max-width: 600px) {
  .wa-float {
    padding: 0.85rem;
    width: 58px;
    height: 58px;
    justify-content: center;
  }
  .wa-text {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float {
    animation: none;
  }
}
