@import url('nav-dropdown.css');

/* Intelex Solutions — shared inner-page styles (claymorphic) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #1a9e8f;
  --teal-light: #2ec4b0;
  --teal-dark: #0d7a6e;
  --navy: #1a2e3b;
  --bg: #e8f4f2;
  --clay-white: #f0f7f5;
  --text: #4f697d;
  --text-strong: #244860;
  --shadow-clay: 6px 8px 20px rgba(26,158,143,0.18), -2px -2px 10px rgba(255,255,255,0.85);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: linear-gradient(160deg, #d8eeea 0%, #e8f3f2 42%, #d5eeea 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  padding: 18px;
  color: var(--text);
}

img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }

.blob-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35;
}
.blob-1 { width: 420px; height: 420px; background: #a8e6df; top: -80px; right: 10%; }
.blob-2 { width: 300px; height: 300px; background: #c7f0eb; bottom: 10%; left: 5%; }
.blob-3 { width: 200px; height: 200px; background: #b2f2e8; top: 40%; right: 5%; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 44px 28px;
  position: relative;
  z-index: 1;
  background: linear-gradient(150deg, #edf4f4 0%, #e4efef 38%, #dceaea 100%);
  border-radius: 44px;
  box-shadow: 0 26px 55px rgba(105, 151, 148, 0.18), inset 2px 2px 0 rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.66);
  min-height: calc(100vh - 36px);
  min-height: calc(100dvh - 36px);
  overflow: hidden;
}

/* ── NAV ── */
.site-header {
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1272px, calc(100% - 56px));
  z-index: 120;
  border-radius: 24px;
  background: rgba(238, 246, 248, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 10px 14px 24px rgba(112, 141, 156, 0.2), inset 1px 1px 0 rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.52);
}
.site-header.menu-open {
  background: rgba(238, 246, 248, 0.96);
}

