/* ============================
   Efficient Ash Handling Solutions for Power Plants
   Shared Stylesheet (2–3 color theme)
   Colors: Dark Navy, Teal, Amber
   ============================ */
:root {
  --mdh-yellow: #ffd400; /* bright yellow for MDH hover */
  --dark: #0b132b; /* dark navy */
  --primary: #14b8a6; /* teal */
  --accent: #f59e0b; /* amber */
  --light: #ffffff;
  --muted: #e5e7eb; /* light gray */
  --ink: #0f172a; /* deep ink text */
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif;
  color: var(--ink);
  background: #f8fafc;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */
.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}
.section {
  padding: 64px 0;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  transition: 0.25s ease;
}
.btn-primary {
  background: var(--primary);
  color: #032a26;
}
.btn-primary:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--dark);
}
.btn-outline:hover {
  background: var(--primary);
  color: #032a26;
}

/* Header / Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(
    180deg,
    rgba(11, 19, 43, 0.98),
    rgba(11, 19, 43, 0.86)
  );
  backdrop-filter: saturate(140%) blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: var(--light);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #042e2a;
  font-weight: 900;
}

/* hamburger (CSS-only) */
#nav-toggle {
  display: none;
}
.navlinks {
  display: flex;
  gap: 22px;
  align-items: center;
}
.navlinks a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  padding: 8px 10px;
  border-radius: 10px;
}
.navlinks a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.navlinks a.active {
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.2),
    rgba(245, 158, 11, 0.2)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.burger {
  display: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}
.burger span {
  width: 20px;
  height: 2px;
  background: #fff;
  display: block;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}

/* Home Hero (zoom-out) */
.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  place-items: center;
  color: var(--light);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?q=80&w=2070&auto=format&fit=crop")
    center/cover no-repeat;
  transform: scale(1.12);
  filter: brightness(0.6) saturate(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 60% at 50% 40%,
    rgba(20, 184, 166, 0.25),
    transparent 60%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 12px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  margin: 0 0 12px;
  line-height: 1.1;
}
.hero p {
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: 0.95;
  margin: 0 auto 22px;
  max-width: 850px;
}
.hero .cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
@keyframes heroZoom {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1);
  }
}
.hero::before {
  animation: heroZoom 1.8s ease-out both;
}

/* Page Banners (all pages) */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #e9fdfc;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  filter: brightness(0.55) saturate(1.05);
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding: 48px 0;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
}
.page-hero p {
  max-width: 820px;
  margin-top: 8px;
  opacity: 0.95;
}
.page-hero .crumbs {
  margin-top: 10px;
  font-weight: 600;
  opacity: 0.9;
}
.page-hero .crumbs a {
  color: #c4fbf5;
  text-decoration: none;
}
@keyframes zoomIn {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
.page-hero::before {
  animation: zoomIn 1.2s ease-out both;
}

@media (max-width: 425px) {
  .page-hero .wrap{
    text-align: center;
  }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 32px rgba(2, 8, 23, 0.12);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.18),
    rgba(245, 158, 11, 0.18)
  );
  color: var(--dark);
}
.card h4 {
  margin: 12px 0 8px;
}
.card p {
  margin: 0;
  opacity: 0.85;
}

@media (max-width: 640px) {
  section[data-reveal] .grid.grid-4 .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  section[data-reveal] .grid.grid-4 .card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
  }
  section[data-reveal] .grid.grid-4 .card h4 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }
}


/* Feature list w/ ticks */
.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature svg {
  flex: 0 0 22px;
  margin-top: 2px;
}

/* Section headings */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.section-title .bar {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.section-title h2 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 34px);
  color: var(--dark);
}
.section-sub {
  margin: 6px 0 28px;
  opacity: 0.85;
}

