/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333; /* keep body text dark for white background */
  background: #fff; /* white background */
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  color: #000000;
}

a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
}

a:hover {
  color: #4137d4;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 20px;
  text-align: center;
}

.bg-light {
  background: #f9f9f9;
}

/* ================= HEADER NAV ================= */
header {
  background: #7f8fb8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo img {
  height: 100px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 600;
}


/* ================= HERO SECTIONS ================= */
.hero {
  height: 400px;
  background: center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white; /* hero text is white */
  position: relative;
  padding: 40px 20px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-btn {
  display: inline-block;
  background: #4137d4;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  margin-top: 15px;
  font-weight: bold;
}

/* ================= GRID + CARDS ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: left;
  color: #333; /* dark text inside cards */
}

.card h3 {
  color: #4137d4;
}

/* ================= ATTORNEY CARDS ================= */
.attorney-card {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
  text-align: left;
}

.attorney-card img {
  width: 300px;
  border-radius: 8px;
}

.attorney-card h2 {
  margin-bottom: 10px;
  color: #4137d4;
}

/* ================= CTA SECTION ================= */
.cta-section {
  background: #ffffff;
  color: #4137d4; /* white text here */
  padding: 10px 20px;
  text-align: center;
}

.cta-section h2 {
  color: #4137d4;
}

.cta-btn.big {
  padding: 1px 30px;
  font-size: 1.2rem;
  background: #4137d4;
  color: #ffffff;
  border-radius: 5px;
  font-weight: bold;
}

/* ================= CONTACT FORM ================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 30px auto;
}

.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #333;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background: #4137d4;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #4137d4;
}

/* ================= FOOTER ================= */
footer {
  background: #7f8fb8;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

.footer-links a {
  color: white;
  font-weight: 600;
}

.footer-links a:hover {
  color: #d4af37;
}

footer p {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 900px) {
  .attorney-card {
    flex-direction: column;
    text-align: center;
  }
  .attorney-card img {
    width: 100%;
    max-width: 350px;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* Make all text inside the header white */
header, 
header h1, 
header h2, 
header nav a, 
header p {
    color: white;
}
h1 {
    color: white;
}
/* Make the hero/heading text white */
.hero h1,
.hero h2,
.hero p {
    color: white;
}