/* styles.css - styles for Vidhi Legal Services website */

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
  padding-bottom: 50px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */

header {
  background-color: #012a4a;
  color: white;
  padding: 15px 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: #ffd60a;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 25px;
}

nav a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active {
  background-color: #ffd60a;
  color: #012a4a;
}

/* Hero Section */

.hero {
  background: linear-gradient(135deg, #0367a6, #012a4a);
  color: white;
  padding: 80px 20px 100px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 50px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons a {
  display: inline-block;
  margin: 0 12px 12px 12px;
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.4s ease;
}

.btn-primary {
  background-color: #ffd60a;
  color: #012a4a;
}

.btn-primary:hover {
  background-color: #e6c300;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: #012a4a;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #1da851;
}

/* Services Section */

.services {
  margin-bottom: 60px;
}

.services h2 {
  text-align: center;
  margin-bottom: 12px;
  font-size: 2rem;
  color: #012a4a;
}

.services p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 35px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(1, 42, 74, 0.1);
  padding: 30px 20px 25px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 12px 28px rgba(1, 42, 74, 0.2);
}

.service-card img {
  max-width: 80px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #012a4a;
}

.service-card p {
  font-size: 1rem;
  color: #555555cc;
  margin-bottom: 15px;
  min-height: 70px;
}

.btn-link {
  color: #0367a6;
  font-weight: 600;
  text-decoration: underline;
}

.btn-link:hover {
  color: #012a4a;
}

/* Why Choose Us */

.why-choose-us {
  background-color: #f5f9fc;
  padding: 50px 0;
  margin-bottom: 60px;
}

.why-choose-us h2 {
  text-align: center;
  font-size: 2.1rem;
  color: #012a4a;
  margin-bottom: 30px;
}

.reasons-list {
  max-width: 850px;
  margin: 0 auto;
  list-style: disc inside;
  color: #555;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Quick Contact Form */

.quick-contact {
  max-width: 650px;
  margin: 0 auto 60px;
  padding: 20px;
  border: 2px solid #012a4a;
  border-radius: 12px;
  background-color: white;
}

.quick-contact h2 {
  color: #012a4a;
  text-align: center;
  margin-bottom: 25px;
  font-size: 2rem;
}

.contact-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #012a4a;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 6px;
  border: 1.8px solid #ccc;
  font-size: 1rem;
  color: #333;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 140,0 70,70" fill="%23333"/></svg>') no-repeat right 20px center;
  background-size: 15px 15px;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 14px 0;
  background-color: #012a4a;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #035381;
}

/* Testimonials */

.testimonials {
  margin-bottom: 60px;
  padding: 30px 20px;
  background-color: #f5f9fc;
  border-radius: 10px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  color: #012a4a;
  margin-bottom: 30px;
}

.testimonials blockquote {
  font-style: italic;
  font-size: 1.2rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto 25px;
  border-left: 6px solid #ffd60a;
  padding-left: 24px;
  line-height: 1.5;
}

/* Footer */

footer {
  background-color: #012a4a;
  color: white;
  padding: 40px 0 25px;
  font-size: 0.9rem;
}

.expanded-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-info {
  flex: 1 1 280px;
  max-width: 320px;
}

.footer-info h3 {
  color: #ffd60a;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.footer-info p a {
  color: #ffd60a;
  text-decoration: none;
}

.footer-info p a:hover {
  text-decoration: underline;
}

.footer-links-group {
  flex: 1 1 180px;
  max-width: 200px;
}

.footer-links-group h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #ffd60a;
  font-weight: 700;
}

.footer-links-group ul {
  list-style: none;
}

.footer-links-group ul li {
  margin-bottom: 10px;
}

.footer-links-group ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links-group ul li a:hover {
  color: #ffd60a;
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid #111830;
  margin-top: 35px;
  font-size: 0.8rem;
  color: #bbb;
}

/* Responsive Breakpoints */

@media only screen and (max-width: 960px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-wrap: wrap;
    margin-top: 10px;
  }
  nav ul li {
    margin-left: 0;
    margin-right: 16px;
    margin-bottom: 8px;
  }
  .expanded-footer {
    flex-direction: column;
  }
  .footer-links-group {
    max-width: 100%;
    flex: none;
  }
  .footer-info {
    max-width: 100%;
    padding-bottom: 20px;
  }
}

@media only screen and (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .cta-buttons a {
    margin: 6px 6px;
    padding: 12px 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}
