/* ============================================
   MAFH Enterprises - Modern Professional Styles
   ============================================ */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1e3a8a;
  --primary-green: #065f46;
  --secondary-blue: #3b82f6;
  --secondary-green: #10b981;
  --light-blue: #dbeafe;
  --light-green: #d1fae5;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --gray-light: #f9fafb;
  --gray-medium: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Navigation Menu
   ============================================ */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-nav.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.nav-logo a:hover {
  opacity: 0.8;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* Active state for current page */
.nav-link[href*="index.html"].active,
.nav-link[href*="about.html"].active,
.nav-link[href*="services.html"].active,
.nav-link[href*="other.html"].active,
.nav-link[href*="contact.html"].active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav-link[href*="index.html"].active::after,
.nav-link[href*="about.html"].active::after,
.nav-link[href*="services.html"].active::after,
.nav-link[href*="other.html"].active::after,
.nav-link[href*="contact.html"].active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 1.5rem;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
  }
}

/* ============================================
   Header
   ============================================ */

/* ============================================
   Page Banner
   ============================================ */

.page-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 120px 0 60px;
  margin-top: 70px;
  text-align: center;
}

.page-banner h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-banner p {
  font-size: 1.3rem;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .page-banner {
    padding: 100px 0 40px;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .page-banner p {
    font-size: 1.1rem;
  }
}

.main-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 100px 0 40px;
  margin-top: 70px;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  background-color: var(--white);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 8px;
}

.logo-text h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.logo-text p {
  font-size: 1rem;
  opacity: 0.9;
}

.contact-block {
  text-align: right;
}

.contact-block p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-block a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-block a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-block {
    text-align: center;
  }

  .logo-block {
    justify-content: center;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
  padding: 4rem 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-highlight {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-green);
}

.hero-highlight p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.feature-item strong {
  color: var(--primary-green);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}

.section-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.section h3 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.about-content {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.about-content:last-child {
  margin-bottom: 0;
}

.other-content {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.other-content:last-child {
  margin-bottom: 0;
}

.section p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.8;
}

.section-blue {
  background-color: var(--light-blue);
}

.section-green {
  background-color: var(--light-green);
}

.section-blue-soft {
  background-color: #f0f9ff;
}

.section-green-soft {
  background-color: #f0fdf4;
}

.signature {
  font-style: italic;
  text-align: right;
  margin-top: 2rem;
  color: var(--text-light);
}

/* ============================================
   Snapshot Grid
   ============================================ */

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.snapshot-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-green);
}

.snapshot-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.snapshot-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* ============================================
   Cards
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cards-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card h4 {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-dark);
  line-height: 1.7;
}

.card-blue {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
}

.card-blue h3,
.card-blue h4 {
  color: var(--white);
}

.card-green {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  color: var(--white);
}

.card-green h3,
.card-green h4 {
  color: var(--white);
}

.card-outline {
  border: 2px solid var(--gray-medium);
  background-color: var(--white);
}

.card-outline h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card-outline ul {
  list-style-position: inside;
  color: var(--text-dark);
}

.card-outline li {
  margin-bottom: 0.5rem;
}

/* ============================================
   Split Grid
   ============================================ */

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ============================================
   Pill List
   ============================================ */

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pill-list li {
  background-color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  box-shadow: var(--shadow);
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* ============================================
   Organizational Chart
   ============================================ */

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.org-level-multi {
  flex-wrap: wrap;
}

.org-node {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 250px;
  border-top: 4px solid var(--primary-blue);
}

.main-node {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  font-weight: bold;
  font-size: 1.1rem;
}

.org-title {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.org-node ul {
  list-style: none;
  margin-top: 0.75rem;
}

.org-node li {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
  .org-level {
    flex-direction: column;
    align-items: center;
  }

  .org-node {
    width: 100%;
    max-width: 300px;
  }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .section h3 {
    font-size: 1.75rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Process Grid (Services Page)
   ============================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.process-item h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.process-item p {
  color: var(--text-dark);
  line-height: 1.7;
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-blue);
}

.contact-card h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-card p {
  color: var(--text-dark);
  margin: 0;
}

.contact-card a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-card a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-form-section {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--gray-medium);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.map-placeholder {
  background-color: var(--gray-light);
  padding: 4rem 2rem;
  border-radius: 8px;
  text-align: center;
  color: var(--text-light);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth scroll offset for fixed nav */
section {
  scroll-margin-top: 80px;
}
