/* =========================================================
   Organic Kids - School In Patna
   Replica styling based on organickids.in (archived 2025)
   ========================================================= */

:root {
  --orange:   #ef802f;
  --orange-d: #c95a12;
  --green:    #65bd7d;
  --green-d:  #3f9e63;
  --blue:     #198fd9;
  --blue-d:   #0f6cab;
  --purple:   #422874;
  --dark:     #1c1e21;
  --dark2:    #141617;
  --mid:      #434549;
  --light:    #f9f9fb;
  --lighter:  #f2f3f5;
  --white:    #ffffff;
  --shadow:   0 6px 24px rgba(20, 22, 23, .10);
  --radius:   10px;
}

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

html, body { overflow-x: hidden; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--mid);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-d); text-decoration: none; }
a:hover { color: var(--orange); }
ul { list-style: none; }
strong { color: var(--dark2); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.section { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
}
.btn-sm { padding: 7px 16px; font-size: 12px; font-weight: 600; border-radius: 30px; }
.btn-block { display: block; width: 100%; margin-top: 12px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--dark2); }
.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-light-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light-outline:hover { background: #fff; color: var(--orange-d); }
.btn-outline-white { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-white:hover { background: #fff; color: var(--dark2); }
.btn-dark-outline { border-color: var(--mid); color: var(--dark2); }
.btn-dark-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  position: relative;
  z-index: 60;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-socials { display: flex; align-items: center; gap: 14px; }
.social-ico {
  width: 22px; height: 22px;
  color: #fff;
  font-size: 0;
  opacity: .92;
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-ico:hover { opacity: 1; color: #ffe0c2; }
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.toll-free { font-weight: 700; letter-spacing: .4px; }
.topbar-ph {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .95;
}
.topbar-ph::before {
  content: "";
  width: 14px; height: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z"/></svg>') center/contain no-repeat;
}

/* ---------- Header / nav ---------- */
.header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(20,22,23,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { padding: 10px 0; flex-shrink: 0; }
.logo img { height: 66px; width: auto; }

.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block;
  padding: 26px 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.nav > ul > li > a:hover,
.nav > ul > li.active > a {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.has-sub > a .caret {
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .22s ease;
  z-index: 80;
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

@media (min-width: 941px) and (max-width: 1380px) {
  .nav > ul > li > a { padding: 26px 8px; font-size: 12.5px; letter-spacing: .2px; }
}
@media (min-width: 941px) and (max-width: 1160px) {
  .nav > ul > li > a { font-size: 11.5px; }
}

/* keeps fly-out menus on screen for the right-side items */
.nav > ul > li:nth-last-child(-n+3) > .submenu { left: auto; right: 0; }
.nav > ul > li:nth-last-child(-n+3) .submenu .submenu { left: auto; right: 100%; }

@media (min-width: 941px) {
  .submenu .has-sub { position: relative; }
  .submenu .has-sub > a .caret { transform: rotate(-45deg) translateY(-1px); float: right; margin-top: 6px; }
  .submenu .submenu {
    top: 0;
    left: 100%;
    transform: translateX(10px);
    border-top: 3px solid var(--orange);
  }
  .submenu .has-sub:hover > .submenu { transform: translateX(0); }
}
.submenu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
}
.submenu a:hover { color: var(--orange); background: var(--light); padding-left: 24px; }

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--dark2);
  margin: 5px 0;
  border-radius: 3px;
  transition: all .25s;
}

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; height: 620px; }
.slides, .slide { position: absolute; inset: 0; }
.slides { height: 100%; }
.slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; visibility: visible; }
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px),
    linear-gradient(115deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 45%);
  background-size: 26px 26px, cover;
  pointer-events: none;
}
.slide-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  color: #fff;
  animation: riseIn .8s ease both;
}
.slide.active .slide-inner { animation: riseIn .9s ease both; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(2px);
}
.slide h1 {
  font-size: 58px;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.slide-text {
  max-width: 620px;
  font-size: 17px;
  color: rgba(255,255,255,.94);
  margin-bottom: 28px;
}
.slide-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover { background: #fff; color: var(--dark2); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: all .2s;
}
.hero-dots button.active { background: #fff; transform: scale(1.25); }

/* ---------- Page title ---------- */
.page-title {
  background:
    linear-gradient(rgba(20,22,23,.65), rgba(20,22,23,.65)),
    url('../assets/img/breadcrumb1.jpg') center/cover no-repeat;
  padding: 44px 0;
  color: #fff;
}
.page-title h2 { font-size: 30px; font-weight: 700; }
.crumbs { display: flex; gap: 8px; margin-top: 6px; font-size: 14px; color: #ffd9b5; }
.crumbs .current { color: #fff; }

/* ---------- Section titles ---------- */
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark2);
  margin-bottom: 18px;
  line-height: 1.25;
}
.section-title span { color: var(--orange); }
.section-title.center { text-align: center; }
.section-sub { font-size: 16px; color: var(--mid); margin-bottom: 34px; }
.section-title.white { color: #fff; }

/* ---------- Intro ---------- */
.intro { background: var(--white); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: start;
}
.intro p { margin-bottom: 16px; font-size: 15.5px; }
.intro p:last-child { margin-bottom: 0; }
.intro-img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 26px; }

.enroll-card {
  background: linear-gradient(140deg, var(--green), var(--green-d));
  color: #fff;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.enroll-card h3 { font-size: 22px; margin-bottom: 6px; }
.enroll-card p { color: rgba(255,255,255,.92); margin-bottom: 14px; }
.enroll-card .btn-primary { width: 100%; background: var(--orange); }
.enroll-card .btn-primary:hover { background: var(--orange-d); }
.quick-contact {
  margin-top: 22px;
  background: var(--light);
  border-left: 4px solid var(--orange);
  padding: 18px 20px;
  border-radius: 6px;
  font-size: 14px;
}
.quick-contact h4 { color: var(--dark2); margin-bottom: 8px; }
.quick-contact p { margin-bottom: 4px; }

/* ---------- Studios ---------- */
.studios { background: var(--light); }
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.studio-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--green);
}
.studio-card h3 {
  background: linear-gradient(135deg, var(--green), var(--green-d));
  color: #fff;
  padding: 16px 22px;
  font-size: 18px;
  font-weight: 700;
}
.studio-card h3 span { font-weight: 500; font-size: 14px; opacity: .92; }
.studio-body { padding: 20px 22px; }
.studio-body p { margin-bottom: 14px; font-size: 15px; }
.studio-list li { padding: 7px 0; border-bottom: 1px dashed #e3e3e3; font-size: 14.5px; }
.studio-list li:last-child { border-bottom: 0; }
.studio-list span { color: var(--green-d); font-weight: 700; }
.studio-map {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.studio-map iframe { display: block; width: 100%; }
.studio-card-map { border-top: 1px solid #ececec; line-height: 0; }
.studio-card-map iframe { display: block; width: 100%; }

/* ---------- Downloads / important links ---------- */
.downloads {
  background:
    linear-gradient(rgba(20,22,23,.66), rgba(20,22,23,.66)),
    url('../assets/img/breadcrumb1.jpg') center/cover no-repeat;
  background-attachment: fixed;
}
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.panel {
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}
.panel-title {
  background: var(--purple);
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 16px;
}
.item-list > li { margin-bottom: 8px; }
.item-list > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark2);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  border: 1px solid #e8e8e8;
  background: #fff;
  padding: 11px 16px;
  border-radius: 8px;
  transition: all .2s;
}
.item-list > li > a:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateX(4px);
}
.links-list a .mini-logo { height: 36px; width: auto; flex-shrink: 0; }
.links-list a .mini-badge {
  width: 36px; height: 36px;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  font-style: normal;
  flex-shrink: 0;
}
.links-list a span:nth-child(2) { flex: 1; }
.links-list a em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---------- Stats band ---------- */
.stats-band {
  background:
    radial-gradient(circle at 20% 120%, rgba(255,255,255,.12), transparent 40%),
    linear-gradient(135deg, #3f9e63 0%, #65bd7d 55%, #2c8a55 100%);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats-kicker {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .95;
}
.stats-figure { font-size: 110px; font-weight: 800; line-height: 1; margin: 8px 0 6px; }
.stats-figure .stat-percent { color: #ffe0c2; }
.stats-text { font-size: 17px; max-width: 760px; margin: 0 auto; }
.stats-text strong { color: #fff; }

/* ---------- Unique ---------- */
.unique { background: var(--white); }
.unique-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.unique-card {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ececec;
  transition: transform .25s, box-shadow .25s;
}
.unique-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(20,22,23,.12); }
.unique-card img { width: 100%; height: 190px; object-fit: cover; }
.unique-card h4 {
  padding: 18px 20px 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark2);
}
.unique-card p { padding: 0 20px 22px; font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--light); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.testi-quote {
  font-size: 70px;
  line-height: 1;
  color: var(--orange);
  font-family: Georgia, serif;
  height: 40px;
}
.testi-card p { font-size: 15px; font-style: italic; margin-bottom: 18px; }
.testi-author strong {
  display: block;
  font-size: 14px;
  color: var(--dark2);
  margin-top: 6px;
}
.stars { color: #f5a623; letter-spacing: 3px; }

/* ---------- Reggio ---------- */
.reggio { background: var(--white); }
.reggio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.reggio-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #ececec;
  background: #fff;
}
.reggio-img img { width: 100%; height: 200px; object-fit: cover; }
.reggio-body { padding: 22px 22px 26px; }
.reggio-body h3 { font-size: 20px; color: var(--dark2); margin-bottom: 10px; }
.reggio-body p { font-size: 14.5px; }

/* ---------- We care ---------- */
.care {
  background:
    linear-gradient(rgba(20,22,23,.78), rgba(20,22,23,.78)),
    url('../assets/img/bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.care-card {
  background: rgba(255,255,255,.94);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.care-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(255,255,255,.18); }
.care-ico {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.care-ico:nth-of-type(odd) { background: var(--orange); }
.care-card h4 { font-size: 14.5px; color: var(--dark2); font-weight: 600; }

/* ---------- Apply / enquiry ---------- */
.apply { background: var(--light); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.apply-points { margin-top: 22px; }
.apply-points li {
  padding: 9px 0 9px 34px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px dashed #ddd;
}
.apply-points li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}
.enquiry-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.enquiry-form h3 { margin-bottom: 18px; color: var(--dark2); }
.enquiry-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark2);
  margin-bottom: 14px;
}
.enquiry-form input,
.enquiry-form select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  color: var(--mid);
  background: var(--light);
}
.enquiry-form input:focus,
.enquiry-form select:focus { outline: 2px solid var(--orange); border-color: transparent; }
.enquiry-form .btn { margin-top: 4px; }

.franchise-form-wrap { margin-top: 30px; }
.franchise-form-wrap .enquiry-form { max-width: 760px; margin: 0 auto; }
.fr-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fr-note { font-size: 12.5px; color: var(--mid); margin: -4px 0 12px; }
@media (max-width: 620px) { .fr-2col { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #555b62;
  border-top: 3px solid var(--green);
}
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 54px 20px 40px;
}
.footer-col h4 { color: var(--green-d); font-size: 16px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col p { font-size: 14px; margin-bottom: 10px; line-height: 1.75; color: #5b6167; }
.footer-col a { color: var(--green-d); }
.footer-logo { height: 60px; width: auto; margin-bottom: 14px; }
.footer .topbar-socials { margin-top: 8px; }
.footer .social-ico { font-size: 15px; color: var(--green-d); }
.footer .social-ico:hover { color: var(--orange); }
.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(20,22,23,.1);
  padding: 18px 0;
  background: rgba(255,255,255,.6);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.legal { display: flex; gap: 18px; }
.legal a { color: #5b6167; }
.legal a:hover { color: var(--dark2); }
.credit { color: #9aa0a6 !important; }

/* ---------- Footer colorful 3D animation ---------- */
.footer-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.fx-orb {
  position: absolute;
  border-radius: 50%;
  opacity: .45;
  filter: blur(38px);
  animation: fxFloat 13s ease-in-out infinite;
}
.fx-orb.o1 { width: 280px; height: 280px; left: -70px; top: -90px; background: radial-gradient(circle at 30% 30%, #ffd36e, #ff7ab6 55%, #a46bff); }
.fx-orb.o2 { width: 240px; height: 240px; right: -60px; top: -40px; background: radial-gradient(circle at 30% 30%, #7ef0c0, #5aa9ff 60%, #7c5cff); animation-delay: -3s; }
.fx-orb.o3 { width: 220px; height: 220px; left: 24%; bottom: -80px; background: radial-gradient(circle at 30% 30%, #ffe38a, #ffa14a 55%, #ff5e7e); animation-delay: -6s; }
.fx-orb.o4 { width: 200px; height: 200px; right: 18%; bottom: -60px; background: radial-gradient(circle at 30% 30%, #8ad7ff, #6f8bff 55%, #b06bff); animation-delay: -9s; }

@keyframes fxFloat {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(24px,-34px,0) scale(1.12); }
}

.fx-cube {
  position: absolute;
  width: 46px;
  height: 46px;
  transform-style: preserve-3d;
  animation: fxSpin 16s linear infinite;
  opacity: .5;
}
.fx-cube i {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 0 22px rgba(255,255,255,.45);
}
.fx-cube i:nth-child(1) { transform: translateZ(23px); }
.fx-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(23px); }
.fx-cube i:nth-child(3) { transform: rotateY(90deg)  translateZ(23px); }
.fx-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(23px); }
.fx-cube i:nth-child(5) { transform: rotateX(90deg)  translateZ(23px); }
.fx-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(23px); }

@keyframes fxSpin {
  0%   { transform: rotateX(0deg)   rotateY(0deg)   rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

.fx-cube.c1 { left: 4%;  top: 26%; animation-duration: 15s; }
.fx-cube.c1 i { background: linear-gradient(135deg, #ffd36e, #ff7ab6, #a46bff); }
.fx-cube.c2 { right: 6%; top: 56%; animation-duration: 19s; animation-direction: reverse; }
.fx-cube.c2 i { background: linear-gradient(135deg, #7ef0c0, #5aa9ff, #7c5cff); }
.fx-cube.c3 { left: 46%; top: 8%; animation-duration: 17s; }
.fx-cube.c3 i { background: linear-gradient(135deg, #8ad7ff, #b06bff, #ff7ab6); }
.fx-cube.c4 { right: 27%; bottom: 14%; animation-duration: 21s; animation-direction: reverse; }
.fx-cube.c4 i { background: linear-gradient(135deg, #ffe38a, #ff8a5e, #ff5e7e); }

/* colorful spinning rings */
.fx-ring {
  position: absolute;
  border-radius: 50%;
  opacity: .5;
  background: conic-gradient(from 0deg, #ff7ab6, #ffd36e, #7ef0c0, #5aa9ff, #b06bff, #ff7ab6);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 9px));
  animation: fxSpin2 20s linear infinite;
}
.fx-ring.r1 { width: 92px; height: 92px; left: 17%; top: 16%; animation-duration: 24s; }
.fx-ring.r2 { width: 62px; height: 62px; right: 15%; top: 30%; animation-duration: 16s; animation-direction: reverse; }

@keyframes fxSpin2 { to { transform: rotate(360deg); } }

/* twinkling stars */
.fx-star {
  position: absolute;
  width: 16px; height: 16px;
  opacity: .7;
  background: linear-gradient(135deg, #ffe38a, #ff8a5e);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: fxTwinkle 3.6s ease-in-out infinite;
}
.fx-star.s1 { left: 11%; top: 62%; }
.fx-star.s2 { left: 33%; top: 22%; background: linear-gradient(135deg, #7ef0c0, #5aa9ff); animation-delay: -.6s; }
.fx-star.s3 { right: 21%; top: 13%; background: linear-gradient(135deg, #ff9ad5, #b06bff); animation-delay: -1.2s; }
.fx-star.s4 { right: 9%; bottom: 28%; background: linear-gradient(135deg, #ffd36e, #ff7ab6); animation-delay: -1.8s; }
.fx-star.s5 { left: 55%; bottom: 20%; background: linear-gradient(135deg, #8ad7ff, #6f8bff); animation-delay: -2.4s; }
.fx-star.s6 { left: 71%; top: 42%; background: linear-gradient(135deg, #ffe38a, #7ef0c0); animation-delay: -3s; }

@keyframes fxTwinkle {
  0%, 100% { transform: scale(.55) rotate(0deg); opacity: .35; }
  50%      { transform: scale(1.15) rotate(45deg); opacity: 1; }
}

/* tumbling rounded squares */
.fx-shape {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 30%;
  opacity: .5;
  box-shadow: 0 12px 26px rgba(20,22,23,.08);
  animation: fxTumble 15s ease-in-out infinite;
}
.fx-shape.sh1 { left: 24%; top: 50%; background: linear-gradient(135deg, #ffd36e, #ff7ab6); }
.fx-shape.sh2 { right: 30%; top: 19%; background: linear-gradient(135deg, #7ef0c0, #5aa9ff); animation-delay: -5s; animation-duration: 18s; }
.fx-shape.sh3 { left: 63%; bottom: 32%; background: linear-gradient(135deg, #8ad7ff, #b06bff); animation-delay: -9s; animation-duration: 13s; }

@keyframes fxTumble {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg) rotate(0deg); }
  50%      { transform: translateY(-26px) rotateX(50deg) rotateY(35deg) rotate(25deg); }
}

/* floating triangles */
.fx-tri {
  position: absolute;
  width: 26px; height: 26px;
  opacity: .55;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: fxTumble 12s ease-in-out infinite;
}
.fx-tri.t1 { left: 7%; bottom: 34%; background: linear-gradient(135deg, #7ef0c0, #198fd9); }
.fx-tri.t2 { right: 41%; bottom: 11%; background: linear-gradient(135deg, #ff9ad5, #b06bff); animation-delay: -4s; animation-duration: 16s; }

@media (prefers-reduced-motion: reduce) {
  .fx-orb, .fx-cube, .fx-ring, .fx-star, .fx-shape, .fx-tri { animation: none; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--green); color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav > ul > li > a { padding: 26px 7px; font-size: 12px; }
  .unique-grid, .reggio-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .care-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 0; right: -320px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0,0,0,.18);
    overflow-y: auto;
    padding-top: 70px;
    transition: right .3s ease;
    z-index: 100;
  }
  .nav.open { right: 0; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li > a {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
    font-size: 13.5px;
  }
  .nav > ul > li.active > a,
  .nav > ul > li > a:hover { border-left-color: var(--orange); color: var(--orange); }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    padding: 0;
    background: var(--light);
    display: none;
  }
  .has-sub.open .submenu { display: block; }
  .has-sub.open > a .caret { transform: rotate(225deg) translateY(-2px); }
  .has-sub > a { cursor: pointer; }
  .intro-grid, .two-col { grid-template-columns: 1fr; }
  .studio-grid, .downloads-grid { grid-template-columns: 1fr; }
  .slide h1 { font-size: 42px; }
  .hero { height: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-contact .btn { display: none; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 620px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-contact { gap: 10px 16px; justify-content: center; }
  .topbar-ph { display: flex; }
  .slide h1 { font-size: 34px; }
  .hero { height: 470px; }
  .unique-grid, .reggio-grid, .testi-grid, .care-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-figure { font-size: 82px; }
  .hero-arrow { display: none; }
}