/* ==========================================================
   Sumukha Automation — site styles
   ========================================================== */
:root {
  --sa-navy: #141413;
  --sa-navy-2: #30302e;
  --sa-blue: #5e5d59;
  --sa-accent: #d97757;
  --sa-accent-dark: #c6613f;
  --sa-ink: #141413;
  --sa-muted: #5e5d59;
  --sa-line: #e8e6dc;
  --sa-bg-soft: #f0eee6;
  --sa-white: #faf9f5;
  --sa-card: #fdfcf9;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 20, 19, .08);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--sa-ink);
  background: var(--sa-white);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--sa-navy); font-weight: 600; }
a { color: var(--sa-blue); text-decoration: none; }
a:hover { color: var(--sa-accent-dark); }
img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn-sa {
  background: var(--sa-accent); color: #fff; border: 0;
  font-weight: 600; padding: .7rem 1.5rem; border-radius: 6px;
  transition: background .2s, transform .2s;
}
.btn-sa:hover, .btn-sa:focus { background: var(--sa-accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-light-sa {
  border: 2px solid rgba(255,255,255,.8); color: #fff; font-weight: 600;
  padding: .6rem 1.4rem; border-radius: 6px;
}
.btn-outline-light-sa:hover { background: var(--sa-card); color: var(--sa-navy); }

/* ---------- Top bar ---------- */
.topbar { background: var(--sa-navy); color: rgba(255,255,255,.85); font-size: .875rem; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--sa-accent); }
.topbar .info { display: flex; gap: 1.5rem; align-items: center; padding: .5rem 0; }
.topbar .info span { display: inline-flex; align-items: center; gap: .4rem; }
.social { display: flex; gap: .5rem; }
.social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); transition: background .2s;
}
.social a:hover { background: var(--sa-accent); color: #fff; }

/* ---------- Navbar ---------- */
.sa-nav { background: var(--sa-card); padding: .6rem 0; transition: box-shadow .25s; z-index: 1030; }
.sa-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.sa-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; color: var(--sa-navy); line-height: 1.05; }
.sa-brand:hover { color: var(--sa-navy); }
.sa-brand .mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sa-navy-2), var(--sa-navy));
  color: var(--sa-accent); display: inline-flex; align-items: center; justify-content: center;
}
.sa-brand .name { font-size: 1.3rem; }
.sa-brand small { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sa-accent-dark); font-weight: 600; }
.sa-nav .nav-link {
  font-weight: 500; color: var(--sa-ink); padding: .5rem .9rem !important; position: relative;
}
.sa-nav .nav-link:hover, .sa-nav .nav-link.active { color: var(--sa-accent-dark); }
.sa-nav .dropdown-menu { border: 0; border-top: 3px solid var(--sa-accent); border-radius: 0 0 8px 8px; box-shadow: var(--shadow); padding: .5rem 0; }
.sa-nav .dropdown-item { padding: .5rem 1.25rem; font-size: .95rem; }
.sa-nav .dropdown-item:hover, .sa-nav .dropdown-item:focus { background: var(--sa-bg-soft); color: var(--sa-accent-dark); }
.sa-nav .nav-link, .sa-nav .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .sa-nav .nav-link { padding: .5rem .6rem !important; font-size: .95rem; }
  .sa-nav .nav-link.active::after { left: .6rem !important; right: .6rem !important; }
  .sa-nav .nav-item.ms-lg-3 { margin-left: .5rem !important; }
}
@media (min-width: 992px) {
  .sa-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .sa-nav .nav-link.active::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 2px; background: var(--sa-accent);
  }
}

