/* Custom CSS for Fugar & Company Landing Section */

/* --- Color & Font Variables (adjust as needed) --- */
:root {
  --primary-dark: #2a2a2a; /* Main background overlay dark color */
  --light-gold: #d4af37; /* For "Law Firms" text and button */
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.8);
  --stat-box-bg: rgba(
    0,
    0,
    0,
    0.4
  ); /* Darker transparent background for stats */

  /* Fonts - if using Google Fonts, uncomment in HTML and use here */
  --font-heading: "Playfair Display", serif; /* A common elegant serif font */
  --font-body: "Open Sans", sans-serif; /* A common clean sans-serif font */
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
}

/* --- Hero Section Background and Overlay --- */
.hero-section {
  margin-top: 50px;
  /* Replace 'fugar_bg.jpg' with the actual path to your background image */
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/legal_header_3.jpg");
  background-size: cover;
  background-position: center right; /* Adjust to better frame Lady Justice */
  background-repeat: no-repeat;
  min-height: 100vh; /* Full viewport height */
  display: flex;
  flex-direction: column; /* To stack navbar and content vertically */
  position: relative;
  overflow: hidden; /* For carousel controls outside main content */
}

/* --- Navbar Styling --- */
.navbar {
  z-index: 1000; /* Ensure navbar is above background */
}

.fugar-logo {
  height: 50px; /* Adjust logo size */
  filter: brightness(0) invert(1); /* To make the logo white if it's dark */
}

.navbar-nav .nav-link {
  /* color: var(--text-white); */
  color: var(--light-gold);
  font-weight: 600;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--light-gold);
}

.dropdown-menu {
  background-color: var(--primary-dark);
  border: none;
}

.dropdown-menu .dropdown-item {
  color: var(--text-white);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--light-gold);
  color: var(--primary-dark);
}

/* --- Hero Content Styling --- */
.hero-content {
  flex-grow: 1; /* Make content take available space */
  display: flex;
  align-items: center; /* Vertically center content */
  padding-top: 5rem; /* Add some padding below navbar */
  padding-bottom: 5rem;
  position: relative; /* For z-index of overlay if needed */
  z-index: 1;
}

.text-content {
  max-width: 700px; /* Constrain text width as in the image */
}

