:root {
  --gold: #E2A704;
  --gold-dark: #a47f1b;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Lato', sans-serif;
  --font-header: 'Poppins', sans-serif;
}

body { font-family: var(--font-header); }

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.page-banner-content h1,
.header {
  font-family: var(--font-header);
  font-size: 34px;
  font-weight: 500;
  text-transform: none;
  font-style: normal;
  text-decoration: none;
  line-height: 1.1em;
  letter-spacing: -2px;
  word-spacing: 0em;
  color: var(--gold);
}

.sub-header {
	font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    font-style: normal;
    text-decoration: none;
    line-height: 1.1em;
    letter-spacing: 2px;
    word-spacing: 0em;
    color: #222222;
}

.content,
ul li {
	font-family: var(--font-header);
	font-size: 15px;
    line-height: 1.7;
    text-transform: none;
    font-style: normal;
}

.custom-swal-popup {
  max-width: 700px;
  width: 100%;
}

.text-justify {
  text-align: justify !important;
}

.custom-btn {
  background-color: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 31px;
  line-height: 1em;
  letter-spacing: 0;
  word-spacing: 0;
  background-image: linear-gradient(240deg, rgba(167,123,166,0) 0%, #D7A008 100%);
  border: 1px solid #EBAF0A;
  box-shadow: -1px 0px 18px -5px rgba(20, 1, 1, 0.5);
  transition: all 0.3s ease;
}

.custom-btn:hover {
  opacity: 0.9;
}

.list-group-item a:hover {
    color: #D7A008;
}

.custom-list-item {
  font-size: 16px;
  color: #E2A704;
  font-weight: 500;
}

.equal-img {
  height: 300px;
  object-fit: cover;
}

.check-icon {
  background-color: green;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.custom-icon {
	fill: #E2A704;
    color: #E2A704;
    border-color: #E2A704;
}

/* ── TOP BAR ── */
.top-bar {
  background-color: var(--gold);
  color: #fff;
  font-size: 12.5px;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar .feedback-link {
  font-size: 11px;
  opacity: 0.85;
  text-decoration: underline;
}

.top-bar .welcome-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
}

.top-bar .phone-link {
  font-weight: 700;
  font-size: 13.5px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 12px;
  transition: background 0.2s;
  text-decoration: none;
}

.social-icons a:hover { background: rgba(0,0,0,0.45); }

.top-bar .btn-search {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 0 4px;
  opacity: 0.9;
}

.top-bar .btn-search:hover { opacity: 1; }

/* ── MAIN NAVBAR ── */
.main-header {
  border-bottom: 1px solid #e8e0cc;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.navbar-brand .logo-icon svg {
  width: 50px;
  height: 50px;
}

.logo-text .firm-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.logo-text .firm-sub {
  font-size: 10px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
}

/* ── NAV LINKS ── */
.navbar-nav .nav-link {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #1a1a1a !important;
  padding: 8px 14px !important;
  letter-spacing: 0.02em;
  position: relative;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover { color: var(--gold) !important; }

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

/* Chevron arrow for top-level dropdowns */
.navbar-nav .dropdown-toggle::after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: "\f078";
  border: none;
  font-size: 9px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── DROPDOWN MENU ── */
.dropdown-menu {
  border: none;
  border-radius: 0;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid #e8e0cc;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 220px;
  margin-top: 0;
}

.dropdown-item {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #1a1a1a;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s, background 0.2s;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: transparent;
  color: var(--gold);
}

.dropdown-item.active,
.dropdown-item:active {
  background: transparent;
  color: var(--gold);
  font-weight: 700;
}

/* Current page highlight */
.navbar-nav li.current-menu-item > a {
  color: var(--gold) !important;
  font-weight: 700;
}

/* Arrow for submenu parent items - override Bootstrap's default arrow */
.dropdown-submenu > a.dropdown-item::after {
  content: '›';
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: #999;
  margin-left: auto;
  border: none;
  padding-left: 8px;
  font-family: Georgia, serif;
}

/* Gold color + arrow turns gold on hover */
.dropdown-submenu:hover > a.dropdown-item,
.dropdown-submenu > a.dropdown-item:hover {
  color: var(--gold);
}

.dropdown-submenu:hover > a.dropdown-item::after {
  color: var(--gold);
}

/* ── FLYOUT SUBMENU ── */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0 !important;
  left: 100% !important;
  margin-top: 0 !important;
  /* Negative margin bridges the gap so menu doesn't close */
  margin-left: -1px !important;
  display: none;
}

.dropdown-submenu > .dropdown-menu.show {
  display: block;
}

/* Bridge gap between submenu trigger and flyout panel */
.dropdown-submenu > .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 100%;
}

/* ── CTA ── */
.header-cta {
  border-left: 1px solid #e8e0cc;
  padding-left: 20px;
}

.header-cta .cta-icon {
  color: var(--gold);
  font-size: 28px;
}

.header-cta .cta-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.header-cta .cta-number {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  display: block;
  white-space: nowrap;
  line-height: 1.3;
}

/* ── MOBILE ── */
@media (max-width: 991px) {
  .header-cta {
    border-left: none;
    padding-left: 0;
    margin-top: 12px;
  }

  .dropdown-submenu > .dropdown-menu {
    position: static !important;
    left: 0 !important;
    margin-left: 16px !important;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--gold);
  }

  .dropdown-submenu > .dropdown-menu.show {
    display: block;
  }
}

