/* 

  //////////////////////

  GENERAL STYLES

  //////////////////////// 

*/

html, 
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

:root {
  --le-radius: 18px;
  --le-surface: #f7f8f9;
  --le-border: rgba(0,0,0,.07);
  --le-shadow: 0 14px 30px rgba(0,0,0,.07);
  --bs-primary: #DB7D34;
  --bs-primary-rgb: 219,125,52;
  --bs-link-color: #DB7D34;
  --bs-link-hover-color: #c46c2c;
  --bs-light: #F0F2F5;
  --bs-light-rgb: 240,242,245;
}

.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
  background-color: #c46c2c !important;
  border-color: #c46c2c !important;
}

.btn-outline-primary {
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary) !important;
  color: var(--bs-white) !important;
}

.btn.btn-lg {
  font-size: 1rem;
}

a {
  color: var(--bs-primary);
}

a:hover {
  color: #c46c2c;
}

.dropdown-item.active, .dropdown-item:active {
  background-color: var(--bs-primary);
}

.card { 
  border: 1px solid rgba(0,0,0,.06); 
  border-radius: var(--le-radius); 
  overflow: hidden;
}



/* 

  //////////////////////

  HEADER STYLES

  //////////////////////// 

*/


/* Remove Bootstrap caret */
.navbar .dropdown-toggle::after {
  display: none;
}

/* Chevron styling */
.dropdown-chevron {
  font-size: 0.65rem;
  transform: translateY(-4px);  
  transition: transform 200ms ease;
  opacity: 0.7;
}

/* Rotate when open */
.navbar .dropdown.show > .nav-link .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

@media (min-width: 991.99px) { 
  .navbar-expand-lg .navbar-nav .dropdown-menu {
    background-color: var(--bs-secondary-bg-subtle);
    top: 150%;
    min-width: 230px;
  }
  .navbar .mobile-nav .btn-close {
    display: none;
  }
}


/* ===== Mobile fullscreen sliding menu (Bootstrap collapse) ===== */
@media (max-width: 991.98px) {
  .navbar .mobile-nav .btn-primary {
    width: 100%;
    margin-top: 1em;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 12px;
  }

  .dropdown-chevron {
    font-size: 0.75rem;
  }

  .navbar .mobile-nav .btn-close {
    position: absolute;
    top: 2em;
    right: 2em;
    opacity: 1;
    padding: 10px;
    background-size: 16px;
    border-radius: 12px;
    z-index: 2000;
  }

  .navbar .mobile-nav .btn-close:hover {
    background-color: rgba(15, 23, 42, 0.06);
  }

  .navbar .mobile-nav .btn-close {
    transform: scale(0.9);
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .navbar .mobile-nav.show .btn-close {
    transform: scale(1);
  }

  /* Make the collapsed area behave like an overlay panel */
  .navbar .mobile-nav {
    position: fixed;
    inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
    z-index: 1050;            /* above navbar */
    background: rgba(15, 23, 42, 0.35); /* dim overlay */
    padding: 0;
    /* IMPORTANT: Bootstrap uses display:none when collapsed.
       We animate the inner panel instead of the container. */
  }

  /* The sliding panel */
  .navbar .mobile-nav::before {
    content: "";
    position: absolute;
    inset: 0;
  }

  .navbar .mobile-nav .navbar-nav {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(92vw, 420px);  /* panel width */
    background: #fff;
    padding: 88px 20px 24px;  /* room for navbar + spacing */
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    transform: translateX(100%);
    transition: transform 280ms ease;
    overflow: hidden;
  }

  /* When open, slide panel in */
  .navbar .mobile-nav.show .navbar-nav {
    transform: translateX(0);
  }

  /* Make links look more modern */
  .navbar .mobile-nav .nav-link {
    padding: 14px 14px;
    border-radius: 12px;
    font-weight: 600;
    color: #0f172a;
  }

  .navbar .mobile-nav .nav-link:hover,
  .navbar .mobile-nav .nav-link:focus {
    background: rgba(15, 23, 42, 0.06);
  }

  /* Dropdown menu styling in mobile panel */
  .navbar .mobile-nav .dropdown-menu {
    position: static;         /* keep inside panel */
    float: none;
    border: 0;
    padding: 6px 0 10px;
    margin: 0 0 10px;
    box-shadow: none;
    background: transparent;
  }

  .navbar .mobile-nav .dropdown-item {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 500;
  }

  .navbar .mobile-nav .dropdown-item:hover,
  .navbar .mobile-nav .dropdown-item:focus {
    background: rgba(15, 23, 42, 0.06);
  }

  /* Slight divider between sections (optional) */
  .navbar .mobile-nav .nav-item + .nav-item {
    margin-top: 4px;
  }

  /* Prevent body scroll when menu is open (we'll toggle with a tiny JS snippet) */
  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  /* Stop Bootstrap's height animation from creating the "expanding overlay" effect */
  .navbar .mobile-nav.collapsing {
    height: 100% !important;      /* override inline height animation */
    transition: none !important;   /* no height transition */
  }

  /* Ensure overlay is invisible/click-through when closed */
  .navbar .mobile-nav:not(.show) {
    pointer-events: none;
    background: transparent;
  }

  /* When open, overlay catches clicks and dims */
  .navbar .mobile-nav.show {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.35);
  }

  /* (optional) fade overlay smoothly without height animation */
  .navbar .mobile-nav {
    transition: background 180ms ease;
  }

  /* We’ll animate between two "views" inside the panel */
  .navbar .mobile-nav .nav-views {
    height: 100%;
    display: flex;
    width: 200%;
    transform: translateX(0);
    transition: transform 260ms ease;
  }

  .navbar .mobile-nav .nav-view {
    width: 50%;
    padding: 1.5em;
    overflow-y: hidden;
    overflow-y: auto;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar .mobile-nav .nav-view.nav-view-top {
    overflow-y: hidden;
  }

  /* When submenu open, slide the container left to reveal submenu */
  .navbar .mobile-nav.is-submenu .nav-views {
    transform: translateX(-50%);
  }

  /* Back row styling */
  .navbar .mobile-nav .submenu-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    border: 0;
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
  }

  .navbar .mobile-nav .submenu-title {
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
    margin: 4em 1em 1em;
  }

  /* Make submenu links match your mobile styling */
  .navbar .mobile-nav .submenu-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
  }

  .navbar .mobile-nav .submenu-list a:hover,
  .navbar .mobile-nav .submenu-list a:focus {
    background: rgba(15, 23, 42, 0.06);
  }

  /* Make the whole row a flex row so the icon can align right */
  .navbar .mobile-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Rotate the existing down chevron to point right + align it right */
  .navbar .mobile-nav .dropdown-toggle .dropdown-chevron {
    margin-left: auto;          /* pushes it to the far right */
    transform: rotate(-90deg);  /* down -> right */
    opacity: 0.7;
  }

}



