/* =========================================================
   Shenoy Services – Main Stylesheet
   Brand: Navy / Blue / Saffron / Green
   ========================================================= */

:root {
  --primary: #203F5D;
  --primary-dark: #163047;
  --secondary: #1769AA;
  --saffron: #F5A623;
  --green: #238B45;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --text: #263238;
  --text-muted: #546E7A;
  --border: #E3E8EF;
  --shadow: 0 8px 24px rgba(32, 63, 93, 0.08);
  --shadow-hover: 0 12px 32px rgba(32, 63, 93, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --transition: 0.25s ease;
  --font-en: "Poppins", sans-serif;
  --font-mr: "Noto Sans Devanagari", "Poppins", sans-serif;
  --header-offset: 120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

.mr,
[lang="mr"] {
  font-family: var(--font-mr);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.92);
}

.top-bar a:hover {
  color: var(--saffron);
}

.top-bar .top-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar .bi {
  color: var(--saffron);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(32, 63, 93, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.navbar {
  padding: 0.65rem 0;
}

.navbar .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem !important;
  border-radius: 8px;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
  background: rgba(23, 105, 170, 0.08);
}

.navbar .nav-link.active {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-brand {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-brand:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-saffron {
  background: var(--saffron);
  color: var(--primary-dark);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
}

.btn-saffron:hover {
  background: #e09515;
  color: var(--primary-dark);
}

.btn-outline-brand {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
}

.btn-outline-brand:hover {
  background: var(--primary);
  color: var(--white);
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.4rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(245, 166, 35, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(32, 63, 93, 0.96) 0%, rgba(23, 105, 170, 0.92) 55%, rgba(35, 139, 69, 0.85) 100%),
    radial-gradient(circle at top right, rgba(245, 166, 35, 0.25), transparent 45%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero .hero-mr {
  font-family: var(--font-mr);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  opacity: 0.95;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-lead {
  font-size: 1.02rem;
  opacity: 0.92;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-image-wrap {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem;
  backdrop-filter: blur(4px);
}

.hero-image-wrap img {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  object-fit: contain;
  background: var(--white);
  aspect-ratio: 1;
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--white);
}

.section-navy {
  background: var(--primary);
  color: var(--white);
}

.section-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.section-navy .section-title {
  color: var(--white);
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.section-navy .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.accent-bar {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  border-radius: 4px;
  margin: 0.75rem auto 0;
}

/* ---------- Cards ---------- */
.feature-card,
.service-card,
.info-card,
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover,
.service-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: rgba(23, 105, 170, 0.1);
  color: var(--secondary);
}

.icon-badge.saffron {
  background: rgba(245, 166, 35, 0.15);
  color: #c77f0a;
}

.icon-badge.green {
  background: rgba(35, 139, 69, 0.12);
  color: var(--green);
}

.service-card h3,
.feature-card h3,
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card p,
.feature-card p,
.why-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 1rem;
}

.service-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.85rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.category-block {
  margin-bottom: 2.75rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-title .bi {
  color: var(--saffron);
}

/* ---------- Page banner ---------- */
.page-banner {
  background:
    linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 2.75rem 0 2.25rem;
}

.page-banner h1 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.35rem;
}

.breadcrumb {
  margin-bottom: 0;
  background: transparent;
  padding: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.breadcrumb-item.active {
  color: var(--saffron);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--primary);
  color: var(--white);
}

.lang-panel[hidden] {
  display: none !important;
}

.about-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-content p {
  margin-bottom: 1rem;
}

/* ---------- Gallery / Certificates ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef2f7;
  border: none;
  padding: 0;
  cursor: zoom-in;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.contain img,
.cert-thumb img {
  object-fit: contain;
  padding: 0.75rem;
  background: #f4f6f9;
}

.gallery-caption {
  padding: 1rem 1.1rem 1.15rem;
}

.gallery-caption h3 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.gallery-caption p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 550;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.gallery-item[hidden] {
  display: none !important;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 42, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: min(960px, 100%);
  max-height: 90vh;
  position: relative;
}

.lightbox-inner img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
}

body.lightbox-open {
  overflow: hidden;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  height: 100%;
  box-shadow: var(--shadow);
}

.contact-card .bi {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 0.65rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-card a:hover {
  color: var(--secondary);
}

.map-embed {
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  min-height: 340px;
  box-shadow: var(--shadow);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-label {
  font-weight: 550;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  padding: 0.65rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem rgba(23, 105, 170, 0.15);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.alert-form {
  display: none;
}

.alert-form.show {
  display: block;
}

/* ---------- CTA ---------- */
.cta-band {
  background:
    linear-gradient(115deg, var(--primary) 0%, #1a5f8f 50%, var(--green) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 3.5rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: var(--saffron);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-meta {
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.footer-meta .bi {
  color: var(--saffron);
  margin-right: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding: 1.1rem 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Floating buttons ---------- */
.float-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.float-btn.call {
  background: var(--secondary);
}

.float-btn.wa {
  background: #25D366;
}

/* ---------- Misc ---------- */
.disclaimer {
  background: rgba(245, 166, 35, 0.1);
  border-left: 4px solid var(--saffron);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.list-check li::before {
  content: "\f26b";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--green);
  font-weight: 700;
}

.preview-img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #eef2f7;
}

.preview-img.contain {
  object-fit: contain;
  background: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .header-actions {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .navbar-collapse {
    padding-top: 0.5rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-image-wrap {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .top-bar .top-item-hide-sm {
    display: none;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 0;
  }

  .float-actions {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .lightbox-close {
    top: -0.75rem;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