/* Alternating section backgrounds for creativity */
.alt {
  background: linear-gradient(
    90deg,
    rgba(20, 184, 166, 0.08),
    rgba(245, 158, 11, 0.08)
  );
}
.strip {
  padding: 32px 0;
  background: linear-gradient(
    90deg,
    rgba(20, 184, 166, 0.12),
    rgba(245, 158, 11, 0.12)
  );
}

@media (max-width: 640px) {
  .strip .container {
    flex-direction: column;
    align-items: center;
    justify-content: center !important; /* inline justify-content ko override karega */
    text-align: center;
    gap: 12px;
  }
  .strip .container h3 {
    width: 100%;
    margin: 0;
    text-align: center;
  }
  .strip .container > div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .strip .btn {
    display: inline-block;
    min-width: 140px;
    text-align: center;
  }
}


/* Process Flow (CSS-only diagram) */
/* ==== Base / Desktop (horizontal flow) ==== */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap; /* row me rakkho; wrap nahi */
}

.flow .step {
  position: relative;
  background: #fff;
  border: 1px dashed rgba(20, 184, 166, 0.6);
  padding: 14px 18px;
  border-radius: 14px;
  min-width: 180px;
  text-align: center;
  /* readable width */
  max-width: 100%;
}

.flow .arrow {
  position: relative;
  width: 48px;          /* thoda bada arrow line */
  height: 2px;
  flex: 0 0 48px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* right arrow head */
.flow .arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--accent);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ==== Mobile / Tablet / <=1024px : vertical flow ==== */
@media (max-width: 1024px) {
  .flow {
    flex-direction: column;    /* stack */
    align-items: center;
    gap: 14px;
  }

  .flow .step {
    min-width: auto;
    width: min(560px, 100%);   /* center + wrap text nicely */
    text-align: center;
    white-space: normal;       /* allow wrapping on small screens */
  }

  .flow .arrow {
    width: 2px;
    height: 28px;
    flex: 0 0 28px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
  }

  /* down arrow head */
  .flow .arrow::after {
    left: 50%;
    top: 100%;
    right: auto;
    transform: translateX(-50%);
    border: none;
    border-top: 8px solid var(--accent);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
  }
}

/* Extra small phones polish */
@media (max-width: 400px) {
  .flow { gap: 12px; }
  .flow .step {
    padding: 12px 14px;
    font-size: 14px;
  }
}


/* Application cards */
.app-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-card img {
  border-radius: 14px;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Contact */
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe0e7;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.form textarea {
  grid-column: span 2;
  min-height: 140px;
  resize: vertical;
}
.form .actions {
  grid-column: span 2;
}
.form .actions .btn {
  width: 100%;
  max-width: 260px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 36px 0 50px;
}
.footer a {
  color: #e5feff;
  text-decoration: none;
}
.footer .cols {
  display: grid;
  gap: 2px;  /* 22 */
  grid-template-columns: 2fr 1fr 1fr;
}
.footer small {
  opacity: 0.75;
}

/* Floating WhatsApp & Call */
/* base position */
.floating {
  position: fixed;
  z-index: 998;
  bottom: 18px;
}
.float-left { left: 18px; }
.float-right { right: 18px; }

/* common button */
.floating a {
  min-width: 54px;
  min-height: 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #042e2a;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid #0aa595;
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.4);
  animation: pulse 2.2s ease-in-out infinite;
  transition: transform .15s ease, box-shadow .15s ease;
}
.floating a:hover {
  transform: translateY(-3px);
}

/* icons size */
.floating a i {
  font-size: 26px;
  line-height: 1;
}

/* call variant (your original accent colors) */
.floating .call {
  background: var(--accent);
  border-color: #d28702;
  color: #3d2800;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.4);
}

/* whatsapp brand variant */
.floating .wa {
  background: #25D366;          /* WhatsApp green */
  border-color: #128C7E;        /* brand dark green */
  color: #ffffff;               /* white icon */
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
}

/* pulse animation (kept as-is) */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* optional: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating a { animation: none; transition: none; }
}


