/* Visual Improvements for Makgane Attorneys Website */

/* Enhanced Typography */
body {
  font-family: 'Raleway', sans-serif;
  line-height: 1.8;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #003366;
  margin-bottom: 1.2rem;
}

h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #003366, #c8a45d);
}

section {
  padding: 80px 0;
}

/* Enhanced Color Scheme */
:root {
  --primary: #003366;
  --primary-dark: #002244;
  --primary-light: #004488;
  --secondary: #c8a45d;
  --secondary-dark: #b08d40;
  --secondary-light: #d9b97a;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
}

/* Enhanced Buttons */
.btn {
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary);
  border: 2px solid var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--secondary);
}

.contact-info a {
  margin-left: 20px;
  color: var(--gray);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

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

/* Enhanced Navigation */
nav {
  background-color: var(--primary);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 70px;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav.scrolled {
  top: 60px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: var(--secondary-light);
}

/* Enhanced Hero Section */
.hero {
  background-attachment: fixed;
  padding: 180px 0 100px;
  position: relative;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 51, 102, 0.7) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
  font-size: 3.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1s ease;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.6s;
  animation-fill-mode: both;
}

.hero-image {
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease;
}

/* Enhanced Feature Boxes */
.feature-box {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border-bottom: 3px solid transparent;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--secondary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
  background-color: var(--secondary);
  transform: rotateY(180deg);
}

.feature-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Enhanced Section Backgrounds */
.about {
  background-color: var(--light);
}

.practice-areas {
  background-color: white;
  position: relative;
}

.practice-areas:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/law_office_interior_dark.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.team {
  background-color: var(--light);
}

.expertise {
  background-color: white;
}

.coverage {
  background-color: var(--light);
}

.quality {
  background-color: white;
  position: relative;
}

.quality:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/law_office_modern.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.contact {
  background-color: var(--light);
}

/* Enhanced Box Shadows and Hover Effects */
.about-image img,
.team-member .team-image img,
.map-container iframe {
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-image img:hover,
.team-member .team-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Enhanced Team Section */
.team-member {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: all 0.3s ease;
}

.team-member:hover .team-image:after {
  opacity: 1;
}

.team-member h3 {
  margin: 20px 0 5px;
  font-size: 1.5rem;
}

.team-member .position {
  display: block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 5px;
}

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

.team-member p {
  padding: 0 20px 20px;
}

/* Enhanced Practice Areas */
.practice-box {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border-left: 3px solid transparent;
}

.practice-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-left: 3px solid var(--secondary);
}

.practice-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.practice-box:hover .practice-icon {
  background-color: var(--secondary);
}

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

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 20px;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

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

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

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

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

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 50px;
}

.footer-bottom p {
  margin: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Transitions */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced Form Elements */
input, textarea, select, button {
  font-family: 'Raleway', sans-serif;
}

.form-control {
  height: auto;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}
