/* PMC Africa Custom Styling - Modern Professional Theme */

:root {
  /* Professional Mining & Energy Color Palette */
  --primary-gold: #D4A574;
  --primary-blue: #1B4B66;
  --accent-orange: #E67E22;
  --dark-slate: #2C3E50;
  --deep-navy: #0A2F42;
  --bright-teal: #16A085;
  --warm-copper: #C77740;
  --light-gray: #F4F6F8;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
}

/* Wide Content Layout - Remove Excessive Constraints */
.mw7, .mw8, .mw9 {
  max-width: 1400px !important;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

/* Full-Width Hero with Better Text Layout */
.cover {
  background-size: cover;
  background-position: center;
  position: relative;
}

.cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 75, 102, 0.85) 0%, rgba(10, 47, 66, 0.75) 100%);
  z-index: 1;
}

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

/* Header Text - Wider and More Prominent */
.cover .cover-body {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 4rem 2rem !important;
}

.cover h1,
.cover .f2,
.cover .f3 {
  max-width: 100% !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3 !important;
}

/* Typography Improvements */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.f1, .f2, .f3, .f4, .f5, .f6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1, .f1 {
  font-size: 3.5rem !important;
  line-height: 1.2 !important;
}

h2, .f2 {
  font-size: 2.5rem !important;
  line-height: 1.3 !important;
  color: var(--primary-blue);
}

h3, .f3 {
  font-size: 1.875rem !important;
  line-height: 1.4 !important;
  color: var(--dark-slate);
}

/* Primary Color Updates */
.primary,
a.primary {
  color: var(--primary-blue) !important;
}

.bg-primary {
  background-color: var(--primary-blue) !important;
}

/* Accent Colors */
.accent-1 {
  color: var(--accent-orange) !important;
}

.bg-accent-1 {
  background-color: var(--accent-orange) !important;
}

/* Navigation Styling */
nav {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-blue) 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav a {
  color: #fff !important;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

nav a:hover {
  color: var(--primary-gold) !important;
  transform: translateY(-1px);
}

/* Site Title in Nav */
.site-title,
nav h1 a {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: -0.02em;
}

.site-title:hover {
  color: var(--primary-gold) !important;
}

/* Content Sections */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

article {
  max-width: 1200px !important;
  margin: 0 auto;
}

/* Cards and Boxes */
.pa3, .pa4 {
  padding: 2rem !important;
}

.ba {
  border: 1px solid #e0e6ed !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.ba:hover {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 4px 12px rgba(27, 75, 102, 0.15);
  transform: translateY(-2px);
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-orange);
}

/* Buttons and CTAs */
.btn,
.link,
.f5.link {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--warm-copper) 100%);
  color: #fff !important;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn:hover,
.link:hover,
.f5.link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.4);
  color: #fff !important;
}

/* Lists with Better Styling */
ul {
  list-style-type: none;
  padding-left: 0;
}

ul li::before {
  content: "▸";
  color: var(--accent-orange);
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  font-size: 1.2em;
}

/* Projects Grid */
.nested-list-reset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--dark-slate) 100%);
  color: #fff;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

footer a {
  color: var(--primary-gold);
}

footer a:hover {
  color: #fff;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  h1, .f1 {
    font-size: 2.5rem !important;
  }

  h2, .f2 {
    font-size: 2rem !important;
  }

  .cover .cover-body {
    padding: 2rem 1rem !important;
  }

  .main-content {
    padding: 2rem 1rem;
  }
}

/* Tags and Categories */
.tag {
  background: var(--light-gray);
  color: var(--primary-blue);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  margin: 0.25rem;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--primary-blue);
  color: #fff;
}

/* Enhanced Sections */
.bg-light-gray {
  background-color: var(--light-gray) !important;
}

/* Accent Borders */
.bl {
  border-left: 4px solid var(--accent-orange) !important;
  padding-left: 1.5rem !important;
}

/* Contact Info Styling */
.contact-info {
  background: linear-gradient(135deg, var(--light-gray) 0%, #fff 100%);
  border-left: 4px solid var(--primary-blue);
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
}

/* Project Cards */
.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--primary-gold);
  background: var(--light-gray);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-dark);
}

/* HR Dividers */
hr {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  margin: 3rem 0;
}

/* Improve Readability */
p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Section Headings with Accent */
.section-heading {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), var(--warm-copper));
  border-radius: 2px;
}

/* Services Grid */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.grid-services p {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--accent-orange);
  transition: all 0.3s ease;
}

.grid-services p:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-left-color: var(--primary-blue);
}

.grid-services strong {
  display: block;
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

/* Projects Highlight */
.projects-highlight {
  margin: 2rem 0;
}

.projects-highlight p {
  background: linear-gradient(135deg, #fff 0%, var(--light-gray) 100%);
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  border-left: 6px solid var(--primary-blue);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.projects-highlight p:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-left-color: var(--accent-orange);
}

.projects-highlight strong {
  font-size: 1.5rem;
  color: var(--primary-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.projects-highlight strong a {
  color: var(--primary-blue);
  text-decoration: none;
}

.projects-highlight strong a:hover {
  color: var(--accent-orange);
}

/* Why Choose Grid */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

.why-choose-grid h3 {
  color: var(--primary-blue) !important;
  font-size: 1.375rem !important;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.why-choose-grid h3::before {
  content: "✓";
  display: inline-block;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-orange), var(--warm-copper));
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  margin-right: 1rem;
  font-weight: bold;
  flex-shrink: 0;
}

.why-choose-grid p {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 1.0625rem;
}

/* Enhanced Content Containers */
.main-content.bg-light-gray {
  background: linear-gradient(135deg, var(--light-gray) 0%, #fff 50%, var(--light-gray) 100%);
}

/* Responsive Grid Adjustments */
@media screen and (max-width: 768px) {
  .grid-services,
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projects-highlight p {
    padding: 1.5rem;
  }

  .projects-highlight strong {
    font-size: 1.25rem;
  }
}
