/****** Redesign Styles for Makgane Attorneys ******/

/* === Variables === */
:root {
  --primary-blue: #003366; /* Deep blue */
  --secondary-gold: #D4AF37; /* Gold accent */
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --white: #ffffff;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Raleway', sans-serif;
}

/* === Base & Typography === */
body {
  font-family: var(--body-font);
  color: var(--dark-gray);
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-blue);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px; /* Increased max-width */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

/* Basic column setup (adjust as needed per section) */
.col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-12 {
  position: relative;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px; /* Add default bottom margin */
}

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

section {
  padding: 80px 0;
  overflow: hidden; /* Prevent horizontal scroll issues */
}

section:nth-child(even) {
  background-color: var(--light-gray);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--body-font);
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--secondary-gold);
  border-color: var(--secondary-gold);
  color: var(--primary-blue);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* === Header === */
header {
  padding: 20px 0;
  background-color: var(--white);
  border-bottom: 1px solid #eee;
}

header .logo {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

header .contact-info {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

header .contact-info a {
  color: var(--dark-gray);
  margin-left: 25px;
  font-size: 0.9rem;
}

header .contact-info a i {
  color: var(--secondary-gold);
  margin-right: 8px;
}

header .contact-info a:hover {
  color: var(--primary-blue);
}

/* === Navigation === */
nav {
  background-color: var(--primary-blue);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: center; /* Center nav items */
}

nav a {
  color: var(--white);
  padding: 15px 20px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

nav a:hover, nav a.active {
  background-color: var(--secondary-gold);
  color: var(--primary-blue);
}

/* === Helper Classes === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Responsive Adjustments for Header/Nav */
@media (max-width: 991px) {
  header .row {
    flex-direction: column;
    align-items: center;
  }
  header .logo {
    margin-bottom: 15px;
    text-align: center;
  }
  header .contact-info {
    justify-content: center;
    flex-wrap: wrap;
  }
  header .contact-info a {
    margin: 5px 10px;
  }
  nav .container {
      justify-content: space-around; /* Better spacing on smaller screens */
      overflow-x: auto; /* Allow horizontal scroll if needed */
      white-space: nowrap;
  }
  nav a {
      padding: 15px 10px; /* Reduce padding */
  }
}

@media (max-width: 767px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }
  section { padding: 60px 0; }
  .btn {
      padding: 10px 20px;
      font-size: 0.9rem;
  }
}




/* === Hero Section === */
.hero {
  background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('../images/gaborone_skyline_hero_alt.jpeg') no-repeat center center;
  background-size: cover;
  color: var(--white);
  padding: 120px 0;
  text-align: left;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 90%;
}

.hero .hero-buttons .btn {
  margin-right: 15px;
  margin-bottom: 10px; /* For stacking on mobile */
}

.hero .hero-buttons .btn-primary {
    background-color: var(--secondary-gold);
    border-color: var(--secondary-gold);
    color: var(--primary-blue);
}

.hero .hero-buttons .btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-blue);
}

.hero .hero-buttons .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.hero .hero-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.hero .hero-image {
    display: none; /* Removing the old image, using background */
}

@media (max-width: 767px) {
  .hero {
    padding: 80px 0;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero .hero-buttons .btn {
    margin-right: 5px;
    margin-left: 5px;
  }
}

/* === Features Section (Trust Signals) === */
.features {
  background-color: var(--light-gray);
}

.feature-box {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure boxes have same height */
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary-gold);
  margin-bottom: 20px;
}

.feature-box h3 {
  margin-bottom: 15px;
}

/* === About Section === */
.about .about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about .about-content {
  padding-left: 30px; /* Add space between image and text on larger screens */
}

@media (max-width: 767px) {
  .about .about-content {
    padding-left: 15px; /* Reset padding for mobile */
    margin-top: 30px;
  }
}

/* === Practice Areas Section === */
.practice-areas h2 {
  margin-bottom: 50px;
}

.practice-box {
  background-color: var(--white);
  padding: 35px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border-top: 4px solid var(--secondary-gold);
}

.practice-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.practice-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.practice-box h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* === Team Section === */
.team h2 {
  margin-bottom: 50px;
}

.team-member {
  text-align: center;
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: 100%;
}

.team-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 4px solid var(--secondary-gold);
}

.team-member h3 {
  margin-bottom: 5px;
}

.team-member .position {
  display: block;
  color: var(--medium-gray);
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.team-member .education {
    display: block;
    color: var(--medium-gray);
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

/* === Expertise Section === */
.expertise h2 {
  margin-bottom: 50px;
}

.expertise-box {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: 100%;
}

.expertise-box h3 {
  border-bottom: 2px solid var(--secondary-gold);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.expertise-box ul {
  list-style: none;
  padding-left: 0;
}

.expertise-box ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}

.expertise-box ul li::before {
  content: '\f00c'; /* FontAwesome check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--secondary-gold);
  position: absolute;
  left: 0;
  top: 3px;
}

/* === Coverage Section === */
.coverage h2 {
  margin-bottom: 30px;
}

.coverage-list {
  margin-top: 20px;
}

.coverage-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.coverage-icon {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-right: 20px;
  width: 40px; /* Fixed width for alignment */
  text-align: center;
}

.coverage-item h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.map-container {
  width: 100%;
  height: 450px; /* Slightly taller map */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.map-container iframe {
    border: 0;
}

@media (max-width: 767px) {
  .coverage .coverage-content {
    margin-bottom: 40px;
  }
}

/* === Quality Section === */
.quality h2 {
  margin-bottom: 50px;
}

.quality-box {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: 100%;
}

.quality-box h3 {
  border-bottom: 2px solid var(--secondary-gold);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.quality-box ul {
  list-style: none;
  padding-left: 0;
}

.quality-box ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}

.quality-box ul li::before {
  content: '\f00c'; /* FontAwesome check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--secondary-gold);
  position: absolute;
  left: 0;
  top: 3px;
}

/* === Contact Section === */
.contact h2 {
  margin-bottom: 50px;
}

.contact-info-box {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
  height: 100%;
}

.contact-info-box h3 {
  color: var(--white);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--secondary-gold);
  margin-right: 20px;
  width: 30px;
  text-align: center;
}

.contact-item h4 {
  color: var(--white);
  margin-bottom: 3px;
  font-size: 1.1rem;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: 100%;
}

.contact-form h3 {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-family: var(--body-font);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-gold);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

/* === Footer === */
footer {
  background-color: var(--dark-gray);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0 0;
}

footer .footer-logo {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--secondary-gold);
}

.footer-links h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--secondary-gold);
  padding-left: 5px;
}

.footer-bottom {
  background-color: #212529;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 0;
}