/* Utility ribbons */
.badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #06211e;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Media queries */
/* @media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer .cols {
    grid-template-columns: 1fr 1fr;
  }
} */

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  @media (max-width: 320px) {
    .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 426px) {
    .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
    .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

  .navlinks {
    position: fixed;
    inset: 64px 18px auto 18px;
    background: rgba(6, 14, 33, 0.98);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* border-radius: 16px; */
    padding: 16px;
    display: none;
    flex-direction: column;
  }
  #nav-toggle:checked ~ .navlinks {
    display: flex;
  }
  .burger {
    display: grid;
  }
}

@media (max-width: 520px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
/* === Additions for new sections (testimonials, about points, tech grid) === */
.form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe0e7;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.about-points {
  display: grid;
  gap: 12px;
}
.about-points .feature {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 12px;
}

.tech-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.testi-rail {
  display: flex;
  gap: 18px;
  overflow: auto;
  padding: 6px;
  scroll-snap-type: x mandatory;
}
.testi-rail::-webkit-scrollbar {
  height: 10px;
}
.testi-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(
    90deg,
    rgba(20, 184, 166, 0.5),
    rgba(245, 158, 11, 0.5)
  );
  border-radius: 999px;
}
.testimonial {
  scroll-snap-align: start;
  min-width: 320px;
  max-width: 360px;
}
.stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 1px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(20, 184, 166, 0.5);
}

@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 425px) {
  .testimonial {
    min-width: 85%;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #about .about-points + div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  #about .about-points + div .btn {
    /* flex: 1 1 calc(50% - 10px);  */
    min-width: 0;               /* override earlier min-width */
    text-align: center;
    box-sizing: border-box;
  }
}


/* === Global link cleanup (no underline anywhere) === */
a {
  text-decoration: none;
}

/* === Split layout (form + image) === */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}
.split .visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.06);
}
.split .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split .visual {
    order: -1;
  } /* image above on mobile */
}

/* === Tech glance redesign === */
.tech-glance {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.tech-glance .tile {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.06);
}
.tech-glance .tile .ticon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.18),
    rgba(245, 158, 11, 0.18)
  );
  margin-bottom: 8px;
}
.tech-glance .tile h4 {
  margin: 8px 0 6px;
}
.tech-glance .tile ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.tech-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}
.tech-stats .pill {
  background: linear-gradient(
    90deg,
    rgba(20, 184, 166, 0.12),
    rgba(245, 158, 11, 0.12)
  );
  border: 1px solid #e6f7f4;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .tech-glance {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .tech-glance {
    grid-template-columns: 1fr;
  }
}

/* === Mission / Vision refreshed blocks === */
.block-duo {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
.block {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.06);
  position: relative;
  overflow: hidden;
}
.block::after {
  content: "";
  position: absolute;
  inset: auto -40% -40% auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    closest-side,
    rgba(20, 184, 166, 0.2),
    transparent
  );
  transform: rotate(-12deg);
}
.block h4 {
  margin: 0 0 8px;
}
.block p {
  margin: 0;
  opacity: 0.9;
}
@media (max-width: 900px) {
  .block-duo {
    grid-template-columns: 1fr;
  }
}

/* === Footer social icons === */
.social {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e6fbff;
}
.social a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* === Active link highlight for footer Quick Links === */
.footer .active-link {
  color: #ffffff;
  font-weight: 800;
}


/* === Newsletter block === */
.newsletter {
  margin-top: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px;
  color: #dbeafe;
}
.newsletter label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e6fbff;
}
.nl-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.newsletter input[type="email"] {
  flex: 1;
  min-width: 160px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
}
.newsletter input::placeholder {
  color: #cfe6e9;
}
.newsletter .nl-note {
  display: block;
  margin-top: 6px;
  opacity: 0.8;
}
@media (max-width: 520px) {
  .nl-row { flex-direction: column; align-items: stretch; }
  .newsletter .btn { width: 100%; }
}

