/* =========================================================
   Excellence Renovation — Design Tokens
   Palette:  --er-amber (brand/CTA), --er-charcoal (nav/footer/dark bg),
             --er-cream (section bg), --er-slate (body text), --er-teal (secondary accent)
   Type:     Display -> "Fraunces" (serif, characterful, blueprint-meets-craft feel)
             Body/UI -> "Inter"
   ========================================================= */

:root {
  --er-amber: #2D6A4F;       /*  প্রিমিয়াম গ্রিন */
  --er-amber-dark: #40916C;  /* hover/darker shade */
  --er-charcoal: #1E2430;
  --er-charcoal-soft: #2B3242;
  --er-cream: #FAF6EF;
  --er-slate: #3D4451;
  --er-teal: #1B6E6E;
  --er-white: #FFFFFF;
  --er-radius: 6px;
  --er-shadow: 0 10px 30px rgba(30, 36, 48, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--er-slate);
  background: var(--er-white);
}

h1, h2, h3, .display-font {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--er-charcoal);
  color: #cfd3da;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar a { color: #cfd3da; }
.topbar a:hover { color: var(--er-amber); }
.topbar .social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.08); margin-left: 6px;
}
.topbar .social-icons a:hover { background: var(--er-amber); color: var(--er-charcoal); }

/* ---------- Navbar ---------- */
.er-navbar {
  background: var(--er-white);
  box-shadow: var(--er-shadow);
  padding: 14px 0;
}
.er-navbar .navbar-brand strong { color: var(--er-charcoal); font-family: 'Fraunces', serif; font-size: 1.35rem; }
.er-navbar .navbar-brand span { color: var(--er-amber); }
.er-navbar .nav-link {
  color: var(--er-slate); font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
}
.er-navbar .nav-link:hover, .er-navbar .nav-link.active { color: var(--er-amber-dark); }
.er-navbar .btn-quote {
  background: var(--er-amber); color: var(--er-charcoal); font-weight: 700;
  border-radius: var(--er-radius); padding: 0.55rem 1.4rem; border: none;
}
.er-navbar .btn-quote:hover { background: var(--er-amber-dark); color: var(--er-white); }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; }
.hero-slide {
  height: 78vh; min-height: 480px;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,36,48,0.72) 0%, rgba(30,36,48,0.35) 55%, rgba(30,36,48,0.15) 100%);
  z-index: 1;
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide .eyebrow {
  color: var(--er-amber); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.85rem;
}
.hero-slide h1 {
  color: var(--er-white); font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: 640px; line-height: 1.15; margin: 0.6rem 0 1rem;
}
.hero-slide p.lead-text { color: #e7e9ee; max-width: 520px; font-size: 1.05rem; }
.hero-slide .hero-cta { margin-top: 1.6rem; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-amber {
  background: var(--er-amber); color: var(--er-charcoal); font-weight: 700;
  border-radius: 999px; padding: 0.75rem 1.8rem; border: 2px solid var(--er-amber);
  transition: all .2s ease;
}
.btn-amber:hover { background: transparent; color: var(--er-white); }
.btn-outline-ghost {
  background: transparent; color: var(--er-white); font-weight: 700;
  border-radius: 999px; padding: 0.75rem 1.8rem; border: 2px solid rgba(255,255,255,0.6);
  transition: all .2s ease;
}
.btn-outline-ghost:hover { background: var(--er-white); color: var(--er-charcoal); border-color: var(--er-white); }

/* ---------- Tagline strip ---------- */
.tagline-strip {
  background: var(--er-charcoal); color: var(--er-white);
  padding: 26px 0; text-align: center;
}
.tagline-strip h2 { font-size: 1.35rem; margin: 0; font-weight: 600; }
.tagline-strip .btn-amber { margin-left: 16px; padding: 0.5rem 1.4rem; font-size: 0.9rem; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section-cream { background: var(--er-cream); }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title .eyebrow {
  color: var(--er-amber-dark); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.82rem;
}
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--er-charcoal); margin-top: 6px; }
.section-title .rule {
  width: 56px; height: 3px; background: var(--er-amber); margin: 18px auto 0; border-radius: 3px;
}

/* ---------- Services offer cards ---------- */
.offer-card {
  background: var(--er-white); border-radius: var(--er-radius); overflow: hidden;
  box-shadow: var(--er-shadow); height: 100%; transition: transform .25s ease;
}
.offer-card:hover { transform: translateY(-6px); }
.offer-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.offer-card .offer-body { padding: 26px 24px 30px; }
.offer-card h3 { font-size: 1.2rem; color: var(--er-charcoal); }
.offer-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.offer-card ul li {
  padding: 7px 0; border-bottom: 1px dashed #e6e1d6; color: var(--er-slate); font-size: 0.93rem;
}
.offer-card ul li i { color: var(--er-amber-dark); margin-right: 8px; width: 16px; text-align: center; }

/* ---------- Projects grid ---------- */
.project-filter { text-align: center; margin-bottom: 34px; }
.project-filter button {
  background: transparent; border: 1px solid #d8d2c4; color: var(--er-slate);
  padding: 8px 20px; border-radius: 999px; margin: 4px; font-weight: 600; font-size: 0.88rem;
}
.project-filter button.active, .project-filter button:hover {
  background: var(--er-charcoal); color: var(--er-white); border-color: var(--er-charcoal);
}
.project-card { position: relative; overflow: hidden; border-radius: var(--er-radius); aspect-ratio: 1/1; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover img { transform: scale(1.06); }
.project-card .project-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  color: var(--er-white); font-weight: 600; font-size: 0.95rem; max-width: 85%;
}
.project-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(30,36,48,0.85) 100%);
}

