/* ======================================================
   SoftHome Engineering Private Limited — Stylesheet
   Theme: Navy Blue + Orange (matching logo)
   ====================================================== */

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

:root {
  --navy:         #1a2d4a;
  --navy-dark:    #0f1e33;
  --navy-mid:     #243c5e;
  --navy-light:   #3a5a82;
  --orange:       #e87722;
  --orange-dark:  #c45e0a;
  --orange-light: #f4a054;
  --cream:        #faf8f5;
  --sand:         #f0ece3;
  --sand-dark:    #ddd8cc;
  --warm-white:   #ffffff;
  --text-dark:    #0f1e33;
  --text-mid:     #2a4060;
  --text-light:   #5a7090;
  --border:       #d0d8e4;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--navy); line-height: 1.3; }
em { font-style: italic; color: var(--orange); }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-dark); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-secondary { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-secondary:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; background: var(--orange); color: #fff; }
.btn-sm:hover { background: var(--orange-dark); color: #fff; }
.btn-full { width: 100%; display: block; }


/* --- NAV BRAND --- */
.nav-brand {
  display: flex; flex-direction: row; align-items: center;
  gap: 10px; text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  height: 52px; width: auto; object-fit: contain; flex-shrink: 0;
}
.nav-brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
}
.brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.65rem; font-weight: 500;
  color: var(--text-light); letter-spacing: 0.06em;
  text-transform: uppercase;
}



/* --- NAVBAR --- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid var(--navy-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 1.5rem;
}


.nav-links { display: flex; list-style: none; gap: 2.5rem; margin-left: auto; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--navy);
  padding-bottom: 2px; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); border-bottom-color: var(--orange); }
.indiamart-link {
  display: flex; align-items: center; flex-shrink: 0;
  opacity: 1; transition: opacity 0.2s; margin-left: 0.5rem;
}
.indiamart-link:hover { opacity: 0.8; }
.indiamart-icon { height: 32px; width: auto; object-fit: contain; }
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }
.mobile-menu {
  display: none; list-style: none;
  background: #ffffff; border-top: 1px solid var(--border);
  padding: 1rem 1.5rem; flex-direction: column; gap: 0.75rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--navy); font-weight: 500; font-size: 1rem; }

/* --- HERO VIDEO CAROUSEL --- */
.hero-video {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden; background: #0a1420;
}
.video-layer {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s ease-in-out; z-index: 1;
}
.video-layer.active { opacity: 1; z-index: 2; }
.video-layer video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to bottom, rgba(10,20,32,0.2) 0%, rgba(10,20,32,0.08) 40%, rgba(10,20,32,0.72) 75%, rgba(10,20,32,0.94) 100%);
}
.hero-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 2.5rem 1.5rem;
}
.hero-bottom-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.hero-text-block { max-width: 640px; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 1rem;
}
.hero-title em { color: var(--orange-light); font-style: italic; }
.hero-desc {
  color: rgba(255,255,255,0.78); font-size: 1rem;
  line-height: 1.7; margin-bottom: 1.75rem; max-width: 520px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.video-dots { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; padding-bottom: 6px; }
.vdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.vdot.active { background: var(--orange); transform: scale(1.4); }

/* --- SECTION LABELS --- */
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy); margin-bottom: 2.5rem;
}

/* --- WHY US --- */
.section-why { padding: 6rem 0; background: var(--warm-white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.why-card {
  background: var(--cream); border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: 10px; padding: 2rem 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.why-card:hover { box-shadow: 0 8px 28px rgba(26,45,74,0.1); transform: translateY(-3px); }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
  flex-shrink: 0;
}
.why-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.6rem; }
.why-card p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; text-align: justify; }

/* --- CATEGORY CARDS --- */
.section-cats { padding: 6rem 0; background: var(--sand); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.cat-card {
  position: relative; border-radius: 12px; overflow: hidden;
  min-height: 210px; display: flex; align-items: flex-end;
  text-decoration: none; transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,0.2); }
.cat-bg {
  position: absolute; inset: 0; border-radius: 12px;
  transition: transform 0.4s;
}
.cat-card:hover .cat-bg { transform: scale(1.04); }
.cat-img-overlay {
  position: absolute; inset: 0; border-radius: 12px;
  background: rgba(10,15,25,0.55);
  transition: background 0.3s;
}
.cat-card:hover .cat-img-overlay { background: rgba(10,15,25,0.42); }
.cat-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(to top, rgba(10,20,32,0.88) 0%, rgba(10,20,32,0.3) 55%, transparent 100%);
}
.cat-content {
  position: relative; z-index: 2; padding: 1.25rem; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cat-content h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.35rem; font-family: 'Playfair Display', serif; }
.cat-content p { color: rgba(255,255,255,0.72); font-size: 0.82rem; line-height: 1.45; }
.cat-arrow { display: block; color: var(--orange-light); font-size: 1.1rem; margin-top: 0.5rem; transition: transform 0.2s; }
.cat-card:hover .cat-arrow { transform: translateX(5px); }

