/*
Theme Name: MG Infra Theme
Theme URI: https://mginfra.org
Author: Custom Theme
Author URI: https://mginfra.org
Description: Custom, responsive WordPress theme for MG Infra prefabricated structures and steel engineering.
Version: 1.0.0
Text Domain: mg-infra
*/

:root {
  --primary-blue: #0b1d3a;
  --accent-orange: #f26522;
  --text-dark: #333333;
  --bg-light: #f8f9fa;
  --border-color: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #ffffff;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-blue);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo span { 
  color: var(--accent-orange); 
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.main-nav a:hover {
  color: var(--accent-orange);
}
.btn-orange {
  background: var(--accent-orange);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s ease;
}
.btn-orange:hover {
  background: #d95316;
}
.btn-dark {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  display: inline-block;
  transition: background 0.2s ease;
}
.btn-dark:hover {
  background: #050d1a;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.9)), 
              url('https://images.unsplash.com/photo-1541888946425-d0fbb186a5b7?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: 100px 0;
}
.hero-content {
  max-width: 600px;
}
.hero-subtitle {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.hero-title {
  font-size: 46px;
  font-weight: 900;
  color: var(--accent-orange);
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-desc-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111111;
}
.hero-desc {
  font-size: 15px;
  margin-bottom: 30px;
  color: #4a5568;
}
.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Sections */
.section { padding: 70px 0; }
.bg-light { background-color: var(--bg-light); }
.section-title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 25px;
  color: var(--primary-blue);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-orange);
  margin-top: 8px;
}
.text-center { text-align: center; }
.text-center.section-title::after { margin: 8px auto 0; }

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-list {
  list-style: none;
  margin: 20px 0;
}
.about-list li {
  font-size: 14px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}
.about-list li::before {
  content: '>';
  color: var(--accent-orange);
  font-weight: bold;
  position: absolute;
  left: 0;
}
.img-responsive {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Prefab Cards */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 35px;
}
.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body {
  padding: 20px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card-text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Products Section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 35px;
}
.product-card {
  border: 1px solid var(--border-color);
  text-align: center;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.product-card h4 {
  font-size: 12px;
  padding: 12px 8px;
  background: #f1f5f9;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-blue);
}

/* Our Strength Section */
.bg-dark {
  background: var(--primary-blue);
  color: #ffffff;
}
.strength-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.strength-grid .section-title { color: #ffffff; }
.strength-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.strength-item {
  border: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}
.strength-item img {
  width: 100%;
  height: 85px;
  object-fit: cover;
}
.strength-item h5 {
  font-size: 11px;
  padding: 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Us Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 30px;
  margin-top: 20px;
}
.contact-info h4 {
  color: var(--accent-orange);
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.contact-info p {
  font-size: 13px;
  margin-bottom: 20px;
  color: #4a5568;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}
.contact-form textarea { 
  height: 100px; 
  resize: vertical;
}

/* Footer */
footer {
  background: #061124;
  color: #a0aec0;
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.container.header-container img {
    width: 150px;

}

.hero {
    position: relative;
    background: url("images/hero-bg.jpg") center/cover no-repeat;
    padding: 100px 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8); /* Change opacity here */
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}


section.elementor-section.elementor-top-section.elementor-element.elementor-element-52e5c073.elementor-section-boxed.elementor-section-height-default.elementor-section-height-default {
    display: none;
}

/* Using theme images folder */

/* Responsive Styles */
@media (max-width: 992px) {
  .about-grid, .strength-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .strength-items { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; } /* Standard fallback for simplified static preview */
}
@media (max-width: 576px) {
  .card-grid-4, .product-grid, .strength-items { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}