:root {
  --g: #0a3b2c;
  --g2: #157a4f;
  --g3: #e6f4ec;
  --gold: #d9a521;
  --ink: #13261d;
  --mut: #5b6f65;
  --r: 18px;
  --sh: 0 18px 40px rgba(10, 59, 44, 0.15);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  font-family: "Segoe UI", "Noto Sans Tamil", Latha, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  padding-bottom: 84px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--g2);
}
.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 0 20px;
}
.narrow {
  max-width: 800px;
}
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
}
.strip {
  background: var(--g);
  color: #d7efe2;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 5px 20px;
}
.strip a {
  color: #fff;
  text-decoration: none;
}
.bar {
  max-width: 1160px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--g);
  font-weight: 800;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-weight: 500;
  color: var(--mut);
  font-size: 0.72rem;
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--g2), var(--g));
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 12px rgba(10, 59, 44, 0.3);
}
.menu {
  display: flex;
  gap: 4px;
}
.menu a {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 11px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
}
.menu a:hover,
.menu a.on {
  background: var(--g3);
  color: var(--g);
}
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #e9b838, var(--gold));
  color: #1c1500;
  border: 0;
  padding: 13px 26px;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow:
    0 5px 0 #9c7410,
    0 14px 24px rgba(0, 0, 0, 0.2);
  transition: 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #9c7410;
}
.btn.sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  box-shadow: 0 3px 0 #9c7410;
}
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
}
.btn.wa {
  background: linear-gradient(180deg, #32d46f, #1fae55);
  color: #fff;
  box-shadow:
    0 5px 0 #11793a,
    0 14px 24px rgba(0, 0, 0, 0.2);
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #06291e, #0a3b2c 45%, #157a4f);
  color: #fff;
  padding: 70px 0 90px;
  perspective: 1100px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  animation: float 9s ease-in-out infinite;
}
.o1 {
  width: 380px;
  height: 380px;
  right: -80px;
  top: -60px;
  background: radial-gradient(circle at 30% 30%, #f5d46b, transparent 70%);
}
.o2 {
  width: 300px;
  height: 300px;
  left: -90px;
  bottom: -80px;
  background: radial-gradient(circle at 60% 40%, #5fe0a0, transparent 70%);
  animation-delay: 2s;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
h1 em {
  font-style: normal;
  color: #f5d46b;
}
.lead {
  color: #d7efe2;
  margin-bottom: 24px;
  max-width: 560px;
}
.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.stats {
  display: flex;
  gap: 14px;
  list-style: none;
  flex-wrap: wrap;
}
.stats li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: 14px;
  text-align: center;
}
.stats b {
  display: block;
  font-size: 1.4rem;
  color: #f5d46b;
}
.stats span {
  font-size: 0.75rem;
  color: #d7efe2;
}
.stack {
  position: relative;
  height: 520px;
  transform-style: preserve-3d;
  transition: transform 0.2s;
}
.stack img {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
  border: 4px solid #fff;
}
.s1 {
  height: 470px;
  width: auto;
  left: 50%;
  top: 0;
  transform: translateX(-30%) rotateY(-14deg) rotateZ(3deg) translateZ(30px);
  animation: bob 7s ease-in-out infinite;
}
.s2 {
  width: 230px;
  left: 0;
  top: 30px;
  transform: rotateY(18deg) rotateZ(-6deg) translateZ(80px);
  animation: bob 6s ease-in-out infinite 0.8s;
}
.s3 {
  width: 170px;
  left: 18%;
  bottom: 0;
  transform: rotateY(10deg) rotateZ(5deg) translateZ(110px);
  animation: bob 5s ease-in-out infinite 1.4s;
}
@keyframes bob {
  50% {
    translate: 0 -14px;
  }
}
@keyframes float {
  50% {
    transform: translateY(-30px);
  }
}
.quick {
  margin-top: -46px;
  position: relative;
  z-index: 3;
}
.qgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.qgrid a {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: 0.2s;
  border-bottom: 4px solid var(--gold);
}
.qgrid a:hover {
  transform: translateY(-6px);
}
.qgrid i {
  font-style: normal;
  font-size: 1.6rem;
  display: block;
}
.qgrid b {
  display: block;
  color: var(--g);
}
.qgrid span {
  font-size: 0.8rem;
  color: var(--mut);
}
.sec {
  padding: 80px 0;
}
.sec.alt {
  background: var(--g3);
}
.sec.dark {
  background: linear-gradient(135deg, #06291e, var(--g));
  color: #fff;
}
.head {
  text-align: center;
  margin-bottom: 38px;
}
.eyebrow {
  display: inline-block;
  color: var(--g2);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.dark .eyebrow {
  color: #f5d46b;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--g);
  line-height: 1.25;
}
.dark h2,
.dark h3 {
  color: #fff;
}
.center {
  text-align: center;
  margin-bottom: 26px;
}
.sub3 {
  margin: 36px 0 18px;
  color: var(--g);
  border-left: 5px solid var(--gold);
  padding-left: 12px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.two.top {
  align-items: start;
}
.txt p {
  margin-bottom: 14px;
}
.ticks {
  list-style: none;
}
.ticks li {
  padding: 6px 0 6px 32px;
  position: relative;
}
.ticks li:before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--g2);
  color: #fff;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  top: 10px;
}
figure.big img,
.mini {
  border-radius: var(--r);
  box-shadow: var(--sh);
  width: 100%;
}
.mini {
  margin-top: 20px;
  max-width: 320px;
}
.rev-row .big {
  max-width: 420px;
  margin: auto;
}
.tilt {
  transform-style: preserve-3d;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.3s;
}
.cards.six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1000px;
}
.card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0;
}
.card h4 {
  padding: 14px 16px;
  color: var(--g);
}
.card small {
  display: block;
  color: var(--mut);
  font-weight: 500;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.chips li {
  background: #fff;
  border: 1.5px solid var(--g2);
  color: var(--g);
  padding: 7px 16px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 0 var(--g2);
  transition: 0.2s;
}
.chips li:hover {
  transform: translateY(-4px) rotateX(18deg);
  background: var(--g3);
}
.note {
  margin-top: 18px;
  color: var(--mut);
  font-size: 0.9rem;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
.tbl th,
.tbl td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.tbl th {
  color: #f5d46b;
  width: 38%;
}
.tbl a {
  color: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1000px;
}
.step {
  background: #fff;
  border-radius: var(--r);
  padding: 26px 20px;
  box-shadow: var(--sh);
  text-align: center;
  border-top: 5px solid var(--g2);
}
.step b {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--g);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 1.2rem;
  box-shadow: 0 6px 0 var(--gold);
}
.step h4 {
  color: var(--g);
  margin-bottom: 6px;
}
.step p {
  font-size: 0.9rem;
  color: var(--mut);
}
.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1100px;
}
.gal figure {
  background: #fff;
  padding: 10px;
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.gal img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  border-radius: 12px;
}
.gal .g1 {
  grid-row: span 1;
}
.gal figcaption {
  text-align: center;
  font-weight: 700;
  color: var(--g);
  padding-top: 8px;
}
.rv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.rcard {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 22px;
  border-radius: var(--r);
}
.av {
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d46b, var(--g2));
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: #06291e;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.stars {
  color: #f5d46b;
  letter-spacing: 2px;
}
.rcard p {
  font-size: 0.92rem;
  color: #d7efe2;
}
details {
  background: #fff;
  border: 1px solid #d5e8dc;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(10, 59, 44, 0.06);
}
summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--g);
  list-style: none;
  display: flex;
  justify-content: space-between;
}
summary:after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
}
details[open] summary:after {
  content: "–";
}
details p {
  padding: 0 20px 18px;
  color: var(--mut);
}
.panel {
  background: #fff;
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh);
}
.panel p {
  margin-bottom: 12px;
}
form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
label {
  font-weight: 600;
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
}
input,
textarea {
  padding: 12px 14px;
  border: 1.5px solid #c4dccd;
  border-radius: 10px;
  font: inherit;
}
input:focus,
textarea:focus {
  outline: 3px solid rgba(21, 122, 79, 0.25);
  border-color: var(--g2);
}
.map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--r);
  box-shadow: var(--sh);
  margin-bottom: 16px;
}
footer {
  background: #041d15;
  color: #bfe0cf;
  text-align: center;
  padding: 34px 0;
  font-size: 0.9rem;
}
footer b {
  color: #fff;
  font-size: 1.05rem;
}
footer a {
  color: #fff;
}
.wafab {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 95;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0.6),
      0 10px 22px rgba(0, 0, 0, 0.35);
  }
  100% {
    box-shadow:
      0 0 0 20px rgba(37, 211, 102, 0),
      0 10px 22px rgba(0, 0, 0, 0.35);
  }
}
.bnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 99;
  display: flex;
  gap: 2px;
  background: rgba(6, 41, 30, 0.96);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 40px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  max-width: calc(100% - 20px);
}
.bnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #bfe0cf;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 1.2rem;
  line-height: 1.2;
  transition: 0.2s;
}
.bnav span {
  font-size: 0.64rem;
}
.bnav a.on {
  background: var(--gold);
  color: #1c1500;
  transform: translateY(-6px) scale(1.08);
}
.reveal {
  opacity: 0;
  transform: translateY(46px) rotateX(12deg);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (max-width: 960px) {
  .menu {
    display: none;
  }
  .hero-grid,
  .two {
    grid-template-columns: 1fr;
  }
  .stack {
    height: 440px;
  }
  .s1 {
    height: 400px;
  }
  .cards.six,
  .gal,
  .rv {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps,
  .qgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .strip span {
    display: none;
  }
  .cards.six,
  .gal,
  .rv,
  .steps {
    grid-template-columns: 1fr;
  }
  .sec {
    padding: 56px 0;
  }
  .brand small {
    display: none;
  }
  .bnav a {
    padding: 4px 8px;
  }
  .hero {
    padding-top: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Grace Siddha Clinic – 3D animations + responsive for all devices
   Load AFTER style.css:  <link rel="stylesheet" href="3d-responsive.css"> */

/* ---------- fluid base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
img,
iframe,
video {
  max-width: 100%;
}
h1 {
  font-size: clamp(1.9rem, 1.2rem + 3.6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
}
.sec {
  padding: clamp(48px, 7vw, 90px) 0;
}
.wrap {
  padding-inline: clamp(14px, 4vw, 28px);
}
.btn,
.bnav a,
.menu a,
summary {
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 3D keyframes (use individual transform props so JS tilt never conflicts) ---------- */
@keyframes spin3d {
  from {
    transform: rotateX(68deg) rotateZ(0);
  }
  to {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}
@keyframes spin3dRev {
  from {
    transform: rotateX(58deg) rotateZ(360deg);
  }
  to {
    transform: rotateX(58deg) rotateZ(0);
  }
}
@keyframes sway {
  0%,
  100% {
    rotate: y -6deg;
    translate: 0 0;
  }
  50% {
    rotate: y 6deg;
    translate: 0 -8px;
  }
}
@keyframes swayX {
  0%,
  100% {
    rotate: x 4deg;
    translate: 0 0;
  }
  50% {
    rotate: x -4deg;
    translate: 0 -6px;
  }
}
@keyframes flipIn {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(-70deg) translateY(30px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateX(0);
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: perspective(900px) translateZ(-160px) rotateY(25deg);
  }
  to {
    opacity: 1;
    transform: perspective(900px) translateZ(0) rotateY(0);
  }
}
@keyframes shine {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}
@keyframes navHop {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}
@keyframes cube {
  from {
    transform: rotateX(-20deg) rotateY(0);
  }
  to {
    transform: rotateX(-20deg) rotateY(360deg);
  }
}

/* ---------- hero 3D scene ---------- */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
}
.hero::before {
  width: min(760px, 120vw);
  height: min(760px, 120vw);
  margin: calc(min(760px, 120vw) / -2);
  border: 3px dashed rgba(245, 212, 107, 0.35);
  animation: spin3d 26s linear infinite;
}
.hero::after {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  margin: calc(min(520px, 90vw) / -2);
  border: 2px solid rgba(255, 255, 255, 0.22);
  animation: spin3dRev 18s linear infinite;
}
.hero-grid {
  z-index: 2;
}
.hero-txt {
  transform-style: preserve-3d;
}
.hero h1 {
  animation: popIn 1s 0.1s both;
}
.hero .lead {
  animation: popIn 1s 0.3s both;
}
.hero .cta {
  animation: popIn 1s 0.5s both;
}
.hero .stats {
  animation: popIn 1s 0.7s both;
}
.pill {
  animation: popIn 0.9s both;
}
.stats li {
  transform-style: preserve-3d;
  transition: transform 0.4s;
}
.stats li:hover {
  transform: perspective(500px) rotateY(180deg);
}
.btn {
  position: relative;
  overflow: hidden;
}
.btn:not(.ghost):not(.sm)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shine 3.5s linear infinite;
  pointer-events: none;
}

/* decorative 3D cube (add <div class="cube"><i></i>x6</div> anywhere if wanted) */
.cube {
  width: 70px;
  height: 70px;
  position: relative;
  transform-style: preserve-3d;
  animation: cube 12s linear infinite;
  margin: auto;
}
.cube i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  background: rgba(245, 212, 107, 0.15);
}
.cube i:nth-child(1) {
  transform: translateZ(35px);
}
.cube i:nth-child(2) {
  transform: rotateY(180deg) translateZ(35px);
}
.cube i:nth-child(3) {
  transform: rotateY(90deg) translateZ(35px);
}
.cube i:nth-child(4) {
  transform: rotateY(-90deg) translateZ(35px);
}
.cube i:nth-child(5) {
  transform: rotateX(90deg) translateZ(35px);
}
.cube i:nth-child(6) {
  transform: rotateX(-90deg) translateZ(35px);
}

/* ---------- 3D reveal with stagger ---------- */
.reveal {
  transform: perspective(900px) rotateX(-18deg) translateY(40px);
  transform-origin: 50% 100%;
}
.reveal.in {
  transform: perspective(900px) rotateX(0) translateY(0);
}
.cards.six .card:nth-child(2),
.steps .step:nth-child(2),
.gal figure:nth-child(2),
.rv .rcard:nth-child(2) {
  transition-delay: 0.12s;
}
.cards.six .card:nth-child(3),
.steps .step:nth-child(3),
.gal figure:nth-child(3),
.rv .rcard:nth-child(3) {
  transition-delay: 0.24s;
}
.cards.six .card:nth-child(4),
.steps .step:nth-child(4),
.gal figure:nth-child(4) {
  transition-delay: 0.36s;
}
.cards.six .card:nth-child(5),
.gal figure:nth-child(5) {
  transition-delay: 0.48s;
}
.cards.six .card:nth-child(6) {
  transition-delay: 0.6s;
}

/* ---------- 3D cards, images, steps ---------- */
.card,
.step,
.gal figure,
.rcard,
.qgrid a,
figure.big {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.card img,
.gal img,
figure.big img {
  transition:
    transform 0.5s,
    filter 0.5s;
}
.card:hover img,
.gal figure:hover img {
  transform: scale(1.08) translateZ(30px);
}
.card:hover,
.gal figure:hover,
.step:hover {
  box-shadow: 0 32px 60px rgba(10, 59, 44, 0.32);
}
.step b {
  transform: translateZ(40px);
  transition: transform 0.4s;
}
.step:hover b {
  transform: translateZ(60px) rotateY(360deg);
}
.qgrid a:hover {
  transform: perspective(700px) translateY(-8px) rotateX(8deg);
}
.av {
  animation: swayX 5s ease-in-out infinite;
}
.logo {
  animation: sway 6s ease-in-out infinite;
}
.wafab {
  transform-style: preserve-3d;
}
.bnav a.on {
  animation: navHop 1.6s ease-in-out infinite;
}

/* ---------- touch / no-hover devices: auto 3D sway (no mouse needed) ---------- */
@media (hover: none) {
  .card,
  .gal figure,
  .step,
  .rcard,
  figure.big {
    animation: sway 7s ease-in-out infinite;
  }
  .cards.six .card:nth-child(even),
  .gal figure:nth-child(even),
  .step:nth-child(even) {
    animation-name: swayX;
    animation-delay: -2s;
  }
  .btn:active,
  .card:active,
  .gal figure:active {
    transform: scale(0.97);
  }
  .stats li:hover {
    transform: none;
  }
}

/* ---------- breakpoints ---------- */
@media (min-width: 1500px) {
  .wrap,
  .bar {
    max-width: 1320px;
  }
  .stack {
    height: 600px;
  }
  .s1 {
    height: 540px;
  }
}
@media (max-width: 1100px) {
  .menu a {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  .stack {
    height: 480px;
  }
  .s1 {
    height: 430px;
  }
}
@media (max-width: 960px) {
  .hero {
    padding: 48px 0 80px;
  }
  .hero-grid {
    gap: 28px;
    text-align: center;
  }
  .lead {
    margin-inline: auto;
  }
  .cta,
  .stats,
  .hero-txt {
    justify-content: center;
  }
  .stack {
    max-width: 420px;
    margin: auto;
    width: 100%;
  }
  .two {
    gap: 28px;
  }
  .rev-row .big {
    max-width: 340px;
  }
  .quick {
    margin-top: -34px;
  }
}
@media (max-width: 768px) {
  .bar {
    padding: 8px 14px;
  }
  .btn.sm {
    padding: 8px 12px;
  }
  .gal img {
    height: 200px;
  }
  .panel {
    padding: 20px;
  }
  .map iframe {
    height: 320px;
  }
  .s2 {
    width: 170px;
  }
  .s3 {
    width: 130px;
  }
}
@media (max-width: 560px) {
  .stack {
    height: 380px;
    max-width: 320px;
  }
  .s1 {
    height: 340px;
  }
  .s2 {
    width: 130px;
    top: 150px;
  }
  .s3 {
    width: 100px;
  }
  .stats li {
    padding: 8px 12px;
  }
  .stats b {
    font-size: 1.1rem;
  }
  .qgrid {
    gap: 10px;
  }
  .qgrid a {
    padding: 12px 8px;
  }
  .qgrid b {
    font-size: 0.9rem;
  }
  .tbl th,
  .tbl td {
    padding: 9px 10px;
    font-size: 0.9rem;
  }
  .rcard {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bnav {
    width: calc(100% - 16px);
    justify-content: space-around;
    padding: 5px 4px;
  }
  .bnav a {
    padding: 4px 6px;
    flex: 1;
  }
  .wafab {
    right: 12px;
    bottom: 84px;
    width: 50px;
    height: 50px;
  }
  .hero::before {
    opacity: 0.6;
  }
}
@media (max-width: 380px) {
  h1 {
    font-size: 1.7rem;
  }
  .qgrid {
    grid-template-columns: 1fr 1fr;
  }
  .bnav span {
    font-size: 0.58rem;
  }
  .btn {
    padding: 11px 18px;
  }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    padding: 30px 0 60px;
  }
  .stack {
    height: 300px;
  }
  .s1 {
    height: 270px;
  }
  .bnav {
    position: static;
    transform: none;
    margin: 10px auto;
  }
  body {
    padding-bottom: 20px;
  }
}
@supports (padding: max(0px)) {
  body {
    padding-bottom: max(84px, calc(74px + env(safe-area-inset-bottom)));
  }
  .wrap {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}

/* ---------- accessibility & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .hdr,
  .bnav,
  .wafab,
  .map,
  .hero::before,
  .hero::after {
    display: none;
  }
  body {
    padding: 0;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
