/* ===== MSM Solutions - Static Website Styles ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #002155;
  --navy-dark: #001a44;
  --gold: #FF631B;
  --gold-light: #ff7a3d;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-400: #999999;
  --gray-600: #565969;
  --gray-800: #333333;
  --text: #333333;
  --text-light: #565969;
  --font-display: 'Yantramanav', 'Roboto', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-family: var(--font-body); font-weight: 600; }

p { margin-bottom: 1rem; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  height: var(--header-height);
  display: flex; align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 50px; width: auto; }
.logo-text { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); font-weight: 700; letter-spacing: 0.02em; }
.logo-text span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  color: rgba(255,255,255,0.85); padding: 8px 16px; font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.02em; position: relative; transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--gold); transform: scaleX(0); transition: transform var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::before { content: ''; display: inline; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--navy-dark); border-top: 2px solid var(--gold);
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all var(--transition);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 8px 20px; font-size: 0.85rem; white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(200, 145, 46, 0.1); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); }

/* --- Hero / Page Banner --- */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  background: var(--navy); overflow: hidden; margin-top: var(--header-height);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12, 30, 60, 0.92), rgba(12, 30, 60, 0.7));
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('wp-content/uploads/2020/10/5.jpg');
  background-size: cover; background-position: center;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 80px 0; }
.hero h5 { color: var(--gold); margin-bottom: 16px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 32px; }

.page-banner {
  position: relative; padding: 100px 0 60px;
  background: var(--navy); margin-top: var(--header-height);
  overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 60%, rgba(200,145,46,0.15));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); margin-bottom: 8px; }
.page-banner p { color: rgba(255,255,255,0.7); }
.breadcrumb { display: flex; gap: 8px; font-size: 0.9rem; color: var(--gray-400); margin-top: 12px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--gray-400); }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 14px 36px; font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; border: none; cursor: pointer;
  transition: all var(--transition); font-family: var(--font-body);
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200,145,46,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-dark); color: var(--white); }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.8); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-header h5 { margin-bottom: 8px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-light); }

/* Gold accent line */
.accent-line { width: 60px; height: 3px; background: var(--gold); margin-bottom: 20px; }
.accent-line-center { margin-left: auto; margin-right: auto; }

/* --- About / Content Blocks --- */
.content-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-text h5 { margin-bottom: 8px; }
.content-text h2 { margin-bottom: 20px; }
.content-text p { color: var(--text-light); }
.content-text strong { color: var(--text); }

.content-image { position: relative; }
.content-image img { border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.content-image::before {
  content: ''; position: absolute; top: -16px; left: -16px;
  width: 100px; height: 100px; border-top: 3px solid var(--gold); border-left: 3px solid var(--gold);
}

/* --- Info Cards (Customers, Credentials, History on home) --- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.info-card {
  padding: 40px 32px; background: var(--white); border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold);
}
.info-card .card-number { font-family: var(--font-display); font-size: 3rem; color: var(--gray-200); font-weight: 700; margin-bottom: 16px; }
.info-card h3 { margin-bottom: 12px; }
.info-card p { color: var(--text-light); font-size: 0.95rem; }
.info-card .btn { margin-top: 16px; padding: 10px 24px; font-size: 0.8rem; }

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.service-card {
  padding: 40px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 4px; transition: all var(--transition); position: relative;
}
.service-card:hover { border-color: var(--gold); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.service-card h3 { margin-bottom: 16px; font-size: 1.3rem; }
.service-card ul { list-style: none; padding: 0; }
.service-card ul li {
  padding: 8px 0 8px 24px; position: relative; color: var(--text-light);
  border-bottom: 1px solid var(--gray-100); font-size: 0.95rem;
}
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
.service-icon {
  width: 56px; height: 56px; background: rgba(200,145,46,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  font-size: 1.5rem;
}

/* --- Portfolio --- */
.portfolio-filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px;
}
.portfolio-filters button {
  padding: 8px 20px; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--gray-200);
  background: var(--white); cursor: pointer; transition: all var(--transition);
  font-family: var(--font-body); color: var(--text-light);
}
.portfolio-filters button:hover, .portfolio-filters button.active {
  background: var(--gold); color: var(--white); border-color: var(--gold);
}

.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.portfolio-item {
  position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/3;
  cursor: pointer; group: true;
}
.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(to top, rgba(12,30,60,0.9) 0%, rgba(12,30,60,0.2) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  opacity: 0; transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { color: var(--white); margin-bottom: 4px; font-size: 1.1rem; }
.portfolio-overlay .tags { font-size: 0.8rem; color: var(--gold-light); }

/* --- Credentials / Certifications --- */
.certs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; padding: 40px 0; }
.cert-badge {
  text-align: center; padding: 24px;
}
.cert-badge .cert-icon {
  width: 80px; height: 80px; margin: 0 auto 12px; background: rgba(200,145,46,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--gold);
}
.cert-badge p { font-weight: 600; font-size: 0.9rem; color: var(--navy); }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info-block { margin-bottom: 32px; }
.contact-info-block h3 { font-size: 1.2rem; margin-bottom: 8px; }
.contact-info-block p { color: var(--text-light); }

.contact-form label {
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px;
  color: var(--navy);
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200);
  font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 20px;
  transition: border-color var(--transition); background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--gray-200); padding: 20px 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--navy); padding-right: 20px;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--gold); transition: transform var(--transition); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 16px 0; color: var(--text-light); }

/* --- Safety Stats --- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; padding: 40px 0; }
.stat-item h3 { font-size: 2.5rem; color: var(--gold); margin-bottom: 4px; }
.stat-item p { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; font-weight: 600; }

/* --- Employment --- */
.employment-downloads { display: flex; gap: 20px; margin-top: 24px; flex-wrap: wrap; }

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; display: block; padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }

.footer-brand .logo-text { font-size: 1.3rem; margin-bottom: 12px; display: inline-block; }
.footer-brand p { max-width: 320px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }
.highlight-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  padding: 40px; border-radius: 4px; color: var(--white); position: relative;
  border-left: 4px solid var(--gold);
}
.highlight-box p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .content-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
    background: var(--navy-dark); flex-direction: column; padding: 24px;
    transform: translateX(100%); transition: transform var(--transition);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 12px 0; font-size: 1.1rem; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: none; padding-left: 16px; display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }

  .hero { min-height: 70vh; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.reverse { direction: ltr; }
  .content-image::before { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .employment-downloads { flex-direction: column; }
}
