:root {
  --main-gold: #c6a667;
  --light-text: #f5f5f5;
  --dark-bg: #000;
}

/* ===== Global ===== */
body {
  font-family: "Segoe UI", sans-serif;
  background: var(--dark-bg);
  color: var(--light-text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===== Top Bar ===== */
.top-bar {
  background: #1a1a1a;
  padding: 10px 0;
  font-size: 14px;
}
.btn-consult {
  background: var(--main-gold);
  color: #000;
  font-weight: 600;
  border-radius: 3px;
  font-size: 13px;
  padding: 6px 14px;
}

/* ********************************************************************************************************************** */

/* ===== Navbar ===== */
.navbar {
  position: absolute;
  top: 40px;
  width: 100%;
  transition: all 0.5s ease;
  z-index: 1000;
  background: transparent; /* default for desktop */
}

/* When scrolled down */
.navbar-scrolled {
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
  top: 0;
}

/* Brand Icon */
.brand-icon {
  width: 26px;
  height: 26px;
}

/* Navbar links */
.nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-right: 20px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--main-gold) !important;
}

/* ===== Mobile Navbar (solid black background always visible) ===== */
@media (max-width: 991px) {
  .navbar {
    background: rgba(0, 0, 0, 0.8) !important; /* make navbar solid black on mobile */
    position: fixed; /* keep it fixed at top */
    top: 0;
    left: 0;
  }

  /* Optional: make the container padding smaller for compact fit */
  .navbar .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* Adjust toggle button spacing */
  .navbar-toggler {
    padding: 4px 8px;
  }
}


/* ===== Mobile Menu (Right Slide) ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  transition: right 0.4s ease;
  z-index: 2000;
  padding: 40px 25px;
}

.mobile-menu ul li {
  margin: 25px 0; /* increase space between menu items */
}

.mobile-menu ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: var(--main-gold);
}

.mobile-menu.open { right: 0; }
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--main-gold);
  font-size: 22px;
}


/* ********************************************************************************************************************** */

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 75vh;
  background: url('https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-content h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #ccc;
}
.text-gold { color: var(--main-gold); }
.btn-hero {
  background: var(--main-gold);
  color: #000;
  font-weight: 600;
  border-radius: 4px;
  padding: 10px 25px;
}

/* ********************************************************************************************************************** */