/* ---------- About tabs ---------- */
.about-media img { border-radius: var(--er-radius); box-shadow: var(--er-shadow); }
.nav-tabs.er-tabs { border: none; gap: 6px; margin-bottom: 20px; }
.nav-tabs.er-tabs .nav-link {
  border: none; border-radius: 999px; color: var(--er-slate); font-weight: 600;
  background: var(--er-cream); padding: 9px 20px;
}
.nav-tabs.er-tabs .nav-link.active { background: var(--er-amber); color: var(--er-charcoal); }

/* ---------- Testimonials ---------- */
.testimonial-section { background: var(--er-charcoal); color: var(--er-white); }
.testimonial-section .section-title h2 { color: var(--er-white); }
.testimonial-card {
  background: var(--er-charcoal-soft); border-radius: var(--er-radius);
  padding: 30px 28px; height: 100%;
}
.testimonial-card .stars { color: var(--er-amber); margin-bottom: 12px; }
.testimonial-card p.quote { color: #d7dae0; font-size: 0.98rem; min-height: 96px; }
.testimonial-card .who { margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; }
.testimonial-card .who strong { display: block; color: var(--er-white); }
.testimonial-card .who span { font-size: 0.85rem; color: #9aa0ab; }


/* ---------- Reviews (Google-style) ---------- */
.reviews-section { background: var(--er-white); }
 
.reviews-summary {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 44px; text-align: center;
}
.reviews-summary-badge {
  font-weight: 800; letter-spacing: .04em; color: var(--er-charcoal); font-size: 1.05rem;
}
.reviews-summary-stars { color: var(--er-amber); font-size: 1.3rem; line-height: 1; }
.reviews-summary-text { color: var(--er-slate); font-size: .95rem; }
.reviews-summary-google {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--er-slate); font-weight: 700; font-size: .95rem;
}
.reviews-summary-google i { color: #4285F4; }
 
.review-card {
  background: var(--er-cream); border-radius: var(--er-radius);
  padding: 24px; height: 100%; border: 1px solid transparent;
  transition: border-color .25s ease, transform .25s ease;
}
.review-card:hover { border-color: var(--er-amber); transform: translateY(-4px); }
 
.review-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; position: relative; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.review-avatar--initial {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.review-name {
  font-weight: 700; color: var(--er-charcoal); font-size: .98rem;
  display: flex; align-items: center; gap: 6px;
}
.review-verified { color: #4285F4; font-size: .85rem; }
.review-time { color: #8b909c; font-size: .8rem; }
.review-google-icon { margin-left: auto; color: #4285F4; font-size: 1.1rem; }
 
.review-stars { color: var(--er-amber); margin-bottom: 10px; font-size: 1rem; }
.review-text { color: var(--er-slate); font-size: .93rem; line-height: 1.6; margin-bottom: 4px; }
.review-read-more {
  background: none; border: none; padding: 0; color: var(--er-amber-dark);
  font-weight: 700; font-size: .88rem; cursor: pointer;
}
.review-read-more:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer.er-footer { background: var(--er-charcoal-soft); color: #c7cbd3; padding: 64px 0 0; }
footer.er-footer h5 { color: var(--er-white); font-weight: 700; margin-bottom: 18px; font-size: 1.02rem; }
footer.er-footer a { color: #c7cbd3; }
footer.er-footer a:hover { color: var(--er-amber); }
footer.er-footer ul { list-style: none; padding: 0; }
footer.er-footer ul li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 44px;
  padding: 20px 0; text-align: center; font-size: 0.85rem; color: #8b909c;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 9999;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25); color: #fff; font-size: 1.6rem;
}
.wa-float:hover { color: #fff; transform: scale(1.06); transition: transform .2s ease; }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible { outline: 3px solid var(--er-amber-dark); outline-offset: 2px; }

/* ---------- Navbar scrolled state ---------- */
.er-navbar { transition: box-shadow .25s ease, padding .25s ease; }
.er-navbar--scrolled { padding: 8px 0; box-shadow: 0 8px 24px rgba(30,36,48,0.16); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1.revealed { transition-delay: .1s; }
.reveal-delay-2.revealed { transition-delay: .2s; }
.reveal-delay-3.revealed { transition-delay: .3s; }

/* ---------- Stats / counters ---------- */
.stats-strip { background: var(--er-cream); padding: 46px 0; }
.stat-item { text-align: center; }
.stat-item .counter {
  font-family: 'Fraunces', serif; font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--er-amber-dark); font-weight: 700; display: block;
}
.stat-item .stat-label { color: var(--er-slate); font-weight: 600; font-size: 0.95rem; margin-top: 4px; }

/* ---------- Project card hidden state (for JS filter) ---------- */
.project-item.is-hidden { display: none; }
.project-card { cursor: zoom-in; }

/* ---------- Lightbox modal ---------- */
#lightboxModal .modal-content { background: transparent; border: none; }
#lightboxModal .modal-body { padding: 0; text-align: center; }
#lightboxModal img { max-height: 82vh; width: auto; max-width: 100%; border-radius: var(--er-radius); }
#lightboxModal .lightbox-caption { color: var(--er-white); margin-top: 14px; font-weight: 600; }
#lightboxModal .btn-close { filter: invert(1); position: absolute; top: -40px; right: 0; }

/* ---------- Back-to-top button ---------- */
.back-to-top {
  position: fixed; bottom: 22px; right: 92px; z-index: 9998;
  width: 46px; height: 46px; border-radius: 50%; background: var(--er-charcoal);
  color: var(--er-white); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--er-amber-dark); color: var(--er-charcoal); }

@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .hero-slide { height: auto; padding: 110px 0 70px; }
  .back-to-top { right: 22px; bottom: 88px; }
}

/* ---------- Hover accents: green touch on cards ---------- */
.offer-card {
  border-top: 3px solid transparent;
  transition: transform .25s ease, border-color .25s ease;
}
.offer-card:hover {
  border-top-color: var(--er-amber);
}

.category-chip {
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.category-chip:hover {
  background: var(--er-amber) !important;
  color: var(--er-white) !important;
  border-color: var(--er-amber) !important;
}

.testimonial-card {
  border: 1px solid transparent;
  transition: border-color .25s ease;
}
.testimonial-card:hover {
  border-color: var(--er-amber);
}

.project-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(45, 106, 79, 0.25); /* green tint overlay */
  opacity: 0;
  transition: opacity .3s ease;
}
.project-card:hover::before {
  opacity: 1;
}

/* ---------- Whole-page fade-in on load (pure CSS, no JS dependency) ---------- */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageFadeIn .5s ease forwards; }

/* ---------- Hero content: staggered entrance animation ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.carousel-item.active .hero-slide .eyebrow,
.carousel-item.active .hero-slide h1,
.carousel-item.active .hero-slide p.lead-text,
.carousel-item.active .hero-slide .hero-cta {
  opacity: 0;
  animation: heroFadeUp .7s ease forwards;
}
.carousel-item.active .hero-slide .eyebrow    { animation-delay: .10s; }
.carousel-item.active .hero-slide h1          { animation-delay: .25s; }
.carousel-item.active .hero-slide p.lead-text { animation-delay: .40s; }
.carousel-item.active .hero-slide .hero-cta   { animation-delay: .55s; }

/* ---------- Service card wrapped in <a>: only "View Details" looks like a link ---------- */
.offer-card-link { color: inherit; text-decoration: none; display: block; }
.offer-card-link h3,
.offer-card-link p,
.offer-card-link li {
  color: var(--er-slate);
}
.offer-card-link h3 { color: var(--er-charcoal); }
.offer-card-link .btn-read-more { color: var(--er-amber-dark); }