.logo { display: flex; align-items: center; }
.logo-full {
  height: 52px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  background: linear-gradient(160deg, #f6f8fa 0%, #edf1f4 100%);
  border-radius: 48px;
  padding: 10px 18px;
  box-shadow: 8px 10px 20px rgba(124, 143, 166, 0.18), -2px -2px 8px rgba(255, 255, 255, 0.92);
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #4f6883;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 18px;
  transition: background .2s ease, color .2s ease;
  position: relative;
}
.nav-links a:hover { color: #2e5877; background: rgba(210, 224, 235, 0.35); }
.nav-links a[aria-current="page"] { color: #19998c; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 22%; right: 22%; bottom: 2px;
  height: 2px; border-radius: 2px; background: #20b2a4;
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 15px;
  background: linear-gradient(160deg, #f7fbfc 0%, #e9f1f4 100%);
  box-shadow: 6px 8px 14px rgba(112, 141, 156, 0.22), inset -3px -3px 7px rgba(255,255,255,0.82);
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2.5px; border-radius: 3px; background: #2c5570;
  transition: transform .28s ease, opacity .2s ease;
}
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.btn-primary, .btn-outline, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 22px;
  padding: 1em 2.2em 1.1em;
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(160deg, #37c8bb 0%, #189688 100%);
  color: #fff;
  box-shadow:
    9px 9px 18px 0 rgba(24, 120, 113, 0.45),
    inset -8px -8px 16px 0 rgba(20, 132, 123, 0.45),
    inset 8px 8px 16px 0 rgba(118, 231, 222, 0.35);
}
.btn-primary:hover { transform: scale(1.02); color: #fff; }
.btn-outline, .btn-light {
  background: linear-gradient(160deg, #b9bad7 0%, #9ea0c9 100%);
  color: #fff;
  box-shadow:
    5px 5px 12px 0 rgba(102, 103, 171, 0.45),
    inset -6px -6px 12px 0 rgba(102, 103, 171, 0.3),
    inset 6px 6px 12px 0 rgba(255, 255, 255, 0.32);
}
.btn-outline:hover, .btn-light:hover { color: #fff; transform: scale(1.02); }
.header-cta { flex-shrink: 0; padding: 0.85em 1.6em 0.95em; font-size: 0.86rem; }
.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.arrow .btn-ico { width: 1.08em; height: 1.08em; display: block; }

/* ── PAGE SHELL ── */
.page-main {
  margin-top: 110px;
  position: relative;
  z-index: 1;
}

.page-hero {
  padding: 18px 0 10px;
  max-width: 820px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.8);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 3px 4px 12px rgba(26,158,143,0.15), -1px -1px 6px rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.badge-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,158,143,0.2);
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center;
  list-style: none;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6a8398;
}
.breadcrumbs a { text-decoration: none; color: #557085; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs li:not(:last-child)::after {
  content: "/"; margin-left: 8px; color: #9bb0bf; font-weight: 600;
}

.page-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.page-hero h1 span { color: var(--teal); }
.page-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 600;
  color: #4f697d;
  max-width: 640px;
  margin-bottom: 22px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }

.section {
  margin: 22px 0 28px;
}
.section-head {
  margin-bottom: 16px;
  max-width: 720px;
}
.section-head h2 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #1f4057;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-head h2 span { color: var(--teal); }
.section-head p {
  color: #5f788d;
  font-weight: 600;
  line-height: 1.55;
}

.clay-card {
  background: linear-gradient(160deg, #f8fcff 0%, #eaf2f6 100%);
  border-radius: 22px;
  box-shadow: 10px 12px 20px rgba(123, 151, 166, 0.22), inset -8px -8px 12px rgba(255,255,255,0.68), inset 8px 8px 12px rgba(184, 203, 214, 0.26);
  border: 1px solid rgba(255,255,255,0.62);
  padding: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-card, .solution-card, .project-card, .link-card {
  background: linear-gradient(160deg, #f8fcff 0%, #eaf2f6 100%);
  border-radius: 22px;
  box-shadow: 10px 12px 20px rgba(123, 151, 166, 0.22), inset -8px -8px 12px rgba(255,255,255,0.68), inset 8px 8px 12px rgba(184, 203, 214, 0.26);
  border: 1px solid rgba(255,255,255,0.62);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  position: relative;
}
.project-logo {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  clip-path: inset(0 round 10px);
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border: 1.5px solid rgba(126, 154, 170, 0.45);
  box-shadow: 4px 6px 14px rgba(36, 72, 96, 0.16);
  z-index: 2;
}
.project-logo.bg-dark {
  background: #111;
  border-color: rgba(0, 0, 0, 0.35);
}

/* Auto-rotating project screenshots */
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transition: opacity .7s ease;
}
.carousel-slide.is-active { opacity: 1; }
.carousel-slide.fit { object-fit: contain; background: #fff; }
a.service-card:hover, a.solution-card:hover, a.link-card:hover, a.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 12px 14px 24px rgba(123, 151, 166, 0.28), inset -8px -8px 12px rgba(255,255,255,0.7);
}

.icon-wrap {
  width: 64px; height: 64px;
  margin-bottom: 12px;
  display: grid; place-items: center;
}
.icon-wrap img {
  width: 64px; height: 64px;
  object-fit: contain;
  filter: drop-shadow(5px 7px 12px rgba(112, 145, 161, 0.28));
}
.card-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #284a63;
  margin-bottom: 6px;
  line-height: 1.25;
}
.card-text {
  color: #5f788d;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 600;
}
.card-meta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.86rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.detail-body h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #244860;
  margin: 18px 0 8px;
}
.detail-body h2:first-child { margin-top: 0; }
.detail-body p, .prose p {
  color: #557085;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 12px;
}
.detail-body ul, .prose ul {
  margin: 0 0 14px 1.1rem;
  color: #557085;
  font-weight: 600;
  line-height: 1.6;
}
.detail-body li + li, .prose li + li { margin-top: 6px; }

.side-panel {
  position: sticky;
  top: 120px;
}
.side-panel .clay-card + .clay-card { margin-top: 12px; }
.side-panel h2, .side-panel h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #244860;
  margin-bottom: 8px;
}
.side-panel p {
  color: #5f788d;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.side-list { list-style: none; display: grid; gap: 8px; }
.side-list a {
  text-decoration: none;
  color: #557085;
  font-weight: 700;
  font-size: 0.9rem;
}
.side-list a:hover, .side-list a[aria-current="page"] { color: var(--teal); }

.visual-frame {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef4f6 0%, #e4edf0 100%);
  box-shadow: 10px 12px 20px rgba(123, 151, 166, 0.2), inset -6px -6px 12px rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.6);
  aspect-ratio: 16 / 10;
  position: relative;
}
.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.visual-frame.contain img { object-fit: contain; padding: 12px; }

.note {
  font-size: 0.88rem;
  color: #6a8398;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
}

.cta-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(160deg, #f8fcff 0%, #eaf2f6 100%);
  box-shadow: 10px 12px 22px rgba(122, 151, 166, 0.2), -2px -2px 8px rgba(255,255,255,0.82);
  margin: 28px 0 10px;
}
.cta-band img { width: 72px; height: 72px; object-fit: contain; }
.cta-band h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #244860;
  margin-bottom: 4px;
}
.cta-band p { color: #5f788d; font-weight: 600; font-size: 0.92rem; }

.approach-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.step {
  text-align: center;
  padding: 14px 10px;
  border-radius: 18px;
  background: linear-gradient(160deg, #f8fcff 0%, #eaf2f6 100%);
  box-shadow: 8px 10px 16px rgba(123, 151, 166, 0.16), inset -6px -6px 10px rgba(255,255,255,0.7);
}
.step img {
  width: 64px; height: 64px;
  object-fit: contain;
  margin: 0 auto 8px;
  filter: drop-shadow(4px 6px 10px rgba(112, 145, 161, 0.25));
}
.step h3 {
  font: 800 0.92rem/1.2 'Nunito', sans-serif;
  color: #2b4c66;
  margin-bottom: 4px;
}
.step p {
  color: #5f788d;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
}

.project-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
}
.project-badge-row .project-badge {
  margin-bottom: 0;
}
.project-country-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid rgba(126, 154, 170, 0.4);
  box-shadow: 2px 3px 8px rgba(36, 72, 96, 0.1);
  line-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.project-country-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
.project-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: #d8f4ef;
  color: #198f83;
}
.project-badge.uncertain {
  background: #eef2f6;
  color: #5f788d;
}
.project-card .card-title { font-size: 1.08rem; }
.project-domain {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 6px;
}

/* ── ABOUT PAGE ── */
.about-kicker-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

/* Story */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.about-story-aside { display: flex; flex-direction: column; gap: 14px; }
.about-fact-list { list-style: none; display: grid; gap: 14px; }
.about-fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.fact-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(160deg, #d8f4ef 0%, #c4eee8 100%);
  color: var(--teal);
  display: grid; place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.about-fact-list li div { display: flex; flex-direction: column; gap: 2px; }
.about-fact-list li strong { font-size: 0.82rem; font-weight: 800; color: var(--text-strong); }
.about-fact-list li span { font-size: 0.82rem; font-weight: 600; color: var(--text); }

/* Values */
.about-value-card { display: flex; flex-direction: column; gap: 10px; }
.value-round {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(160deg, #d8f4ef 0%, #c4eee8 100%);
  color: var(--teal);
  display: grid; place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.about-value-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--text-strong); }
.about-value-card p { font-size: 0.88rem; color: var(--text); line-height: 1.55; }

/* Expertise */
.about-exp-card { display: flex; flex-direction: column; gap: 10px; }
.exp-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(160deg, #e0f2fe 0%, #c8e9fa 100%);
  color: #1976c0;
  display: grid; place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.about-exp-card h3 { font-size: 1rem; font-weight: 800; color: var(--text-strong); }
.about-exp-card p { font-size: 0.86rem; color: var(--text); line-height: 1.55; }

/* Stats band */
.about-stats-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px 14px;
  padding: 28px 24px;
  text-align: center;
}
.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}
.about-stat-item i {
  font-size: 1.6rem;
  color: var(--teal);
  margin-bottom: 4px;
}
.about-stat-item strong {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-strong);
  line-height: 1;
}
.about-stat-item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

