/* ===========================
   LEXUS LAW GROUP MAIN CSS
   =========================== */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #f20032;
  background-color: #fff;
  line-height: 1.6;
}

/* ---------- GLOBAL ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  color: #1aca7f;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 14px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 600;
  margin: 10px 0;
}

.section-subtitle {
  color: #6B7280;
  font-size: 16px;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  background-color: #1aca7f;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #A7854F;
}

.btn-outline {
  border: 2px solid #1aca7f;
  color: #1aca7f;
  background: transparent;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #1aca7f;
  color: #fff;
}

.btn-text {
  background: none;
  border: none;
  color: #1aca7f;
  font-weight: 600;
  cursor: pointer;
  margin-left: 20px;
}

/* ---------- NAVBAR ---------- */
.header {
  background-color: #fff;
  border-bottom: 1px solid #E9ECF2;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 22px;
  color: #f20032;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #f20032;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #1aca7f;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: #f20032;
  margin: 4px 0;
  transition: 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0,0.8), rgba(0, 0, 0,0.8)), url('../img/hero.webp') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-subtitle {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #E9ECF2;
}

.hero-cta {
  display: flex;
  justify-content: center;
}

/* ---------- ABOUT ---------- */
.about-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 24px;
  color: #f20032;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  color: #555;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  flex: 1 1 200px;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #1aca7f;
}

.stat-label {
  color: #6B7280;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: #fff;
  border: 1px solid #E9ECF2;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #1aca7f;
}

.service-icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-bottom: 12px;
}

/* ---------- WHY CHOOSE US ---------- */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.why-choose-item {
  background: #fff;
  border: 1px solid #E9ECF2;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.why-choose-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.why-choose-icon {
  margin-bottom: 20px;
}

/* ---------- FEATURES ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  border: 1px solid #E9ECF2;
  border-radius: 8px;
  padding: 30px;
  transition: 0.3s;
}

.feature-item:hover {
  border-color: #1aca7f;
}

.feature-icon {
  margin-bottom: 20px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.testimonial-card {
  border: 1px solid #E9ECF2;
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: #1aca7f;
}

.testimonial-rating {
  color: #1aca7f;
  margin-bottom: 15px;
}

.testimonial-quote {
  font-style: italic;
  color: #333;
  margin-bottom: 20px;
}

/* ---------- CONTACT ---------- */
.contact-content {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-card {
  background: #fff;
  border: 1px solid #E9ECF2;
  border-radius: 8px;
  padding: 30px;
  flex: 1;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-details h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #f20032;
}

.contact-form-container {
  flex: 1;
}

.contact-form {
  background: #fff;
  border: 1px solid #E9ECF2;
  border-radius: 8px;
  padding: 30px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #f20032;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #E9ECF2;
  border-radius: 4px;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #1aca7f;
}

/* ---------- FOOTER ---------- */
.footer {
  background-color: #000;
  color: #E9ECF2;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  color: #1aca7f;
  margin-bottom: 15px;
  font-family: 'Cormorant Garamond', serif;
}

.footer-section p,
.footer-section li,
.footer-section a {
  color: #E9ECF2;
  font-size: 14px;
  text-decoration: none;
}

.footer-section a:hover {
  color: #1aca7f;
}

.social-links a {
  margin-right: 15px;
}

.footer-bottom {
  border-top: 1px solid #f20032;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

.footer-links a {
  margin: 0 10px;
  color: #1aca7f;
}

/* ---------- MODALS ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(242, 0, 50, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  color: #f20032;
}

.modal .close {
  font-size: 24px;
  cursor: pointer;
  color: #f20032;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid #E9ECF2;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 34px;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
  }

  .btn-text {
    margin: 10px 0 0;
  }
}
/* ===========================
   Form Styling
=========================== */
.modal-form .form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.modal-form label {
  color: #1d2a44;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="date"] {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(29, 42, 68, 0.2);
  border-radius: 6px;
  font-size: 0.95rem;
  color: #1d2a44;
  transition: all 0.3s ease;
  font-family: "Lato", sans-serif;
}

.modal-form input:focus {
  border-color: #c09a65;
  outline: none;
  box-shadow: 0 0 0 3px rgba(192, 154, 101, 0.15);
}

/* Checkbox Group */
.checkbox-group {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 28px;
  user-select: none;
  color: #1d2a44;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-label .checkmark {
  position: absolute;
  left: 0;
  top: 1px;
  height: 18px;
  width: 18px;
  border: 2px solid #c09a65;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.checkbox-label input:checked ~ .checkmark {
  background-color: #c09a65;
}

.checkbox-label .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-label input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-label .checkmark::after {
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ===========================
   Button Styling
=========================== */
.btn-primary {
  display: inline-block;
  background: #1d2a44;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: #c09a65;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 154, 101, 0.3);
}

/* ===========================
   Confirmation Message
=========================== */
.confirmation-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #1d2a44;
  background: rgba(192, 154, 101, 0.08);
  border: 1px solid rgba(192, 154, 101, 0.25);
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 1rem;
  font-weight: 500;
  animation: fadeInUp 0.5s ease forwards;
}

.confirmation-message svg {
  color: #c09a65;
}

/* ===========================
   Animations
=========================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
  }
  .modal-header h3 {
    font-size: 1.2rem;
  }
  .modal-form input,
  .btn-primary {
    font-size: 0.9rem;
  }
}