/* ===== Info Section ===== */
.info-section {
  position: relative;
  margin-top: -120px;
  z-index: 10;
  color: #fff;
}
.info-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  z-index: -1;
}
.info-box {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  padding: 30px 20px;
  transition: 0.3s;
}
.info-box:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-6px);
}
.icon { color: var(--main-gold); font-size: 34px; }
.info-box p { color: #ddd; line-height: 1.6; }



/* ********************************************************************************************************************** */

/* =========================================================
   ABOUT SECTION STYLING - Edward Robinson Lawfirm
   ========================================================= */

/* ===== Section Wrapper ===== */
.about-section {
  background-color: #0f0f0f;
  color: #fff;
  padding: 80px 20px;
  font-family: "Segoe UI", sans-serif;
}

/* ===== Container for Text and Image ===== */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* ===== Text Content Area ===== */
.about-text {
  flex: 1 1 500px;
  text-align: left;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #cccccc;
  margin-bottom: 20px;
}

.ceo-title {
  font-size: 14px;
  color: var(--main-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ceo-title span {
  color: var(--main-gold);
  font-weight: 600;
}

/* ===== Image Area ===== */
.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

/* ===== Tablet View ===== */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-image img {
    max-width: 350px;
  }
}

/* ===== Mobile View ===== */
@media (max-width: 600px) {
  .about-section {
    padding: 60px 15px;
  }

  .about-text p {
    font-size: 15px;
  }

  .about-text h2 {
    font-size: 26px;
  }

  .about-image img {
    max-width: 280px;
  }

   .about-container {
    margin-bottom: -140px;
    margin-top: -130px;
  }
}

/* ********************************************************************************************************************** */



/* =========================================================
   LEGAL PRACTICES AREA SECTION - Edward Robinson Lawfirm
   ========================================================= */

/* ===== Section Wrapper ===== */
.legal-practices {
  background-color: #ffffff;
  color: #333;
  padding: 100px 20px;
  font-family: "Segoe UI", sans-serif;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  font-size: 13px;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.divider {
  width: 40px;
  height: 2px;
  background-color: #c5a35a; /* Subtle gold line under heading */
  margin: 0 auto;
}

/* ===== Grid Layout ===== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ===== Individual Card ===== */
.practice-card {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(199, 199, 199, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(167, 167, 167, 0.1);
}

/* Card Image */
.practice-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Card Title */
.practice-card h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 20px 0 15px 0;
  color: #000;
}

/* Card Text */
.practice-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  padding: 0 25px;
  margin-bottom: 25px;
}

/* Learn More Link */
.learn-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c5a35a;
  text-decoration: none;
  margin-bottom: 25px;
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: #000;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

/* ===== Tablet View ===== */
@media (max-width: 992px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Mobile View ===== */
@media (max-width: 700px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-card p {
    padding: 0 15px;
  }
}

/* ********************************************************************************************************************** */


/* =========================================================
   NEWSLETTER SECTION - Edward Robinson Lawfirm
   ========================================================= */

/* ===== Section Wrapper ===== */
.newsletter-section {
  background-color: #0d0d0d;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
}

/* ===== Container ===== */
.newsletter-container {
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Heading Text ===== */
.newsletter-text h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.newsletter-text p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ===== Subscription Form ===== */
.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 280px;
  padding: 14px 18px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  color: #333;
}

.newsletter-form button {
  background-color: #c5a35a;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #e1bb72;
  transform: translateY(-2px);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .newsletter-text h2 {
    font-size: 24px;
  }

  .newsletter-text p {
    font-size: 15px;
  }

  .newsletter-form input {
    min-width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }
}


/* ********************************************************************************************************************** */


/* =========================================================
   WHY CLIENTS CHOOSE US SECTION - Edward Robinson Lawfirm
   ========================================================= */

/* ===== Section Wrapper ===== */
.why-choose-us {
  background-color: #160f02; /* Elegant gold tone */
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  font-family: "Segoe UI", sans-serif;
  background-image: linear-gradient(to bottom right, #2c261a,var(--main-gold));
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Header ===== */
.section-header {
  margin-bottom: 60px;
}

.section-header .subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #f0e2c0;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.divider {
  width: 40px;
  height: 2px;
  background-color: #fff;
  margin: 0 auto;
}

/* ===== Counter Grid ===== */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.counter-item h3 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.counter-item p {
  font-size: 15px;
  color: #f9f9f9;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counter-item h3 {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .counter-grid {
    grid-template-columns: 1fr;
  }

  .counter-item h3 {
    font-size: 32px;
  }
}


/* ********************************************************************************************************************** */

/* =========================================================
   TESTIMONIAL SECTION - Edward Robinson Lawfirm
   ========================================================= */

.testimonial-section {
  background-color: #0f0f0f;
  background-image: linear-gradient(to bottom, rgba(15, 15, 15, 0.95), rgba(15, 15, 15, 0.95)),
    url('https://images.unsplash.com/photo-1555375771-14b2a63968b4?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  font-family: "Segoe UI", sans-serif;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Section Header ===== */
.section-header {
  margin-bottom: 60px;
}

.section-header .subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c5a35a;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.divider {
  width: 40px;
  height: 2px;
  background-color: #c5a35a;
  margin: 0 auto;
}

/* ===== Testimonials ===== */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.testimonial.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.quote {
  font-size: 45px;
  color: #c5a35a;
  margin-bottom: 20px;
}

.testimonial p {
  font-size: 17px;
  line-height: 1.8;
  color: #e0e0e0;
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* ===== Animation Effect ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 1s ease forwards;
}

/* ===== Dots ===== */
.slider-dots {
  margin-top: 25px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background-color: #888;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background-color: #c5a35a;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 26px;
  }

  .testimonial p {
    font-size: 15px;
  }

  .quote {
    font-size: 35px;
  }
}



/* ********************************************************************************************************************** */
/* =========================================================
   FOOTER SECTION - Edward Robinson Lawfirm
   ========================================================= */

/* ===== Main Footer Wrapper ===== */
.footer-section {
  background-color: #1e1e1e;
  color: #ccc;
  padding: 50px 20px 25px;
}

/* ===== Footer Container Layout ===== */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px; /* reduced gap between columns */
  text-align: left;
}

/* ===== Footer Columns ===== */
.footer-col {
  flex: 1 1 300px;
  min-width: 250px;
}

/* ===== Logo Section ===== */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-logo img {
  width: 55px;
  height: auto;
}

.footer-brand h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.footer-brand span {
  color: #c5a35a;
  font-size: 14px;
  text-transform: uppercase;
}

/* ===== Paragraph Styling ===== */
.footer-col-logo p {
  font-size: 15px;
  color: #aaa;
  line-height: 1.7;
  margin: 0;
  max-width: 340px;
}

/* ===== Headings ===== */
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===== Links ===== */
.footer-col a {
  color: #c5a35a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
}

/* ===== Quick Links List ===== */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 6px;
}

/* =========================================================
   BOTTOM FOOTER BAR (SEPARATE)
   ========================================================= */
.footer-bottom {
  background-color: #000;
  color: #999;
  text-align: center;
  border-top: 1px solid #222;
  padding: 10px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.footer-bottom span {
  color: #c5a35a;
  font-weight: 600;
}

/* =========================================================
   RESPONSIVE DESIGN (MOBILE VIEW)
   ========================================================= */
@media (max-width: 768px) {
  .footer-section {
    padding: 25px 20px 10px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0; /* completely removes the big gaps */
  }

  /* Each column closer together */
  .footer-col,
  .footer-col-logo {
    margin-bottom: -120px; /* tight spacing between sections */
    padding-bottom: 0;
  }

  /* Adjust headings for tighter spacing */
  .footer-col h4 {
    margin-top: 8px;
    margin-bottom: 6px;
  }

  /* Adjust text and paragraph spacing */
  .footer-col-logo p,
  .footer-col p,
  .footer-col ul li {
    margin-bottom: 4px;
    line-height: 1.5;
  }

  /* Reduce font size slightly */
  .footer-col-logo p,
  .footer-col a {
    font-size: 14px;
  }

  .footer-logo img {
    width: 45px;
  }

  /* Copyright fine-tune */
  .footer-bottom {
    padding: 10px 0;
  }

  .footer-bottom p {
    line-height: 1.4;
    margin: 2px 0;
    font-size: 13px;
  }
}




/* ********************************************************************************************************************** */

/* ===== Scroll To Top ===== */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--main-gold);
  color: #000;
  border: none;
  padding: 12px 14px;
  border-radius: 50%;
  cursor: pointer;
}
#scrollTopBtn:hover { background: #d8b769; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { height: 65vh; }
  .hero-content h1 { font-size: 2.5rem; }
  .info-section { margin-top: -80px; }
  .info-box { text-align: center; }
  .about-section { padding-top: 120px; text-align: center; }
  .about-img { margin-top: 25px; width: 90%; }
}