.welcome-text {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.main-title {
  font-family: var(--font-heading);
  font-size: 3.5rem; /* Adjust font size */
  line-height: 1.2;
}

.highlight-text {
  color: var(--light-gold);
}

.description-text {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.consultation-btn {
  background-color: var(--light-gold);
  border-color: var(--light-gold);
  color: var(--primary-dark);
  font-weight: bold;
  padding: 0.8rem 2.5rem;
  border-radius: 0.25rem; /* Slightly rounded corners */
  transition: background-color 0.3s ease, border-color 0.3s ease,
    color 0.3s ease;
}

.consultation-btn:hover {
  background-color: #c09d2e;
  border-color: #c09d2e;
  color: var(--primary-dark);
}

/* --- Stats Row Styling --- */
.stats-row {
  margin-top: 4rem !important; /* Override default Bootstrap margin */
  position: relative; /* For relative positioning of the row */
  z-index: 2; /* To ensure stats are above any lower overlays */
}

.stat-box {
  background-color: var(--stat-box-bg); /* Semi-transparent dark background */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(5px); /* Optional: Frosted glass effect */
  -webkit-backdrop-filter: blur(5px); /* For Safari */
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--light-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-white);
  margin-bottom: 0;
}

/* --- Carousel Controls (Visible on image) --- */
.carousel-control-prev,
.carousel-control-next {
  width: 5%; /* Smaller clickable area */
  color: var(--text-white);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 10; /* Above background */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2rem; /* Size of the icon */
  height: 2rem;
  background-size: 100%, 100%; /* Ensure icon fills its space */
  filter: invert(1); /* Makes default black icons white */
}

.main-title-gold {
  color: var(--light-gold);
}

/* ================ our services ================ */

/* body {
  background-color: var(--bg-dark);
} */

/* --- Section Styling --- */
.news-insights-section {
  background-color: var(--bg-dark);
  background-image: url(../images/Dark.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  /* Optional: If you want the subtle diagonal background graphic from the image */
  /* background-image: url('path/to/diagonal_overlay.png'); 
       background-blend-mode: overlay; */
  /* min-height: 80vh; */
}

.section-title {
  color: var(--text-white);
  line-height: 1.1;
  /* Adjust font-family/weight if necessary to match the image's typography */
}

/* --- News Card Styling --- */
.news-card {
  background-color: transparent;
  /* border: 1px solid rgba(255, 255, 255, 0.2);  */
  border: 1px solid var(--light-gold);
  border-radius: 15px;
  padding: 1.5rem;
  height: 100%; /* Ensure all cards have the same height */
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  color: var(--text-white);
}

.card-tag {
  /* color: var(--text-muted); */
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease-in-out;
}

.card-text {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.3s ease-in-out;
}

/* --- HOVER EFFECT REQUIREMENT --- */
.news-card:hover {
  border: #c09d2e;
  background-color: var(--light-gold); /* Background becomes gold */
  border-color: var(--gold); /* Border becomes gold */
  transform: translateY(-3px); /* Subtle lift effect */
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); /* Gold shadow */
  color: black;
}

.news-card:hover .card-tag,
.news-card:hover .card-text {
  color: var(--bg-dark); /* Text color becomes black/dark */
}

/* --- View All Button --- */
.view-all-btn {
  border-color: var(--text-muted);
  color: var(--text-muted);
  padding: 0.75rem 2.5rem;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background-color: rgba(212, 175, 55, 0.1);
}

/* ================= why choose us ============ */

.why-choose-us-section {
  min-height: 100vh; /* Ensure the section takes full viewport height */
}

/* --- Content Block Styling --- */
.content-block {
  color: var(--text-light);
  text-align: left; /* Default text alignment */
  height: 100%; /* Important for flex-grow */
}

/* Background Colors */
.teal-bg {
  background-color: var(--teal-light);
}

.dark-teal-bg {
  background-color: var(--teal-dark);
}

.light-bg {
  background-color: var(--light-gray);
  color: var(--text-dark); /* Text color changes for light background */
}

/* Icon Styling */
.icon-lg {
  font-size: 2.5rem;
  color: var(--icon-color);
  line-height: 1; /* Ensure icon doesn't add extra space */
}

.light-bg .icon-lg {
  color: var(--text-dark); /* Icons on light background are dark */
}

/* Headlines and Text */
.content-block h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.content-block p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Specific styling for "Why Choose Us?" block */
.light-bg h2 {
  color: var(--text-dark);
  font-size: 2.8rem; /* Adjust font size */
  line-height: 1;
}
.fas {
  color: var(--light-gold);
}

/* ====================== contact us and footer ================== */
/* --- Contact Banner (Top part with image) --- */
.contact-banner {
  /* Replace 'contact-bg.jpg' with your cityscape image file name */
  background-image: 
  /* linear-gradient(
      var(--banner-overlay-dark),
      var(--banner-overlay-dark)
    ), */ url("../images/legal_pic_1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* position: relative; */
}

.contact-title {
  color: var(--contact-orange);
  font-size: 3rem;
  letter-spacing: 2px;
}

.contact-subtitle {
  max-width: 600px;
}

/* --- Contact Methods Container (Bottom white part) --- */
.contact-methods-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: var(--contact-box-bg); /* Explicitly white background */
}

.contact-box {
  /* Subtle separation/border if needed, though the image is mostly clean */
  /* border: 1px solid #eee; */
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  transition: transform 0.3s ease;
}

.contact-box:hover {
  transform: translateY(-5px); /* Subtle lift on hover */
}

.contact-icon {
  /* color: var(--contact-icon-color); */
  font-size: 2.5rem;
}

.contact-link {
  color: var(--contact-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--banner-overlay-dark);
}

/* --- Footer Section --- */
.main-footer {
  text-align: center;
  background-color: var(--primary-dark);
  color: white;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767.98px) {
  .contact-title {
    font-size: 2rem;
  }

  .contact-methods-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact-box {
    margin-bottom: 2rem;
  }
}
/* --- Responsive Adjustments --- */

/* Medium devices and up (Bootstrap's md breakpoint) */
@media (min-width: 768px) {
  .col-md-6:nth-child(2) .content-block:first-child {
    /* Top-right block for medium screens */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Subtle separator */
  }
}

/* Large devices and up (Bootstrap's lg breakpoint) */
@media (min-width: 992px) {
  .why-choose-us-section .row.g-0 {
    min-height: 100vh; /* Maintain full height */
  }

  /* Ensure column heights match for visual consistency */
  .col-lg-3,
  .col-lg-6 {
    display: flex; /* Make columns flex containers */
    flex-direction: column;
  }

  /* Make text in "Why Choose Us?" block center-aligned on large screens */
  .light-bg.text-center {
    text-align: center;
  }

  /* Adjust order for desktop layout */
  .order-lg-1 {
    order: 1;
  }
  .order-lg-2 {
    order: 2;
  }
  .order-lg-3 {
    order: 3;
  }
}

/* Small devices (Bootstrap's sm breakpoint) and below */
@media (max-width: 991.98px) {
  .why-choose-us-section {
    min-height: auto; /* Allow height to collapse on smaller screens */
  }

  /* Adjust order for mobile/tablet layout */
  .order-1 {
    order: 1;
  } /* Central image first */
  .order-2 {
    order: 2;
  } /* Left content blocks next */
  .order-3 {
    order: 3;
  } /* Right content blocks last */

  .main-image-container {
    height: 400px; /* Fixed height for image on smaller screens */
    min-height: 300px;
  }

  .content-block {
    text-align: center; /* Center text and icons on smaller screens */
  }

  .content-block .icon-lg {
    margin-left: auto;
    margin-right: auto;
  }

  .light-bg h2 {
    font-size: 2.5rem; /* Adjust heading size for smaller screens */
  }
}

@media (max-width: 767.98px) {
  .content-block {
    padding: 2.5rem 1.5rem; /* More padding for smaller blocks */
  }
}

/* ============ why choose us ending ========== */

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
  .hero-section {
    background-position: center center; /* Center background image on smaller screens */
    min-height: auto; /* Allow height to adjust to content */
    padding-bottom: 3rem; /* Add padding at the bottom */
  }

  .fugar-logo {
    height: 40px; /* Slightly smaller logo on mobile */
  }

  .navbar-nav .nav-link {
    margin-left: 0; /* Remove horizontal margin on collapsed menu */
    text-align: center;
    padding: 0.75rem 0;
  }

  .main-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .description-text,
  .welcome-text {
    text-align: center;
  }

  .consultation-btn {
    display: block; /* Make button full width */
    margin-left: auto;
    margin-right: auto;
    max-width: 250px;
  }

  .hero-content .row {
    text-align: center;
  }

  .stats-row {
    margin-top: 3rem !important;
  }

  .stat-box {
    padding: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    top: 40%; /* Adjust vertical position */
    height: 10%; /* Make them shorter */
    background: none; /* Remove background on small screens */
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .section-title {
    text-align: center;
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  .main-title {
    font-size: 2rem;
  }

  .description-text {
    font-size: 0.95rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}