/* 

  //////////////////////

  HOME SLIDER

  //////////////////////// 

*/


#home-gallery-carousel {
  height: 60vh;
}

#home-gallery-carousel .carousel-inner,
#home-gallery-carousel .carousel-item,
#home-gallery-carousel img {
  height: 100%;
}

#home-gallery-carousel img {
  object-fit: cover;
}

.custom-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.custom-caption h2 {
  font-size: 3.2rem;
  font-weight: 800;
}

.custom-caption p {
  font-size: 1.2rem;
  margin: 12px 0 30px;
}

.custom-caption .btn {
  padding: 12px 25px;
  font-size: 1rem;
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.custom-caption {
  z-index: 2;
}

@media (max-width: 991.98px) { 
  #home-gallery-carousel {
    min-height: calc(90vh - 116px);
  }
  .custom-caption {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
  .custom-caption h2 {
    font-size: 1.75rem;
  }
  .custom-caption p {
    font-size: 1rem;
  }
  .carousel-control-next, .carousel-control-prev {
    z-index: 3;
  }
}



/* 

  //////////////////////

  HOME CONTENT

  //////////////////////// 

*/

.section-pad{ padding: 5rem 0; }
.kicker{
  display:inline-block;
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:700;
  opacity:.8;
}

.lead-nice{ max-width: 62ch; margin-inline: auto; }

.card-modern{
  border: 1px solid var(--le-border);
  border-radius: var(--le-radius);
  box-shadow: var(--le-shadow);
  background: #fff;
}

.tile{
  transition: transform .2s ease, box-shadow .2s ease;
  overflow:hidden;
}
.tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.icon-pill{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(25,135,84,.12); /* bootstrap success tint */
}

.text-muted-2{ color: rgba(0,0,0,.62); }

.btn-arrow i{
  transition: transform .2s ease;
}
.btn-arrow:hover i{
  transform: translateX(3px);
}

.surface{ background: var(--le-surface); }

.quote{
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-band{
  border-radius: var(--le-radius);
  background: linear-gradient(135deg, rgba(25,135,84,.18), rgba(25,135,84,.06));
  border: 1px solid rgba(25,135,84,.18);
}

/* 

  //////////////////////

  FOOTER STYLES

  //////////////////////// 

*/

.footer-modern {
  background: #111;
  color: #fff;
}

.footer-modern a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-modern a:hover {
  color: var(--bs-primary);
}

.footer-text {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* Areas Served Strip */
.footer-areas {
  background: rgba(255, 255, 255, 0.2);
  padding: 14px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Lists */
.footer-list li {
  margin-bottom: 10px;
}

.footer-contact li {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.7);
}

footer i {
  color: var(--bs-primary);
  margin-top: 3px;
}

footer .fa-facebook {
  font-size: 24px;
}

/* Logos */
.footer-logos img {
  opacity: 0.85;
  width: 100%;
  min-width: 100px;
  max-width: 150px;
  height: auto;
  transition: 0.2s ease;
  padding: 0.5em 1em;
}

.footer-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}


/* 

  //////////////////////

  LANDING PAGE STYLES

  //////////////////////// 

*/

.hero-full {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
}

.hero-full.hero-small {
  height: auto;
}

.hero-full img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.7),
    rgba(2, 6, 23, 0.3),
    rgba(2, 6, 23, 0.0)
  );
}

