/* Glaze Rocks Pvt. Ltd. — Enterprise Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2C3E50;
  --secondary: #1A4B8C;
  --accent: #ff9800;
  --accent-dark: #e68900;
  --cta: #f0542c;
  --neutral: #34495E;
  --light: #F8F9FA;
  --dark: #1a1a1a;
  --text: #333333;
  --text-muted: #6c757d;
  --border: #e9ecef;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --nav-height: 90px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.7;
  color: var(--text);
  overflow-x: hidden;
  padding-top: var(--nav-height);
  background: #fff;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

a { color: var(--secondary); transition: color 0.25s ease; }
a:hover { color: var(--accent); }

/* Page Loader */
#page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid rgba(0,0,0,0.1);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar a { color: #fff; text-decoration: none; }
.top-bar a:hover { color: var(--accent); }

/* Navbar */
.navbar-main {
  background: #fff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  min-height: var(--nav-height);
  padding: 0.75rem 0;
}
.navbar-main .navbar-brand img { max-height: 52px; }
.navbar-main .nav-link {
  color: #111 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  position: relative;
}
.navbar-main .nav-link::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { transform: scaleX(1); }
.navbar-main .nav-link.active { font-weight: 600; }

/* Mega Menu */
.dropdown-mega .dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-width: 680px;
  margin-top: 0.5rem;
}
.dropdown-mega .mega-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.dropdown-mega .dropdown-item {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text);
}
.dropdown-mega .dropdown-item:hover {
  background: transparent;
  color: var(--secondary);
  padding-left: 4px;
}

.btn-nav-cta {
  background: var(--cta) !important;
  border-color: var(--cta) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.5rem 1.25rem !important;
}
.btn-nav-cta:hover {
  background: #d94828 !important;
  color: #fff !important;
}