/* === Card image helper === */
.card-img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid #eef2f7;
}

/* === Visual wrappers reuse === */
.visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Minor polish for footer spacing with newsletter */
.footer .cols > div:first-child { display: flex; flex-direction: column; gap: 10px; }

/* Ensure banner content is vertically centered while aligned left */
.page-hero .wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46vh;
}

/* Footer newsletter width clamp */
.footer .newsletter { width: 100%; max-width: 420px; }
@media (max-width: 520px) { .footer .newsletter { max-width: 100%; } }



.footer h4 + p a {
  display: inline-block;
  margin: 4px 14px 8px 0; /* right + bottom space */
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, transform 0.2s ease, border-bottom-color 0.2s ease;
}
.footer h4 + p a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}


/* === Footer bottom (centered legal + developer credit) === */
.footer-bottom {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 18px;
  padding-top: 16px;
  color: #cbd5e1;
  text-align: center;
  flex-wrap: wrap;
  margin-bottom: -50px;
}
.footer-bottom small { opacity: 0.95; }
.footer-bottom strong { color: #e6fbff; }
.footer-bottom span[aria-hidden="true"] { opacity: 0.5; }


/* === Footer Quick Links: keep spacing, color-only hover (no underline/bg) === */
.footer h4 + p a {
  display: inline-block;
  margin: 4px 14px 8px 0;
  transition: color 0.2s ease;
}
.footer h4 + p a:hover {
  color: var(--primary);
}

/* === Global mail/phone hover (non-button only) — color only === */
a[href^="mailto:"]:not(.btn),
a[href^="tel:"]:not(.btn) {
  transition: color 0.2s ease;
}
a[href^="mailto:"]:not(.btn):hover,
a[href^="tel:"]:not(.btn):hover {
  color: var(--primary);
}

/* === Dev credit: only the brand text turns amber on hover === */
.footer-bottom .devhub { color: var(--accent); font-weight: 800; transition: color 160ms ease, transform 160ms ease; }
.footer-bottom .devhub:hover { color: var(--mdh-yellow) !important; transform: scale(1.06); }

/* Global non-button link hover color aligned with theme (no yellow) */
a:not(.btn):hover { color: var(--primary); }


/* === Footer hover fixes (2025-09-06) === */
/* Remove hover underline/border & keep it color-only for Quick Links */
.footer h4 + p a {
  padding-bottom: 0 !important;
  border: none !important;
  text-decoration: none !important;
  transform: none !important;
}
.footer h4 + p a:hover {
  border: none !important;
  text-decoration: none !important;
  color: var(--primary);
}

/* Keep 'Maharishi Digital Hub' color the same; add a subtle zoom on hover */
.footer-bottom .devhub { color: var(--accent); font-weight: 800; transition: color 160ms ease, transform 160ms ease; }
.footer-bottom .devhub:hover { color: var(--mdh-yellow) !important; transform: scale(1.06); }


/* Footer links accessibility focus */
.footer h4 + p a:focus-visible { outline: 2px dashed var(--primary); outline-offset: 2px; }

/* MDH explicit hover color (safeguard) */
.footer .footer-bottom a.devhub:hover { color: var(--mdh-yellow) !important; }


/* === Benefits: bigger text + icons === */
.benefits-grid .benefit-card .icon { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; }
.benefits-grid .benefit-card h4 { font-size: clamp(18px, 2.4vw, 24px); }
.benefits-grid .benefit-card p  { font-size: clamp(15px, 2.1vw, 18px); line-height: 1.55; }

/* === Projects: bigger text for readability === */
.projects-grid .project-card h4 { font-size: clamp(18px, 2.6vw, 24px); }
.projects-grid .project-card p  { font-size: clamp(15px, 2.2vw, 18px); line-height: 1.6; }

/* Subtle card hover accent on headings (professional feel) */
.card:hover h4 { color: var(--primary); }

/* Mobile spacing tweaks for tighter viewports */
@media (max-width: 520px) {
  .benefits-grid .benefit-card, .projects-grid .project-card { padding: 20px; }
}


/* =============================
   ✨ Ultra-Responsive Enhancements (2025-09-08)
   - Smoother mobile nav
   - Fluid typography
   - Scroll reveal (reduced-motion aware)
   - Back-to-top FAB
   - Better touch targets
   ============================= */

/* Fluid type scale */
:root {
  --fs-h1: clamp(28px, 5vw, 56px);
  --fs-h2: clamp(22px, 3.4vw, 36px);
  --fs-h3: clamp(18px, 2.6vw, 26px);
  --fs-body: clamp(15px, 2.1vw, 18px);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
body { font-size: var(--fs-body); line-height: 1.6; }

/* Mobile nav: slide + focus trap feel */
@media (max-width: 768px) {
  .navlinks {
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
  }
  #nav-toggle:checked ~ .navlinks {
    transform: translateY(0);
    opacity: 1;
    margin-left: -18px;
    width: 100%;
    }
  }
  .navlinks a { padding: 12px; font-size: 18px; }
  .burger { touch-action: manipulation; }


/* Scroll reveal (CSS-only via data attribute) */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Back-to-top floating action button */
#toTop {
  position: fixed;
  right: 18px;
  bottom: 88px; /* above call button */
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #0aa595;
  background: var(--primary);
  color: #042e2a;
  box-shadow: 0 10px 22px rgba(20,184,166,.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 997;
}
#toTop.show {
  opacity: 1;
  transform: none;
}
#toTop:focus-visible { outline: 3px dashed var(--accent); outline-offset: 3px; }