/* Team */
.about-team-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}
.about-team-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  text-align: center;
  min-height: 280px;
}
.about-team-logo {
  width: 96px; height: 96px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.about-team-caption {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.about-team-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.about-team-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-strong);
}
.about-team-list li i { color: var(--teal); font-size: 0.85rem; }
.about-quote {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  background: rgba(26, 158, 143, 0.06);
  border-radius: 0 12px 12px 0;
}
.about-quote i { color: var(--teal); margin-bottom: 6px; display: block; }
.about-quote p { font-size: 0.92rem; font-weight: 700; color: var(--text-strong); font-style: italic; line-height: 1.6; }
.about-quote cite { font-size: 0.78rem; font-weight: 800; color: var(--teal); font-style: normal; margin-top: 6px; display: block; }

/* Responsive */
@media (max-width: 900px) {
  .about-story-grid, .about-team-grid { grid-template-columns: 1fr; }
  .about-team-panel { min-height: auto; padding: 28px 18px; }
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 16px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-weight: 800;
  color: #2e4f68;
  font-size: 0.86rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 12px 14px;
  font: 600 1rem/1.4 'Nunito Sans', sans-serif;
  color: #2e4f68;
  background: linear-gradient(160deg, #f7fbfd 0%, #eef4f7 100%);
  box-shadow: inset 4px 4px 10px rgba(183, 202, 214, 0.28), inset -4px -4px 10px rgba(255,255,255,0.8);
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(32, 178, 164, 0.55);
  box-shadow: 0 0 0 3px rgba(32, 178, 164, 0.15), inset 4px 4px 10px rgba(183, 202, 214, 0.28);
}
.subscribe-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.subscribe-status {
  min-height: 1.35em;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5f788d;
}
.subscribe-status:empty { visibility: hidden; }
.subscribe-status.is-success { color: #0d7a6e; }
.subscribe-status.is-error { color: #a54444; }
#contactForm[aria-busy="true"] .btn-primary { opacity: 0.7; cursor: wait; }

/* QR Generator tool */
.qr-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 16px;
  align-items: start;
}
.qr-preview-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.qr-preview-frame {
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(160deg, #f8fcff 0%, #eaf2f6 100%);
  box-shadow: inset 6px 6px 14px rgba(183, 202, 214, 0.24), inset -6px -6px 14px rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.72);
}
#qrPreview canvas,
#qrPreview img {
  width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}
.color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.color-field {
  display: grid;
  gap: 8px;
}
.color-field label {
  font-weight: 800;
  color: #2e4f68;
  font-size: 0.86rem;
}
.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(160deg, #f7fbfd 0%, #eef4f7 100%);
  box-shadow: inset 4px 4px 10px rgba(183, 202, 214, 0.28), inset -4px -4px 10px rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.7);
}
.color-input-wrap input[type="color"] {
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.color-input-wrap span {
  font: 700 0.92rem/1 'Nunito Sans', sans-serif;
  color: #2e4f68;
  letter-spacing: 0.02em;
}
.file-upload {
  display: grid;
  gap: 8px;
}
.file-upload input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(32, 178, 164, 0.35);
  border-radius: 14px;
  padding: 12px;
  font: 600 0.92rem/1.4 'Nunito Sans', sans-serif;
  color: #2e4f68;
  background: rgba(255,255,255,0.45);
}
.image-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.72);
}
.image-preview-wrap img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.image-preview-wrap span {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 700;
  color: #557085;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.72);
  background: linear-gradient(160deg, #f7fbfd 0%, #eef4f7 100%);
  color: #2e5877;
  font: 800 0.88rem/1 'Nunito', sans-serif;
  cursor: pointer;
  box-shadow: 6px 8px 14px rgba(112, 141, 156, 0.16), inset -2px -2px 6px rgba(255,255,255,0.85);
}
.btn-secondary:hover { color: #19998c; }
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.qr-status {
  min-height: 1.35em;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5f788d;
}
.qr-status.is-success { color: #0d7a6e; }
.qr-status.is-error { color: #a54444; }
.qr-status.is-info { color: #557085; }

.contact-info-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; gap: 12px; align-items: flex-start;
}
.contact-item-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #42cbc0 0%, #1d9f93 100%);
  box-shadow: 5px 7px 12px rgba(75, 173, 164, 0.28);
  font-size: 0.9rem;
}
.contact-item h3 {
  font: 800 0.95rem/1.2 'Nunito', sans-serif;
  color: #244860;
  margin-bottom: 2px;
}
.contact-item p, .contact-item a {
  color: #557085;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.contact-item a:hover { color: var(--teal); }

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sitemap-col h2 {
  font: 800 1.15rem/1.2 'Nunito', sans-serif;
  color: #244860;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(32, 178, 164, 0.35);
}
.sitemap-col ul { list-style: none; display: grid; gap: 7px; }
.sitemap-col a {
  text-decoration: none;
  color: #557085;
  font-weight: 600;
  font-size: 0.92rem;
}
.sitemap-col a:hover { color: var(--teal); }

.prose {
  max-width: 760px;
}
.prose h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #244860;
  margin: 22px 0 8px;
}
.prose h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #2e4f68;
  margin: 16px 0 6px;
}

/* Services overview — Mangalore detail section */
.services-overview {
  display: grid;
  gap: 16px;
}
.services-overview-intro {
  padding: 22px 24px;
}
.services-overview-intro .badge {
  margin-bottom: 10px;
}
.services-overview-intro h2 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: #244860;
  line-height: 1.2;
  margin-bottom: 10px;
}
.services-overview-lead {
  color: #557085;
  font-weight: 600;
  line-height: 1.65;
  max-width: 920px;
}
.service-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 16px;
}
.service-tag-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: inset 3px 3px 8px rgba(183, 202, 214, 0.18);
  color: #2e5877;
  font-size: 0.78rem;
  font-weight: 800;
}
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.service-detail-card {
  padding: 20px 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.service-detail-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: #244860;
  line-height: 1.3;
}
.service-detail-card p,
.service-detail-links {
  color: #557085;
  font-weight: 600;
  line-height: 1.6;
  font-size: 0.92rem;
}
.service-detail-links {
  margin-top: 2px;
}
.service-path-card {
  padding: 22px 24px;
}
.service-path-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.service-path-head h2 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #244860;
  margin-top: 8px;
}
.service-path-note {
  color: #557085;
  font-weight: 600;
  line-height: 1.55;
  font-size: 0.92rem;
}
.service-path-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
}
.service-path-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: inset 4px 4px 10px rgba(183, 202, 214, 0.14);
}
.service-path-steps .step-num {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  color: #19998c;
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.service-path-steps strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #2e4f68;
  margin-bottom: 4px;
}
.service-path-steps p {
  color: #557085;
  font-weight: 600;
  line-height: 1.5;
  font-size: 0.88rem;
}
.service-path-footer {
  color: #557085;
  font-weight: 600;
  line-height: 1.6;
  font-size: 0.92rem;
  padding-top: 4px;
  border-top: 1px solid rgba(126, 154, 170, 0.18);
}

