:root{
  --navy:#152840;
  --navy-soft:#1E3A5A;
  --red:#B8283F;
  --red-light:#D14459;
  --star-gold:#B8862F;
  --star-gold-light:#D4A24D;
}
body{font-family:'Inter',sans-serif;}
h1,h2,h3,.font-display{font-family:'Plus Jakarta Sans',sans-serif;}
.bg-navy{background-color:var(--navy);}
.bg-navy-soft{background-color:var(--navy-soft);}
.text-navy{color:var(--navy);}
.bg-red{background-color:var(--red);}
.text-red{color:var(--red);}
.text-red-light{color:var(--red-light);}
.bg-red-light{background-color:var(--red-light);}
.border-red{border-color:var(--red);}
.hover\:bg-red-light:hover{background-color:var(--red-light);}
.hover\:text-red:hover{color:var(--red);}
.hover\:text-red-light:hover{color:var(--red-light);}
.hover\:border-red:hover{border-color:var(--red);}
.hover\:border-navy:hover{border-color:var(--navy);}
.text-star-gold{color:var(--star-gold);}
html{scroll-behavior:smooth;}

.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s ease;}
.reveal.in-view{opacity:1;transform:none;}

/* Hero background: soft blur + fade so the photo recedes behind the text and card */
.hero-bg-img{
  filter:brightness(0.96);
  transform:scale(1.03);
}
.hero-bg-overlay{
  background:linear-gradient(0deg, rgba(15,25,40,0.88) 0%, rgba(15,25,40,0.45) 40%, rgba(15,25,40,0.15) 65%, rgba(15,25,40,0.05) 100%);
}
.hero-fade-bottom{
  position:absolute;
  left:0; right:0; bottom:0; height:90px;
  background:linear-gradient(180deg, rgba(21,40,64,0) 0%, rgba(21,40,64,0.95) 100%);
  pointer-events:none;
}

.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease;}
.faq-item.open .faq-a{max-height:240px;}
.faq-item.open .faq-plus{transform:rotate(45deg);}
.faq-plus{transition:transform .25s ease;display:inline-block;}