/* ---------- Hero carousel ---------- */
.hero-carousel .carousel-item { height: 82vh; min-height: 460px; max-height: 760px; }
.hero-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .carousel-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,20,19,.92) 0%, rgba(20,20,19,.6) 55%, rgba(20,20,19,.25) 100%);
}
.hero-carousel .hero-caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-caption .eyebrow { color: var(--sa-accent); }
.hero-caption h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.15; margin-bottom: 1rem; }
.hero-caption p { color: rgba(255,255,255,.85); font-size: 1.125rem; max-width: 560px; margin-bottom: 2rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 30px; height: 4px; border-radius: 2px; }
.hero-carousel .carousel-indicators .active { background-color: var(--sa-accent); }
.carousel-item.active .hero-caption .anim { animation: fadeUp .9s ease both; }
.carousel-item.active .hero-caption .anim:nth-child(2) { animation-delay: .15s; }
.carousel-item.active .hero-caption .anim:nth-child(3) { animation-delay: .3s; }
.carousel-item.active .hero-caption .anim:nth-child(4) { animation-delay: .45s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.bg-soft { background: var(--sa-bg-soft); }
.bg-navy { background: var(--sa-navy); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sa-accent-dark); margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.section-title.center::after, .title-bar::after {
  content: ""; display: block; width: 60px; height: 3px; background: var(--sa-accent); margin: 1rem auto 0;
}
.section-lead { color: var(--sa-muted); font-size: 1.05rem; }

/* ---------- Welcome ---------- */
.welcome-img { position: relative; padding: 0 0 30px 30px; }
.welcome-img::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%;
  border: 4px solid var(--sa-accent); border-radius: var(--radius); z-index: 0;
}
.welcome-img img { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.exp-badge {
  position: absolute; z-index: 2; right: -10px; top: 30px; background: var(--sa-accent); color: #fff;
  padding: 1rem 1.25rem; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow);
}
.exp-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.exp-badge span { font-size: .8rem; }
@media (max-width: 575px) { .exp-badge { right: 8px; } }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem 1rem; }
.check-list li { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; }
.check-list svg { color: var(--sa-accent); flex-shrink: 0; margin-top: 3px; }