/* ══════════════════════════════
   BANNER
══════════════════════════════ */
.custom-bg-section {
    background: url('https://cdn-ileemhg.nitrocdn.com/ZBwvzuPSRgYpcLNbEmIZIwLozJymnLSO/assets/images/optimized/rev-86537ee/fosterlawconsulting.com/wp-content/uploads/2025/07/hero-background.webp') no-repeat center center;
    background-size: cover;
    position: relative;
}

.custom-check li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
}

.custom-check li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

/* Dark overlay (recommended for readability) */
.custom-bg-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Keep content above overlay */
.custom-bg-section .container {
    position: relative;
    z-index: 2;
}

/* Image size */
.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Hover container */
.custom-card-hover {
    transition: all 0.3s ease;
}

/* Overlay (renamed) */
.custom-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);
    opacity: 0;

    transition: all 0.3s ease;
}

/* Show overlay on hover */
.custom-card-hover:hover .custom-card-overlay {
    opacity: 1;
}

/* Image zoom */
.custom-card-hover img {
    transition: all 0.3s ease;
}

.custom-card-hover:hover img {
    transform: scale(1.05);
}

/* Accordion container */
.custom-accordion .accordion-item {
    border: 1px solid #c7954a;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

/* Header button */
.custom-accordion .accordion-button {
    color: #c7954a;
    font-weight: 600;
    font-size: clamp(14px, 1rem, 20px);
    padding: 20px;
    background: #fff;
    box-shadow: none;
    position: relative;
}

/* ❌ REMOVE Bootstrap default arrow completely */
.custom-accordion .accordion-button::after {
    display: none !important;
    background-image: none !important;
}

.carousel-reviews {
	width: 60px;
	height: 60px;
	border-radius: 50%;
}

/* Container */
.review-quote {
    font-size: 15px;
    line-height: 2;
    color: #ccc;
    padding: 20px 30px;
}

/* LEFT QUOTE */
.quote-left-icon {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 50px;
    color: #CDA436;
    opacity: 0.8;
}

/* RIGHT QUOTE */
.quote-right-icon {
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 50px;
    color: #CDA436;
    opacity: 0.8;
}

/* ✅ CUSTOM GOLD ARROW */
.custom-accordion .accordion-button::before {
    font-family: "Font Awesome 6 Free";
    content: "\f054";
    font-weight: 900;
    
    font-size: 14px;
    color: #c7954a;
    margin-right: 12px;

    display: inline-block;
    transition: transform 0.3s ease;
}

/* Rotate when active */
.custom-accordion .accordion-button:not(.collapsed)::before {
    transform: rotate(90deg);
}

/* Body */
.custom-accordion .accordion-body {
    padding: 20px;
    background: #fafafa;
    color: #333;
}

/* Remove blue focus */
.custom-accordion .accordion-button:focus {
    box-shadow: none;
}

/* Remove any theme SVG or icon inside button */
.custom-accordion .accordion-button svg {
    display: none !important;
}

/* Remove pseudo elements from theme */
.custom-accordion .accordion-button::after {
    display: none !important;
    background-image: none !important;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background-color: #111111;
  color: #ccc;
  font-family: var(--font-sans);
}

.footer-main {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logo & firm name */
.footer-logo {
  max-width: 130px;
}

.footer-firm-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.3;
}

/* About text */
.footer-about {
  font-size: 13.5px;
  color: #aaa;
  line-height: 1.7;
}

/* Social icons */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.footer-social-link:hover {
  background: var(--gold);
  color: #fff;
}

/* Section headings */
.footer-heading {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-transform: none;
}

/* Nav links */
.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

/* Contact info */
.footer-contact li {
  font-size: 13.5px;
  color: #ccc;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact i {
  color: var(--gold);
  width: 16px;
}

.footer-contact a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--gold); }