/* Tighten grid on tiny phones */
@media (max-width: 380px) {
  .section { padding: 48px 0; }
  .container { width: min(1200px, 92%); }
}

/* Improve cards on hover for accessibility */
.card { transition: transform .22s ease, box-shadow .22s ease, outline-color .22s ease; }
.card:focus-within { outline: 3px solid rgba(20,184,166,.45); }

/* Touch target comfort */
button, .btn, .navlinks a { min-height: 44px; }


/* === FAB Dock (mobile) === */
.fab-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0));
  z-index: 9999;
  display: none;
  background: rgba(6, 14, 33, 0.86);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(10, 20, 40, 0.45);
  backdrop-filter: blur(8px) saturate(130%);
}
.fab-dock .fab-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.fab-dock a, .fab-dock button {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(245,158,11,.18));
  color: #e6fbff;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.25);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.fab-dock a:hover, .fab-dock button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.fab-dock .fab-call { background: linear-gradient(135deg, rgba(245,158,11,.28), rgba(245,158,11,.16)); color: #fff7ea; border-color: rgba(245,158,11,.35); }
.fab-dock .fab-up   { background: linear-gradient(135deg, rgba(20,184,166,.36), rgba(20,184,166,.16)); color: #072b27; border-color: rgba(20,184,166,.35); }

/* Ensure body has breathing room behind dock on tiny phones */
@media (max-width: 640px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0)); }
  .fab-dock { display: block; }
  /* Hide desktop floaters to avoid overlap */
  .floating { display: none; }
  /* Hide separate back-to-top when dock is visible */
  #toTop { display: none; }
}

/* Footer: single column on small devices for neat stacking */
@media (max-width: 640px) {
  .footer .cols { grid-template-columns: 1fr; }
}

/* Avoid footer overlap with dock on very short screens */
.footer { padding-bottom: 76px; }
@supports (padding: max(0px)) {
  .footer { padding-bottom: max(76px, env(safe-area-inset-bottom, 0)); }
}

/* Improve touch target sizes and spacing for footer links on mobile */
@media (max-width: 520px) {
  .footer h4 + p a { margin-right: 10px; margin-bottom: 10px; }
}

