/*
 * Custom styles for Mawi Construction Limited website
 * Enhanced for a premium, modern aesthetic.
 */

/* Design System & Tokens */
:root {
  --primary-color: #0c2d48;
  /* Deep Navy */
  --accent-color: #d4af37;
  /* Metallic Gold */
  --accent-hover: #b8860b;
  /* Darker Gold */
  --bg-light: #ffffff;
  --bg-alt: #f1f4f8;
  /* Soft cool grey */
  --text-main: #2c3e50;
  --text-muted: #5d6d7e;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navigation - Glassmorphism */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.navbar .nav-link {
  color: var(--text-main) !important;
  font-weight: 600;
  margin: 0 10px;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.navbar .nav-link:hover {
  color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  background-image: url('../images/hero_new.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(12, 45, 72, 0.8) 0%, rgba(12, 45, 72, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--accent-color);
  border: none;
  color: var(--primary-color);
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary-custom {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 4px;
}

.btn-secondary-custom:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Section Styling */
section {
  padding: 100px 0;
}

.section-light {
  background-color: var(--bg-alt);
}

/* Service Cards */
.service-card {
  border: none;
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 24px;
}

.service-card .card-title {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent-color);
}

.testimonial-rating {
  color: var(--accent-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 40px;
}

footer h5 {
  color: var(--white);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 8px;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

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

footer .social-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 12px;
  font-size: 1.2rem;
}

footer .social-icons a:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: rotate(360deg);
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Fix heading contrast in dark sections */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
  color: var(--white) !important;
}