/* General styles */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2 {
  font-family: 'Merriweather', serif;
  color: #2c3e50;
}

/* Header */
header {
  background-color: #1a1a1a;
  color: white;
  padding: 20px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 30px;
  color: #f4f4f4;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #f0f0f0;
  text-decoration: none;
  margin: 0 15px;
  font-size: 17px;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: flex-start; /* align image and text at top */
  gap: 30px;
  padding: 40px 20px;
  background: url('law-background.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  height: 400px; /* adjust height as needed */
  max-width: 1000px;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero img {
  width: 200px;   /* bigger image */
  height: auto;
  border-radius: 8px;
  border: 4px solid rgb(15, 2, 2);
  object-fit: cover;
  flex-shrink: 0;  /* prevent shrinking */
}

.hero div {
  max-width: 400px; /* limit text width */
  padding-top: 15px;
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: white;
}

.hero p {
  font-size: 18px;
  color: #140101;
}

/* Section Styles */
.section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  color: #333;
}

.section h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Practice Areas */
.practice-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.practice-areas div {
  background-color: #ffffff;
  padding: 15px;
  border-left: 5px solid #2c3e50;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: #222;
  font-size: 15px;
}

/* Contact Section */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #bbb;
  border-radius: 4px;
  width: 100%;
  color: #222;
}

.contact-form button {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1a242f;
}

.contact-form p {
  margin-top: 15px;
  font-size: 15px;
  color: #444;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #1a1a1a;
  color: white;
  font-size: 14px;
}