/* Business hours */
.footer-hours li {
  font-size: 13.5px;
  color: #ccc;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* QR code */
.footer-qr-img {
  max-width: 160px;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* Bottom bar */
.footer-bottom {
  background-color: #0a0a0a;
}

.footer-copy {
  font-size: 12.5px;
  color: #666;
}

.footer-copy-link {
  color: var(--gold);
  text-decoration: none;
}

.footer-copy-link:hover {
  text-decoration: underline;
}


/* ══════════════════════════════
   FOOTER RESPONSIVE OVERRIDES
══════════════════════════════ */

/* Tablet: stack logo+contact full width, links side by side */
@media (max-width: 991px) {
  .footer-qr-img {
    max-width: 130px;
  }
}

/* Mobile (max 575px): stack everything single column */
@media (max-width: 575px) {
  .footer-main .row > div {
    /* Override col-6 so both link columns go full width on small phones */
  }

  /* Make Information and Practice Area full width on very small screens */
  .col-6.col-md-3 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .footer-firm-name {
    font-size: 17px;
  }

  .footer-about {
    font-size: 13px;
  }

  .footer-qr-img {
    max-width: 110px;
  }

  .footer-hours li {
    flex-direction: column;
    gap: 2px;
  }

  .footer-hours .text-end {
    text-align: left !important;
  }

  .footer-copy {
    font-size: 11.5px;
    text-align: center;
  }
}


/* ══════════════════════════════
   CTA BANNER
══════════════════════════════ */
.cta-banner {
  position: relative;
  background-image: url('assets/images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 122, 46, 0.82);
  z-index: 0;
}

.cta-banner .container-fluid {
  z-index: 1;
}

/* Left - Phone */
.cta-banner-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cta-banner-phone {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cta-banner-phone:hover {
  opacity: 0.85;
  color: #fff;
}

.cta-banner-phone i {
  font-size: 32px;
}

/* Vertical divider */
.cta-banner-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.4);
}

/* Right - Email */
.cta-banner-icon-wrap {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: #fff;
}

.cta-banner-send {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.cta-banner-email {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  display: block;
  transition: opacity 0.2s;
}

.cta-banner-email:hover {
  opacity: 0.8;
  color: #fff;
}

.cta-banner-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
  margin-bottom: 0;
  text-transform: uppercase;
}

/* ── Consultation Form ── */
.consultation-card {
	margin-top: 24px;
    background-color: #123d7a;
    font-family: 'Poppins', sans-serif;
	width: 100%;
}

.consultation-card .form-control,
.consultation-card .form-select {
    background-color: #d9d9d9;
    border: none;
    border-radius: 3px;
    font-size: 14px;
}

.consultation-card .form-control::placeholder,
.consultation-card textarea::placeholder {
    color: #777;
    font-size: 13px;
}

.consultation-card label {
    font-size: 13px;
    font-weight: 500;
}

.consultation-note {
    font-size: 12px;
    line-height: 1.5;
}

.consultation-btn {
    background: linear-gradient(90deg, #1e6bd6, #2d8cff);
    color: #fff;
    font-weight: 500;
    border: none;
    padding: 12px;
    border-radius: 6px;
}

.consultation-btn:hover {
    opacity: 0.9;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .cta-banner-phone {
    font-size: 28px;
  }

  .cta-banner-phone i {
    font-size: 24px;
  }

  .cta-banner-left,
  .cta-banner-right {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 24px;
  }

  .cta-banner-right {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ── Practice Area Accident aside ── */
.sidebar-box {
    background-color: #E4E7E7;
}

.feature-box {
    background-color: #6F7D80;
    border-radius: 6px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

.feature-text {
    font-size: 14px;
}

@media (max-width: 575px) {
  .cta-banner-phone {
    font-size: 24px;
  }

  .cta-banner-label,
  .cta-banner-send,
  .cta-banner-sub {
    font-size: 11px;
  }

  .cta-banner-email {
    font-size: 13px;
  }
}


/* ══════════════════════════════
   PAGE BANNER
══════════════════════════════ */
.page-banner {
  position: relative;
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Grayscale the background image */
  filter: none;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.45);
  z-index: 1;
  /* Apply grayscale via backdrop blend */
  mix-blend-mode: color;
  background-color: #555;
}

/* Grayscale effect on the bg image */
.page-banner {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.35);
  z-index: 1;
  /* This creates the grayscale tint effect */
  backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
}

/* Gold diagonal slash at the bottom */
.page-banner-slash {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: rgba(139, 122, 46, 0.88);
  z-index: 2;
}

/* Title */
.page-banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  /* Push title up slightly so it sits above the slash */
  margin-bottom: 30px;
}

.page-banner-content h1 {
  font-family: var(--font-header);
  font-size: 38px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.pop-up-btn {
  background-color: #a47f1b !important;
  color: #fff !important;
  font-weight: bold;
  border: 2px solid #fff !important;
  padding: 8px 20px;
  text-align: center;
}

.pop-up-btn:hover {
  background-color: #8c6b17 !important;
  color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .page-banner {
    height: 220px;
  }

  .page-banner-title {
    font-size: 30px;
  }

  .page-banner-slash {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .custom-swal-popup {
    width: 95% !important;
    padding: 10px;
  }

  .custom-swal-popup h2 {
    font-size: 18px;
  }

  .custom-swal-popup .form-control,
  .custom-swal-popup .form-select {
    font-size: 14px;
  }
  
  .equal-img {
    height: 200px;
  }
}

@media (max-width: 575px) {
  .page-banner {
    height: 180px;
  }

  .page-banner-title {
    font-size: 24px;
  }

  .page-banner-slash {
    height: 55px;
    clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0% 100%);
  }
}