/* Better placement of desktop floating buttons on tablets */
@media (min-width: 641px) and (max-width: 1024px) {
  .float-left  { left: 14px; bottom: 14px; }
  .float-right { right: 14px; bottom: 14px; }
  #toTop { bottom: 84px; }
}


/* === Revert (User Request): Show desktop floaters on ALL devices === */
@media (max-width: 1024px) {
  .floating { display: block !important; }
  #toTop { display: inline-block !important; }
}
@media (max-width: 640px) {
  .fab-dock { display: none !important; } /* hide our earlier mobile dock */
  .floating { display: block !important; }
  body { padding-bottom: 0 !important; } /* undo extra space we added previously */
}
@media (max-width: 320px) {
    #toTop {
        display: none;
    }
}


/* =============================
   ✅ Responsive Fixes (2025-09-12)
   - Fix broken nested @media queries
   - Ensure mobile & tablet layouts render correctly
   - Contact page polish
   ============================= */

/* --- Grid fallbacks --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --- Contact form: stack on phones --- */
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .form textarea,
  .form .actions { grid-column: span 1; }
  .form .actions .btn { width: 100%; }
}

/* --- Split layout: always single column on tablets and below --- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr !important; }
  .split .visual { order: -1; }
}

/* --- Footer columns: stack nicely on small screens --- */
@media (max-width: 640px) {
  .footer .cols { grid-template-columns: 1fr !important; }
}

/* --- Mobile nav slide-in (override to ensure applied) --- */
@media (max-width: 768px) {
  .navlinks {
    position: fixed;
    inset: 64px 18px auto 18px;
    background: rgba(6, 14, 33, 0.98);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 16px;
    display: none;
    flex-direction: column;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
  }
  #nav-toggle:checked ~ .navlinks {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
  .burger { display: grid; }
}

/* --- Map wrapper for responsive 16:9 --- */
.map-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  aspect-ratio: 16 / 9;
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Contact quick cards --- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .contact-cards { grid-template-columns: 1fr; }
}
.contact-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(2,8,23,.06);
  display: grid;
  gap: 8px;
}
.contact-card .cicon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(245,158,11,.18));
  color: #0b132b;
}
.contact-card strong { font-size: 16px; }
.contact-card a { font-weight: 700; color: #0b132b; }
.contact-card a:hover { color: var(--primary); }


/* =============================
   Contact > Office block (creative + ultra responsive)
   ============================= */
.contact-office .grid { align-items: center; }
.contact-office .office-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(2,8,23,0.08);
}
.contact-office .office-card p { margin: 8px 0; }
.contact-office .office-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0 4px;
}
.contact-office .social-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.contact-office .social-buttons .sbtn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #e8edf4;
  background: linear-gradient(135deg, rgba(20,184,166,.08), rgba(245,158,11,.08));
  color: var(--dark);
  box-shadow: 0 8px 18px rgba(2,8,23,0.06);
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.contact-office .social-buttons .sbtn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.contact-office .social-buttons .sbtn.yt { color: #c4302b; }
.contact-office .social-buttons .sbtn.li { color: #0a66c2; }
.contact-office .social-buttons .sbtn.tw { color: #111; }

/* Gorgeous responsive map */
.contact-office .map-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  box-shadow: 0 12px 28px rgba(2,8,23,0.08);
  background: #f8fafc;
}
.contact-office .map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile-first centering */
@media (max-width: 768px) {
  .contact-office .grid.grid-2 { grid-template-columns: 1fr; }
  .contact-office .office-card { text-align: center; }
  .contact-office .office-actions { justify-content: center; }
  .contact-office .social-buttons { justify-content: center; }
}

/* Tiny phones polish */
@media (max-width: 400px) {
  .contact-office .office-actions .btn { width: 100%; max-width: 260px; }
}