.hero-content {
  padding: 60px 0 10px;
}

@media screen and (min-width:992px) {
  .hero-content {
    padding: 60px 0 40px;
  }
}

.hero-kicker {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0.4rem 0;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 55ch;
  color: rgba(255,255,255,0.85);
}

/* ========================= */
/* SMALLER PORTFOLIO CARDS */
/* ========================= */

.portfolio-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  display: block;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.portfolio-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.meta {
  padding: 14px;
}

.meta h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.meta p {
  font-size: 0.85rem;
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.7);
}


/* 

  //////////////////////

  IMAGE GALLERY 

  //////////////////////// 

*/


/* Masonry using CSS columns */
.masonry {
  column-count: 2;
  column-gap: 1rem;
}
@media (min-width: 768px) {
  .masonry { column-count: 3; }
}
@media (min-width: 992px) {
  .masonry { column-count: 4; }
}

.masonry a.gallery-item {
  display: inline-block;   /* required for columns */
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;     /* stop awkward breaks */
  text-decoration: none;
}

/* Hover zoom effect */
.masonry a.gallery-item {
  overflow: hidden;              /* keeps zoomed image inside rounded corners */
  border-radius: 0.5rem;         /* matches Bootstrap rounded */
}

.masonry a.gallery-item img.thumb {
  transition: transform 0.25s ease, filter 0.25s ease;
  transform: scale(1);
}

.masonry a.gallery-item:hover img.thumb {
  transform: scale(1.06);
  filter: brightness(1.02);
}

/* Optional: subtle lift */
.masonry a.gallery-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.masonry a.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* hide filtered items */
.gallery-item[hidden] { display: none !important; }

.masonry img.thumb {
  width: 100%;
  height: auto;
  display: block;
}



/* 

  //////////////////////

  BEFORE AND AFTER IMAGES

  //////////////////////// 

*/

.ba-compare{
  position: relative;
  height: clamp(240px, 36vw, 360px);
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

#projects .ba-compare { 
  height: clamp(240px, 50vw, 500px);
}

.ba-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.ba-after{
  position: absolute;
  inset: 0;
  left: auto;
  right: 0;
  width: 50%;
  overflow: hidden;
}

.ba-range{
  position: absolute;
  inset: auto 16px 16px 16px;
  width: calc(100% - 32px);
  height: 44px;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.ba-handle{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,.95);
  z-index: 4;
}

.ba-handle::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

.ba-handle::after{
  content: "↔";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  color: #111;
  opacity: .8;
}

.ba-label{
  position: absolute;
  top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  z-index: 3;
}

.ba-label-start{ left: 14px; }
.ba-label-end{ right: 14px; }


/* ================================
   Desktop mega dropdown menus
================================ */

@media (min-width: 992px) {
  .navbar .mega-menu {
    width: min(700px, calc(100vw - 2rem));
    padding: 1rem;
    columns: 3;
    column-gap: 1rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .navbar .mega-menu li {
    break-inside: avoid;
  }

  .navbar .mega-menu .dropdown-item {
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    white-space: normal;
    line-height: 1.25;
  }

  .navbar .mega-menu .dropdown-item:hover,
  .navbar .mega-menu .dropdown-item:focus {
    background: rgba(15, 23, 42, 0.06);
  }

  .navbar .mega-menu .dropdown-item.bg-dark-subtle {
    margin-top: 0.5rem;
    font-weight: 700;
    break-before: avoid;
  }
}

@media (min-width: 1200px) {
  .navbar .mega-menu {
    width: min(880px, calc(100vw - 2rem));
  }
}

@media (min-width: 1400px) {
  .navbar .mega-menu {
    width: min(1060px, calc(100vw - 2rem));
  }
}

/* Keep normal mobile dropdown behavior */
@media (max-width: 991.98px) {
  .navbar .mega-menu {
    width: auto;
    columns: auto;
    max-height: none;
    overflow: visible;
  }
}