/* Buttons */
.btn-primary-gr {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn-primary-gr:hover {
  background: #d94828;
  border-color: #d94828;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 84, 44, 0.35);
}
.btn-outline-gr {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
}
.btn-outline-gr:hover {
  background: #fff;
  color: var(--secondary);
}
.btn-secondary-gr {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  font-weight: 600;
}
.btn-secondary-gr:hover {
  background: #15396d;
  border-color: #15396d;
  color: #fff;
}

/* Hero */
.hero-home {
  min-height: calc(100vh - var(--nav-height));
  background: linear-gradient(135deg, rgba(26, 75, 140, 0.88) 0%, rgba(44, 62, 80, 0.85) 100%),
    url('../img/banner.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  margin-top: calc(-1 * var(--nav-height));
  padding-top: var(--nav-height);
}
.hero-home h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-home .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 152, 0, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-hero {
  background: linear-gradient(135deg, rgba(26, 75, 140, 0.9), rgba(44, 62, 80, 0.88)),
    var(--hero-bg, url('../img/mepbanner.png')) center/cover no-repeat;
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.page-hero p { opacity: 0.92; max-width: 720px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb-nav {
  background: var(--light);
  padding: 12px 0;
  font-size: 0.875rem;
}
.breadcrumb-nav .breadcrumb { margin: 0; }
.breadcrumb-nav a { color: var(--secondary); text-decoration: none; }

/* Sections */
section { padding: 80px 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* Stats */
.stat-box {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-box .counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-box p { margin: 0.5rem 0 0; color: var(--text-muted); font-weight: 500; }

/* Service Cards */
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card .card-body { padding: 1.5rem; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }

/* Process Steps */
.process-step {
  text-align: center;
  padding: 1.5rem;
}
.process-step .step-num {
  width: 56px;
  height: 56px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 280px;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(26, 75, 140, 0.92));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h5 { color: #fff; margin-bottom: 0.25rem; }

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.testimonial-card .stars { color: var(--accent); }
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-muted);
  margin: 1rem 0;
  border: none;
  padding: 0;
}

/* FAQ */
.accordion-button:not(.collapsed) {
  background: rgba(26, 75, 140, 0.08);
  color: var(--secondary);
  font-weight: 600;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 75, 140, 0.15);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { opacity: 0.9; max-width: 600px; margin: 0 auto 1.5rem; }

/* Content Pages */
.content-section h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.content-section h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.content-section p, .content-section li {
  text-align: justify;
  color: #555;
}
.content-section ul { padding-left: 1.25rem; }
.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(26, 75, 140, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Blog Cards */
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s ease;
}
.blog-card:hover { box-shadow: var(--shadow); }
.blog-card .blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.blog-card .blog-tag {
  background: rgba(255, 152, 0, 0.15);
  color: var(--accent-dark);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}

/* Case Study */
.case-study-card {
  border-left: 4px solid var(--accent);
  background: var(--light);
  padding: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}
.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.case-study-meta span i { color: var(--secondary); margin-right: 4px; }

/* Forms */
.form-control, .form-select {
  border-radius: 4px;
  padding: 12px 16px;
  border: 1px solid var(--border);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.2);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 60px 0 0;
}
.site-footer h5 {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.site-footer a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  text-align: center;
}

/* Floating Actions */
.float-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); color: #fff; }
.float-btn.whatsapp { background: #25D366; }
.float-btn.call { background: var(--secondary); }
.float-btn.enquiry { background: var(--accent); }

/* Sticky CTA Bar (mobile) */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  z-index: 9980;
  padding: 10px;
  gap: 8px;
}
.sticky-cta-bar a {
  flex: 1;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 4px;
}
.sticky-cta-bar a.primary { background: var(--cta); }
.sticky-cta-bar a.secondary { background: var(--secondary); }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.error-page h1 {
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
}

/* Industry Grid */
.industry-item {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  height: 100%;
}
.industry-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}
.industry-item i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* Certifications */
.cert-badge {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  height: 100%;
}
.cert-badge i { font-size: 2rem; color: var(--secondary); margin-bottom: 0.75rem; }

/* Filter buttons */
.filter-btn.active {
  background: var(--secondary) !important;
  color: #fff !important;
  border-color: var(--secondary) !important;
}

/* Overlay banners (home) */
.overlay-banner {
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
}
.overlay-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.overlay-banner .container { position: relative; z-index: 1; }
.overlay-banner h2, .overlay-banner h3 { color: #fff; }

#turnkey.overlay-banner { background-image: url('../img/turnkey.png'); }
#hvac-banner.overlay-banner { background-image: url('../img/hvac.png'); }
#factory.overlay-banner { background-image: url('../img/factory.png'); }
#glass-facade.overlay-banner { background-image: url('../img/Glass.png'); }

/* Feature Cards (Service Cards) */
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.feature-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.feature-card:hover img {
  transform: scale(1.05);
}
.feature-card .card-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  color: var(--primary);
}
.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  flex-grow: 1;
}
.card-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}
.card-list li:last-child {
  margin-bottom: 0;
}
.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cta);
  font-weight: bold;
}
.feature-card .btn-primary-gr {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* MEP Banner */
.mep-banner {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../img/hvac.png') center/cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 60px 20px;
}
.mep-banner .banner-content h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.mep-banner .banner-content p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto;
}

/* Fire Fighting Banner */
.fire-fighting-banner {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../img/fire.png') center/cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 60px 20px;
}
.fire-fighting-banner .banner-content h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.fire-fighting-banner .banner-content p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto;
}

/* Electrical Banner */
.electrical-banner {
  background: linear-gradient(135deg, rgba(0, 33, 71, 0.6), rgba(0, 51, 102, 0.6)),
    url('../img/electrical.png') center/cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 60px 20px;
}
.electrical-banner .banner-content h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.electrical-banner .banner-content p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto;
}

/* Factory Banner */
.factory-banner {
  background: linear-gradient(135deg, rgba(80, 50, 20, 0.5), rgba(100, 60, 20, 0.5)),
    url('../img/factory.png') center/cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 60px 20px;
}
.factory-banner .banner-content h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.factory-banner .banner-content p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto;
}

/* Glass Facade Banner */
.glass-facade-banner {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.4), rgba(20, 80, 140, 0.4)),
    url('../img/Glass.png') center/cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 60px 20px;
}
.glass-facade-banner .banner-content h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.glass-facade-banner .banner-content p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 991px) {
  .dropdown-mega .dropdown-menu {
    min-width: 100%;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0;
  }
  .sticky-cta-bar { display: flex; }
  .float-actions { bottom: 80px; }
  section { padding: 60px 0; }
}

@media (max-width: 767px) {
  body { padding-top: 72px; }
  .navbar-main { min-height: 72px; }
  .top-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-spinner { animation: none; }
  * { transition: none !important; }
}