/* --- APPLICATIONS --- */
.section-apps { padding: 6rem 0; background: var(--warm-white); }
.app-row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.app-item {
  text-align: center; flex: 1; min-width: 150px; max-width: 210px;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.75rem 1rem; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.app-item:hover { box-shadow: 0 6px 20px rgba(26,45,74,0.1); transform: translateY(-2px); }
.app-icon { font-size: 2.4rem; margin-bottom: 0.75rem; }
.app-img-wrap { width: 100%; height: 140px; overflow: hidden; border-radius: 8px; margin-bottom: 0.75rem; background: #0f1e2e; display: flex; align-items: center; justify-content: center; }
.app-img { width: 100%; height: 100%; object-fit: contain; }
.app-item h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.3rem; }
.app-item p { font-size: 0.82rem; color: var(--text-light); }

/* --- PAGE HEADER (inner pages) --- */
.page-header { background: var(--navy-dark); padding: 4.5rem 1.5rem 3.5rem; text-align: center; }
.page-header .section-label { color: var(--orange-light); }
.page-title { font-size: clamp(2rem, 5vw, 3rem); color: #fff; margin-bottom: 1rem; }
.page-desc { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* --- FILTER BAR --- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2rem; }
.filter-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85); padding: 0.45rem 1.1rem; border-radius: 30px;
  font-size: 0.85rem; font-family: 'Source Sans 3', sans-serif; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* --- PRODUCTS GRID --- */
.section-products { padding: 4rem 0 6rem; background: var(--cream); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.product-card {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(26,45,74,0.12); transform: translateY(-2px); }
.product-img-wrap {
  position: relative; background: var(--sand);
  height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-img-placeholder { font-size: 3.5rem; opacity: 0.35; }
.badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-a { background: #d4edda; color: #1a5c2e; }
.badge-ref { background: #fff3cd; color: #7a5200; }

/* SLIDESHOW */
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(26,45,74,0.55); color: #fff; border: none;
  width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; padding: 0;
}
.slide-btn:hover { background: rgba(26,45,74,0.85); }
.slide-prev { left: 8px; }
.slide-next { right: 8px; }
.slide-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 5; }
.slide-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background 0.2s; }
.slide-dot.active { background: var(--orange); }

.product-body {
  padding: 1.1rem 1.25rem; flex: 1;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.product-sku { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.product-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--navy); line-height: 1.35; }
.product-brand { font-size: 0.82rem; color: var(--text-light); font-style: italic; }
.product-specs { font-size: 0.9rem; font-weight: 600; color: var(--orange); }
.product-cat-tag {
  display: inline-block; background: var(--sand);
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 0.75rem; color: var(--navy-mid); padding: 2px 8px; align-self: flex-start;
}
.product-app { font-size: 0.82rem; color: var(--text-mid); margin-top: auto; padding-top: 0.4rem; text-align: justify; }
.app-label { font-weight: 600; color: var(--text-dark); }
.product-footer { padding: 0.75rem 1.25rem 1.1rem; border-top: 1px solid var(--border); }
.no-results { text-align: center; color: var(--text-light); padding: 4rem 0; font-size: 1.1rem; grid-column: 1 / -1; }

/* --- CONTACT PAGE --- */
.section-contact { padding: 4rem 0 6rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card {
  background: var(--warm-white); border: 1px solid var(--border);
  border-left: 4px solid var(--orange); border-radius: 10px;
  padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
}
.contact-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.contact-card h3 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--navy); margin-bottom: 0.35rem; }
.contact-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }
.contact-card a { color: var(--orange); }
.contact-card a:hover { color: var(--orange-dark); }
.contact-form-wrap {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.25rem 2rem;
}
.form-title { font-size: 1.5rem; color: var(--navy); margin-bottom: 0.4rem; }
.form-sub { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.75rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--cream); font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem; color: var(--text-dark); transition: border-color 0.2s; outline: none; resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: -0.5rem; text-align: center; }
.form-success {
  background: #d4edda; color: #1a5c2e; border: 1px solid #b8ddc4;
  border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-weight: 500;
}

/* --- FOOTER --- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 4rem 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 0.75rem; flex-shrink: 0;
}
.footer-logo-circle img { width: 88%; height: 88%; object-fit: contain; }
.footer-company-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: #fff;
  margin-bottom: 0.5rem; line-height: 1.3;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.65; color: rgba(255,255,255,0.65); margin-bottom: 0.25rem; }
.footer-cin { font-size: 0.78rem !important; color: rgba(255,255,255,0.4) !important; }
.footer-links h4, .footer-contact h4 {
  font-family: 'Playfair Display', serif; font-size: 1rem; color: #fff; margin-bottom: 0.9rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: var(--orange-light); }
.footer-contact p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 0.4rem; }
.footer-bottom { padding: 1.25rem 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero-video { height: 85vh; }
  .hero-bottom-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .video-dots { flex-direction: row; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-video { height: 100svh; }
  .hero-title { font-size: 1.9rem; }
  .hero-bottom { padding: 1.75rem 1.25rem; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem 1.25rem; }
}