.stat-item:not(:last-child){border-right:1px solid #E3E8EF;}
@media (max-width:768px){
  .stat-item{border-right:none !important;border-bottom:1px solid #E3E8EF;}
}

.service-card{transition:transform .2s ease, box-shadow .2s ease;}
.service-card:hover{transform:translateY(-6px);box-shadow:0 20px 40px -20px rgba(21,40,64,0.25);}

.checklist-check{flex-shrink:0;margin-top:2px;}

#mobileMenu{display:none;max-height:calc(100vh - 110px);overflow-y:auto;}
#mobileMenu.open{display:block;}

/* About page: growth timeline */
.timeline{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  position:relative;
}
.timeline-item{
  position:relative;
  padding-left:34px;
  border-left:2px solid #E3E8EF;
  padding-bottom:4px;
}
.timeline-item:last-child{ border-left:2px solid transparent; }
.timeline-dot{
  position:absolute;
  left:-7px; top:2px;
  width:12px; height:12px;
  border-radius:50%;
  background:var(--navy);
  border:3px solid #fff;
  box-shadow:0 0 0 2px #E3E8EF;
}
.timeline-dot-red{
  background:var(--red);
  box-shadow:0 0 0 2px var(--red);
}
.timeline-year{
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:700;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--red);
  margin-bottom:8px;
}
@media (min-width:768px){
  .timeline{
    grid-template-columns:repeat(4,1fr);
    gap:24px;
  }
  .timeline-item{
    border-left:none;
    border-top:2px solid #E3E8EF;
    padding-left:0;
    padding-top:26px;
  }
  .timeline-item:last-child{ border-top:2px solid #E3E8EF; }
  .timeline-dot{
    left:0; top:-7px;
  }
}

/* Hero background slideshow: crossfading photos behind fixed headline/form.
   Scoped to .hero-bg-slideshow so the plain single-image hero on other
   pages (which reuses .hero-bg-img) is unaffected. */
.hero-bg-slideshow{
  position:relative;
  width:100%;
  overflow:hidden;
  background-color:var(--navy);
}
.hero-bg-slideshow .hero-bg-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1.8s ease;
}
.hero-bg-slideshow .hero-bg-img.active{ opacity:1; }

/* Hero photo heights -- real CSS classes, since the static Tailwind
   build (no JIT) doesn't support arbitrary-value classes like h-[320px] */
.hero-photo-xl{ height:560px; }
@media (min-width:768px){ .hero-photo-xl{ height:640px; } }

.hero-photo-lg{ height:400px; }
@media (min-width:768px){ .hero-photo-lg{ height:480px; } }

.hero-photo-md{ height:340px; }
@media (min-width:768px){ .hero-photo-md{ height:420px; } }

.hero-photo-sm{ height:300px; }
@media (min-width:768px){ .hero-photo-sm{ height:380px; } }

.aspect-4-5{ aspect-ratio:4/5; }
.aspect-4-3{ aspect-ratio:4/3; }
.aspect-16-9{ aspect-ratio:16/9; }

/* Testimonials: horizontal auto-scrolling strip with arrow controls */
.testimonial-track{
  display:flex;
  gap:20px;
  overflow-x:auto;
  padding-bottom:4px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.testimonial-track::-webkit-scrollbar{display:none;}
.testimonial-card{
  flex:0 0 auto;
  width:320px;
}
@media (min-width:768px){
  .testimonial-card{width:380px;}
}

/* Gallery: masonry-style columns so mixed portrait/landscape photos
   keep their natural aspect ratio instead of being cropped uniformly */
.masonry-grid{
  column-count:1;
  column-gap:20px;
}
@media (min-width:640px){ .masonry-grid{ column-count:2; } }
@media (min-width:1024px){ .masonry-grid{ column-count:4; } }
.masonry-item{
  break-inside:avoid;
  margin-bottom:20px;
  display:inline-block;
  width:100%;
}
.masonry-item img{
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:cover;
  display:block;
}

/* Lead form submission feedback */
.lead-form-feedback{
  font-size:13px;
  font-weight:600;
  margin-top:10px;
  padding:10px 12px;
  border-radius:8px;
}
.lead-form-success{
  color:#166534;
  background:#F0FDF4;
  border:1px solid #BBF7D0;
}
.lead-form-error{
  color:#991B1B;
  background:#FEF2F2;
  border:1px solid #FECACA;
}

/* Per-category nav dropdowns: each service sits directly in the nav bar
   with its own small dropdown, instead of one bundled "Services" menu. */
.nav-dropdown-wrapper{ position:relative; }
.nav-dropdown{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  width:220px;
  background:#fff;
  border:1px solid #E3E8EF;
  border-radius:12px;
  box-shadow:0 20px 50px -18px rgba(21,40,64,0.3);
  padding:14px;
  display:none;
  flex-direction:column;
  z-index:60;
}
.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper.open .nav-dropdown{ display:flex; }
.nav-dropdown a{
  display:block;
  font-size:13px;
  font-weight:500;
  color:#5C6B7C;
  padding:7px 10px;
  border-radius:7px;
  line-height:1.3;
}
.nav-dropdown a:hover{ color:var(--red); background:#FAFAFA; }
.nav-dropdown a.nav-dropdown-all{
  font-weight:700;
  color:var(--red);
  margin-top:4px;
  border-top:1px solid #E3E8EF;
  padding-top:10px;
}
.nav-dropdown-wrapper .chevron{
  display:inline-block;
  transition:transform .2s ease;
}
.nav-dropdown-wrapper:hover .chevron,
.nav-dropdown-wrapper.open .chevron{ transform:rotate(180deg); }

/* Mobile menu: accordion groups. Panels start closed; includes.js toggles them. */
.mobile-nav-group{ border-bottom:1px solid #E3E8EF; }
.mobile-nav-group-label{
  display:flex; align-items:center; justify-content:space-between;
  width:100%; background:none; border:0; cursor:pointer; text-align:left;
  font-family:'Plus Jakarta Sans',sans-serif;
  font-weight:700; font-size:13px;
  text-transform:uppercase; letter-spacing:.03em;
  color:var(--navy);
  padding:14px 0;
}
.mobile-nav-group .chevron{ font-size:20px; transition:transform .2s ease; }
.mobile-nav-group.open .chevron{ transform:rotate(180deg); }
.mobile-nav-group.open .mobile-nav-group-label{ color:var(--red); }
.mobile-nav-links{ display:none; padding:0 0 10px; }
.mobile-nav-links a{
  display:block;
  font-size:13.5px;
  font-weight:500;
  color:#5C6B7C;
  padding:7px 0 7px 10px;
}
.mobile-nav-group .mobile-nav-links a.mobile-nav-all{ font-weight:700; color:var(--red); }

/* Homepage recent-work teaser: smooth fade when photos rotate */
.gallery-teaser-tile img{
  transition:opacity .4s ease, transform .3s ease;
}

/* Gallery lightbox */
.lightbox{
  display:none;
  position:fixed; inset:0; z-index:100;
  background:rgba(15,25,40,0.96);
  align-items:center; justify-content:center;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width:88vw; max-height:85vh;
  border-radius:8px;
  box-shadow:0 30px 60px rgba(0,0,0,0.5);
}
.lightbox-close{
  position:absolute; top:20px; right:28px;
  color:#fff; font-size:36px; line-height:1; background:none; border:none; cursor:pointer;
  opacity:0.8; transition:opacity .2s ease;
}
.lightbox-close:hover{ opacity:1; }
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  color:#fff; font-size:44px; line-height:1; background:none; border:none; cursor:pointer;
  opacity:0.7; transition:opacity .2s ease;
  padding:10px 16px;
}
.lightbox-nav:hover{ opacity:1; }
.lightbox-prev{ left:8px; }
.lightbox-next{ right:8px; }

/* ===== Chat assistant (built in includes.js) ===== */
.chat-launcher{
  position:fixed; right:20px; bottom:20px; z-index:90;
  width:60px; height:60px; border-radius:50%;
  background:var(--red); color:#fff; border:0; cursor:pointer;
  font-size:30px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 3px #fff, 0 14px 30px -10px rgba(21,40,64,0.55);
  transition:transform .2s ease, background-color .2s ease;
}
.chat-launcher:hover{ background:var(--red-light); transform:scale(1.06); }
.chat-launcher-open{ background:var(--navy); }
.chat-launcher-open:hover{ background:var(--navy-soft); }

.chat-panel{
  position:fixed; right:20px; bottom:92px; z-index:95;
  width:370px; max-width:calc(100vw - 24px);
  height:540px; max-height:calc(100vh - 120px);
  background:#fff; border-radius:16px; overflow:hidden;
  box-shadow:0 30px 70px -20px rgba(21,40,64,0.5);
  display:none; flex-direction:column;
}
.chat-panel.open{ display:flex; }
@media (max-width:480px){
  .chat-panel{ left:12px; right:12px; width:auto; bottom:88px; }
}
.chat-head{
  background:var(--navy); color:#fff;
  padding:14px 16px; display:flex; align-items:center; justify-content:space-between;
}
.chat-head-title{ font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:15px; }
.chat-head-sub{ font-size:12px; opacity:.75; margin-top:2px; }
.chat-close{ background:none; border:0; color:#fff; font-size:26px; cursor:pointer; opacity:.8; line-height:1; }
.chat-close:hover{ opacity:1; }
.chat-body{ flex:1; overflow-y:auto; padding:16px; background:#F7F8FA; }

.chat-msg{
  max-width:90%; margin-bottom:10px; padding:10px 13px;
  border-radius:14px; font-size:14px; line-height:1.45;
}
.chat-msg-bot{ background:#fff; color:var(--navy); border:1px solid #E3E8EF; border-top-left-radius:4px; }
.chat-msg-user{ background:var(--navy); color:#fff; margin-left:auto; border-top-right-radius:4px; }
.chat-link{ display:block; margin-top:8px; color:var(--red); font-weight:700; font-size:13px; }
.chat-link:hover{ color:var(--red-light); }

.chat-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 10px; }
.chat-chip{
  display:inline-block; border:1px solid #CBD5E1; background:#fff; color:var(--navy);
  border-radius:999px; padding:7px 13px; font-size:13px; font-weight:600;
  cursor:pointer; transition:border-color .15s ease, color .15s ease, background-color .15s ease;
}
.chat-chip:hover{ border-color:var(--red); color:var(--red); }
.chat-chip-primary{ background:var(--red); border-color:var(--red); color:#fff; }
.chat-chip-primary:hover{ background:var(--red-light); border-color:var(--red-light); color:#fff; }

.chat-foot{
  border-top:1px solid #E3E8EF; padding:10px 16px; background:#fff;
  display:flex; gap:20px; font-size:13px; font-weight:600;
}
.chat-foot a{ display:flex; align-items:center; gap:5px; color:var(--navy); }
.chat-foot a:hover{ color:var(--red); }

.chat-form-wrap{ max-width:100%; width:100%; }
.chat-form{ margin-top:10px; }
.chat-form input[type="text"], .chat-form input[type="tel"], .chat-form select, .chat-form textarea{
  width:100%; border:1px solid #E3E8EF; border-radius:8px; background:#fff;
  padding:9px 11px; font-size:14px; margin-bottom:8px; color:var(--navy);
}
.chat-form input:focus, .chat-form select:focus, .chat-form textarea:focus{ outline:none; border-color:var(--red); }
.chat-form button[type="submit"]{
  width:100%; background:var(--red); color:#fff; font-weight:700; font-size:14px;
  border:0; border-radius:8px; padding:11px 14px; cursor:pointer; transition:background-color .15s ease;
}
.chat-form button[type="submit"]:hover{ background:var(--red-light); }
.chat-hp{ display:none; }

.chat-typing{ display:flex; gap:4px; width:56px; }
.chat-typing span{
  width:7px; height:7px; border-radius:50%; background:#9AA7B8;
  animation:chatDot 1s infinite ease-in-out;
}
.chat-typing span:nth-child(2){ animation-delay:.15s; }
.chat-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes chatDot{ 0%,80%,100%{ opacity:.3; } 40%{ opacity:1; } }
@media (prefers-reduced-motion:reduce){ .chat-typing span{ animation:none; } .chat-launcher{ transition:none; } }

/* While a live (Tawk.to) conversation exists its bubble stays visible, so ours moves up above it. */
.chat-tawk-on .chat-launcher{ bottom:96px; }
.chat-tawk-on .chat-panel{ bottom:168px; max-height:calc(100vh - 190px); }
@media (max-width:480px){ .chat-tawk-on .chat-panel{ bottom:164px; } }

/* States used in markup that previously had no rule (QA pass) */
.focus\:border-red:focus{border-color:var(--red);}
.hover\:bg-navy-soft:hover{background-color:var(--navy-soft);}
.hover\:border-red-light:hover{border-color:var(--red-light);}

.chat-foot-menu{
  margin-left:auto; background:none; border:0; cursor:pointer;
  display:flex; align-items:center; gap:5px;
  font-size:13px; font-weight:600; color:var(--navy);
}
.chat-foot-menu:hover{ color:var(--red); }