/* ── FOOTER ── */
.site-footer {
  margin-top: 36px;
  padding: 28px 8px 10px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2.4fr;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-logo { display: flex; align-items: center; gap: 0; margin-bottom: 12px; }
.footer-logo-icon { width: 58px; height: 58px; display: grid; place-items: center; }
.footer-logo-icon img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.footer-logo-name { font: 800 1.6rem/0.9 'Nunito', sans-serif; color: #1f3f56; }
.footer-logo-name span { color: #1a9e8f; }
.footer-logo-tag { color: #698392; font-size: 0.88rem; font-weight: 600; margin-top: 2px; }
.footer-brand-copy {
  color: #4f697d; line-height: 1.55; font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; max-width: 340px;
}
.footer-contact-card {
  background: linear-gradient(160deg, #f8fcff 0%, #e8f1f4 100%);
  box-shadow: 10px 12px 20px rgba(121, 148, 162, 0.2), inset -8px -8px 14px rgba(255,255,255,0.68);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid; gap: 8px;
  max-width: 300px;
}
.footer-contact-item {
  display: flex; align-items: center; gap: 10px;
  color: #37546c; font-size: 0.9rem; font-weight: 700;
}
.footer-contact-item a { color: inherit; text-decoration: none; }
.footer-contact-item a:hover { color: #19988c; }
.footer-contact-item i {
  width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #42cbc0 0%, #1d9f93 100%);
  box-shadow: 5px 7px 12px rgba(75, 173, 164, 0.3); font-size: 0.78rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}
.footer-col { padding-left: 14px; border-left: 1px solid rgba(126, 154, 170, 0.14); }
.footer-col h2 {
  font: 800 1.15rem/1.1 'Nunito', sans-serif;
  color: #244860;
  margin-bottom: 8px;
}
.footer-col h2::after {
  content: ""; display: block; width: 26px; height: 2px; background: #26b4a7; border-radius: 2px; margin-top: 6px;
}
.footer-col ul { list-style: none; display: grid; gap: 7px; }
.footer-col a {
  text-decoration: none; color: #557085; font-size: 0.88rem; font-weight: 600;
}
.footer-col a:hover { color: #19988c; }

.footer-mid { padding: 14px 0; text-align: center; }
.footer-mid h2 {
  font: 800 1.1rem/1 'Nunito', sans-serif;
  color: #244860;
  margin-bottom: 8px;
}
.social-handle {
  display: block;
  color: #5f788d;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.social-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.social-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; text-decoration: none;
  box-shadow: 5px 7px 12px rgba(112, 141, 156, 0.22);
  transition: transform .2s ease;
}
.social-icon:hover { transform: translateY(-2px); color: #fff; }
.si-linkedin { background: linear-gradient(160deg, #5aa8e8, #2d7fc4); }
.si-twitter { background: linear-gradient(160deg, #4d4d4d, #111); }
.si-facebook { background: linear-gradient(160deg, #6a92d8, #3b66b0); }
.si-instagram { background: linear-gradient(160deg, #f0a070, #d45d8d); }
.si-youtube { background: linear-gradient(160deg, #f07878, #d04040); }

.footer-bottom {
  border-top: 1px solid rgba(126, 154, 170, 0.16);
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: #5d778d;
  font-size: 0.86rem;
  font-weight: 600;
}
.footer-legal { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.footer-legal a { text-decoration: none; color: #5d778d; }
.footer-legal a:hover { color: var(--teal); }
.back-top {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  text-decoration: none; color: #5d778d; font-weight: 700;
  background: rgba(255,255,255,0.45);
}
.back-top:hover { color: var(--teal); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #19988c; color: #fff; padding: 8px 12px; z-index: 200; border-radius: 8px;
}
.skip-link:focus { left: 24px; top: 12px; }

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .services-detail-grid, .service-path-head { grid-template-columns: 1fr; }
  .qr-tool-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .approach-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { padding: 10px; }
  .container { padding: 0 18px 20px; border-radius: 28px; }
  .site-header {
    width: min(100% - 20px, 1272px);
    top: 10px;
    padding: 10px 12px;
  }
  .logo-full { height: 44px; }
  .nav-toggle { display: grid; }
  .nav-links, .header-cta { display: none; }

  /* Expanded menu grows inside the header bar, matching the home page. */
  .site-header.menu-open { flex-wrap: wrap; }
  .site-header.menu-open .nav-links {
    display: grid;
    order: 3;
    width: 100%;
    justify-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 20px;
    max-height: calc(100dvh - 190px);
    overflow-y: auto;
    animation: menuFadeIn .26s ease both;
  }
  .site-header.menu-open .nav-links a {
    display: block;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    text-align: center;
  }
  .site-header.menu-open .nav-links a[aria-current="page"]::after { display: none; }
  .site-header.menu-open .nav-links .nav-dropdown-menu a,
  .site-header.menu-open .nav-links .nav-dropdown-menu a:hover,
  .site-header.menu-open .nav-links .nav-dropdown-menu a[aria-current="page"] {
    border-radius: 0;
  }
  .site-header.menu-open .header-cta {
    display: inline-flex;
    order: 4;
    width: 100%;
    justify-content: center;
    animation: menuFadeIn .3s ease both;
  }
  @keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .page-main { margin-top: 88px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .back-top { justify-self: center; }
  .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 640px) {
  .card-grid, .card-grid.two, .approach-steps, .sitemap-grid, .footer-links, .form-grid, .color-row {
    grid-template-columns: 1fr;
  }
  .footer-col { border-left: 0; padding-left: 0; }
  .page-lead { font-size: 0.95rem; }
  .hero-actions > a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