/* ---------- Category cards (home) ---------- */
.cat-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; height: 380px; box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem; background: linear-gradient(0deg, rgba(20,20,19,.95) 0%, rgba(20,20,19,.2) 60%, transparent 100%); color: #fff;
}
.cat-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: .4rem; }
.cat-card p { color: rgba(255,255,255,.85); margin-bottom: .75rem; }
.cat-card .go { color: var(--sa-accent); font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.cat-card:hover .go svg { transform: translateX(5px); }
.cat-card .go svg { transition: transform .25s; }

/* ---------- Mission / Vision / Values ---------- */
.mvv-card {
  background: var(--sa-card); border-radius: var(--radius); padding: 2.25rem 2rem; height: 100%;
  box-shadow: var(--shadow); border-bottom: 4px solid transparent; transition: transform .3s, border-color .3s;
}
.mvv-card:hover { transform: translateY(-8px); border-color: var(--sa-accent); }
.icon-box {
  width: 64px; height: 64px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(217,119,87,.12); color: var(--sa-accent-dark); margin-bottom: 1.25rem; transition: background .3s, color .3s;
}
.mvv-card:hover .icon-box, .feature-card:hover .icon-box { background: var(--sa-accent); color: #fff; }
.mvv-card h3 { font-size: 1.35rem; }
.mvv-card p { color: var(--sa-muted); margin: 0; }

/* ---------- Stats strip ---------- */
.stats { background: linear-gradient(120deg, var(--sa-navy), var(--sa-navy-2)); color: #fff; padding: 60px 0; }
.stat .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #fff; line-height: 1; }
.stat .num span { color: var(--sa-accent); }
.stat .label { color: rgba(255,255,255,.8); margin-top: .4rem; }

/* ---------- Clients ---------- */
.client-tile {
  background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: var(--radius);
  height: 100px; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem; text-align: center; font-family: var(--font-head); font-weight: 600; color: #87867f;
  filter: grayscale(1); transition: all .3s;
}
.client-tile svg { flex-shrink: 0; }
.client-tile:hover { filter: none; color: var(--sa-navy); border-color: var(--sa-accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.client-tile:hover svg { color: var(--sa-accent); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sa-accent); color: #fff; padding: 50px 0; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: .3rem 0 0; color: rgba(255,255,255,.9); }
.cta-band .btn { background: var(--sa-navy); color: #fff; font-weight: 600; padding: .75rem 1.6rem; }
.cta-band .btn:hover { background: var(--sa-card); color: var(--sa-navy); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; padding: 110px 0 90px; color: #fff; text-align: center;
  background: var(--sa-navy) center/cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(20,20,19,.8); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.page-banner .breadcrumb { justify-content: center; margin: 0; }
.page-banner .breadcrumb a { color: var(--sa-accent); }
.page-banner .breadcrumb-item.active, .page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.8); }

/* ---------- Feature cards (about) ---------- */
.feature-card { background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: var(--radius); padding: 2rem; height: 100%; transition: box-shadow .3s, transform .3s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--sa-muted); margin: 0; }
.facility-list { list-style: none; padding: 0; }
.facility-list li { padding: .85rem 0; border-bottom: 1px dashed var(--sa-line); display: flex; gap: .75rem; }
.facility-list li strong { color: var(--sa-navy); min-width: 150px; }

/* ---------- Products ---------- */
.product-card { background: var(--sa-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; scroll-margin-top: 110px; transition: transform .3s; }
.product-card:hover { transform: translateY(-6px); }
.product-card .media { height: 210px; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--sa-navy), var(--sa-navy-2)); color: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .media img { transform: scale(1.07); }
.product-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-card h3 { font-size: 1.2rem; }
.product-card p { color: var(--sa-muted); }
.product-card ul { padding-left: 1.1rem; color: var(--sa-muted); font-size: .95rem; margin-bottom: 1rem; }
.product-card .btn { margin-top: auto; align-self: flex-start; }
.product-card:target { outline: 3px solid var(--sa-accent); outline-offset: 4px; }

/* ---------- Gallery ---------- */
.filter-btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btns button { border: 1px solid var(--sa-line); background: var(--sa-card); color: var(--sa-ink); padding: .5rem 1.2rem; border-radius: 30px; font-weight: 500; transition: all .2s; }
.filter-btns button.active, .filter-btns button:hover { background: var(--sa-accent); border-color: var(--sa-accent); color: #fff; }
.gallery-item { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--sa-navy); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item .cap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(20,20,19,.75); color: #fff; opacity: 0; transition: opacity .3s; font-weight: 600; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; }
.gallery-col.hide { display: none; }
#lightbox .modal-content { background: transparent; border: 0; }
#lightbox img { border-radius: var(--radius); max-height: 80vh; width: 100%; object-fit: contain; }
#lightbox .lb-caption { color: #fff; text-align: center; margin-top: .75rem; }


/* ---------- Contact ---------- */
.contact-card { background: var(--sa-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.5rem; text-align: center; height: 100%; }
.contact-card .icon-box { margin-left: auto; margin-right: auto; }
.contact-card h3 { font-size: 1.15rem; }
.contact-card p { color: var(--sa-muted); margin: 0; word-break: break-word; }
.form-panel { background: var(--sa-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.25rem; }
.form-control, .form-select { padding: .7rem .9rem; border-color: var(--sa-line); }
.form-control:focus, .form-select:focus { border-color: var(--sa-accent); box-shadow: 0 0 0 .2rem rgba(217,119,87,.2); }
.map-wrap { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 360px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #141413; color: rgba(255,255,255,.7); padding-top: 70px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.25rem; position: relative; padding-bottom: .6rem; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--sa-accent); }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--sa-accent); }
.site-footer .sa-brand, .site-footer .sa-brand:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a::before { content: "›"; margin-right: .45rem; color: var(--sa-accent); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .9rem; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-contact svg { color: var(--sa-accent); flex-shrink: 0; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 1.25rem 0; font-size: .875rem; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sa-accent); color: #fff; border: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(15px);
  transition: all .3s; z-index: 1040;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--sa-navy); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .carousel-item.active .hero-caption .anim { animation: none; }
}

@media (max-width: 991px) {
  .section { padding: 64px 0; }
  .sa-nav .navbar-collapse { padding: 1rem 0; border-top: 1px solid var(--sa-line); margin-top: .6rem; }
  .sa-nav .dropdown-menu { box-shadow: none; border-top: 0; padding-left: 1rem; }
}

/* ---------- Warm palette overrides for Bootstrap defaults ---------- */
.text-secondary { color: var(--sa-muted) !important; }
.form-control, .form-select { background-color: var(--sa-card); }
