:root{
  --gold: #d4af37;
  --gold-dark: #b58f2a;
  --muted-gray: #f5f5f6;
  --text: #111;
  --overlay-dark: rgba(0,0,0,0.35);
  --card-shadow: 0 10px 30px rgba(12,12,12,0.06);
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color:var(--text);
  margin:0;
  background:#fff;
}

/* ==========================
   NAVBAR (overlay on hero)
   ========================== */
.navbar{
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 38px rgba(0,0,0,0.24), inset 0 0 16px rgba(255,255,255,0.05);
  max-width: 1160px;
  width: 88vw;
  transition: all .28s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
.navbar-brand img{ height:56px; object-fit:contain; }

/* Scrolled state (JS toggles .scrolled) */
/*.navbar.scrolled{
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
*/
/* Nav links: default (over hero) / scrolled / hover */
.navbar:not(.scrolled) .nav-link{
  color:#fff;
  font-weight:700;
  padding:.35rem .55rem;
  transition: background-color .18s ease, color .18s ease, transform .12s ease;
}
.navbar.scrolled .nav-link{
  color:#111;
  font-weight:700;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus{
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color:#000 !important;
  font-weight:800;
  border-radius:8px;
  padding:.4rem .6rem;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212,175,55,0.12);
}
.navbar .btn-gold{
  transition: transform .16s ease, box-shadow .16s ease;
}
.navbar .btn-gold:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212,175,55,0.14);
  color:#000;
}

/* Mobile collapsed links */
.navbar .navbar-collapse .nav-link{
  display:block;
  width:100%;
  padding:.6rem 1rem;
}

/* ==========================
   HERO / VIDEO CAROUSEL
   ========================== */
.hero-wrap{
  position: relative;
  overflow: hidden;
  background: transparent;
  margin: 0;
  padding: 0;
}

/* top-right decorative corner (transparent by default) */
.hero-shape-corner{
  position:absolute;
  top:0; right:0;
  width:28vw; height:28vw;
  max-width:360px; max-height:360px;
  transform: skewX(-18deg) translate(15%, -15%);
  transform-origin: top right;
  z-index:3;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  background: transparent;
}

/* carousel sizing */
.carousel, .carousel-item{
  height: 92vh;
  min-height: 420px;
  margin: 0;
  padding: 0;
}
.carousel-item{ position: relative; overflow: hidden; }
.carousel-item video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;
}

/* overlay to help caption contrast */
.slide-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(255,255,255,0.6) 65%);
  z-index:2;
}

/* caption/slanted golden panel */
.cntsc-sld{
  position:absolute;
  left:3.5%;
  top:48%;
  transform: translateY(-50%) skewX(-8deg);
  z-index:4;
  max-width:72%;
  padding:1rem 1.4rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(255,255,255,0.6) 65%);
  border-radius:12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
/*.cntsc-sld .cntsc-inner{ transform: skewX(8deg); color:#111; }*/
.cntsc-sld .gold-hero{ color:var(black); display:block; font-weight:900; }
.cntsc-sld h2{ margin:.25rem 0 .5rem; font-weight:700; color:#111; }
.cntsc-sld p.lead{ color: rgba(0,0,0,0.65); }

/* small meta on right */
.slide-meta{
  position:absolute; right:2.5%; top:50%; transform:translateY(-50%);
  z-index:4; color:#fff; display:flex; flex-direction:column; align-items:flex-end; gap:.6rem;
}
.slide-meta .project-name{ font-weight:700; font-size:1.05rem; text-shadow:0 2px 8px rgba(0,0,0,0.4); }
.slide-meta .counter{ background:rgba(0,0,0,0.45); padding:.4rem .7rem; border-radius:8px; font-weight:700; }

/* carousel controls & indicators */
.carousel-control-prev-icon, .carousel-control-next-icon{
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
  background-color: rgba(0,0,0,0.45);
  border-radius:50%;
  width:46px; height:46px; background-size:18px 18px;
}
.carousel-indicators [data-bs-target]{ width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.7); border:none; }
.carousel-indicators .active{ background:var(--gold); box-shadow: 0 2px 10px rgba(212,175,55,0.25); }

/* responsive hero adjustments */
@media (max-width: 992px){
  .hero-shape-corner{ width:40vw; height:40vw; transform: skewX(-18deg) translate(10%, -10%); }
  .cntsc-sld{ left:5%; top:48%; max-width:86%; transform: translateY(-50%) skewX(-6deg); }
  .slide-meta{ right:3%; top:auto; bottom:12%; transform:translateY(0); align-items:flex-start; color:#111; }
  .carousel, .carousel-item{ height:72vh; min-height:420px; }
}
@media (max-width:576px){
  .cntsc-sld h2{ font-size:1.4rem; }
  .gold-hero{ font-size:2rem; }
  .carousel-indicators{ bottom:6px; }
  .carousel-control-prev-icon, .carousel-control-next-icon{ width:40px; height:40px; }
  .carousel, .carousel-item{ height:78vh; min-height:460px; }
}

/* ==========================
   HERO ENHANCEMENTS (title/shimmer)
   ========================== */
.hero-title{ position:relative; z-index:3; margin:0; line-height:1.02; }
.gold-headline{
  color:var(--gold);
  font-weight:900;
  letter-spacing:.6px;
  display:inline-block;
  text-transform:uppercase;
  font-size: clamp(1.8rem, 5.5vw, 4.6rem);
  -webkit-text-stroke: .4px rgba(0,0,0,0.06);
  text-shadow: 0 6px 0 rgba(0,0,0,0.06), 0 6px 24px rgba(212,175,55,0.08);
  padding-right:6px;
  background: linear-gradient(90deg, rgba(212,175,55,0.12), rgba(255,255,255,0));
  border-radius:6px;
}
@keyframes shimmer { 0%{background-position:-120% 0} 100%{background-position:220% 0} }
.shimmer{
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
  background-repeat:no-repeat;
  background-size:220% 100%;
  animation: shimmer 2.4s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: unset;
}
.hero-subline{ font-weight:700; color:#222; font-size: clamp(1rem, 2.2vw, 1.2rem); }
.hero-sub{ color: rgba(0,0,0,0.6); max-width:72%; }

/* decorative accent */
.hero-gold-accent{
  position:absolute; left:-8%; bottom:-6%; width:40%; height:36%;
  background: linear-gradient(135deg, rgba(212,175,55,0.16), rgba(212,175,55,0.06));
  transform: skewX(-14deg); border-radius:10px; z-index:1; filter: blur(6px); pointer-events:none;
}
@media (max-width:992px){ .hero-gold-accent{ display:none } }
@media (max-width:576px){ .gold-headline{ font-size:2.2rem } .hero-sub{ font-size:.95rem } .hero-card{ display:none } }

/* CTA button */
.btn-gold{
  background: linear-gradient(90deg,var(--gold),var(--gold-dark));
  color:#fff;
  border:none;
  padding:.6rem 1rem;
  border-radius:8px;
  font-weight:700;
  box-shadow: 0 8px 22px rgba(212,175,55,0.12);
  transition: transform .18s ease, box-shadow .18s ease, color .18s;
}
.btn-gold:hover{ transform: translateY(-4px); box-shadow: 0 18px 48px rgba(212,175,55,0.14); color:#000; }

/* ==========================
   REVEAL / SCROLL ANIMATIONS
   ========================== */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform: translateY(0); }
.hero-title.reveal{ transition-duration:.9s; transition-timing-function:cubic-bezier(.2,.9,.3,1); }
.gold-headline.reveal{ transition-duration:1s; transition-delay:.08s; }
.hero-subline.reveal{ transition-duration:.85s; transition-delay:.12s; }
.hero-sub.reveal{ transition-duration:.8s; transition-delay:.18s; }

/* ==========================
   OUR PROJECTS / SERVICE CARDS
   ========================== */
.section{ padding:2.6rem 0; }
#our-projects .proj-media,
.service-card .service-media{
  position:relative; overflow:hidden; border-radius:12px; background:#000;
}
#our-projects .proj-media{ height:240px; box-shadow: 0 12px 34px rgba(0,0,0,0.08); }
#our-projects .proj-media img,
.service-card .service-media img{ width:100%; height:100%; object-fit:cover; transition: transform .8s ease; display:block; }

/* project overlay & title */
#our-projects .proj-overlay{
  position:absolute; inset:0; display:flex; align-items:flex-end; padding:1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.22));
  opacity:0; transition: opacity .45s ease, background .45s ease;
}
#our-projects .proj-media:hover img{ transform: scale(1.08); }
#our-projects .proj-media:hover .proj-overlay{ opacity:1; background: linear-gradient(180deg, rgba(0,0,0,0.06) 10%, rgba(0,0,0,0.34)); }
#our-projects .proj-title{
  color:#fff; font-weight:800; font-size:1.05rem; text-shadow:0 6px 16px rgba(0,0,0,0.5);
  background: linear-gradient(90deg, rgba(212,175,55,0.95), rgba(181,143,42,0.95));
  padding:.35rem .7rem; border-radius:8px;
  box-shadow: 0 8px 26px rgba(212,175,55,0.12);
}

/* Service cards */
.service-card{
  background:#fff; border-radius:12px; overflow:hidden; box-shadow:var(--card-shadow);
  transition: transform .38s cubic-bezier(.2,.9,.3,1), box-shadow .38s; display:flex; flex-direction:column; height:100%;
}
.service-card .service-media{ height:200px; }
.service-card .service-media img{ transform:scale(1.06); transition: transform .9s ease; }
.service-card .shine{
  position:absolute; top:-40%; left:-40%; width:40%; height:180%;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.45), rgba(255,255,255,0));
  transform: rotate(25deg); opacity:0; transition: all .9s ease; pointer-events:none; filter: blur(8px);
}
.service-card:hover{ transform: translateY(-10px); box-shadow: 0 22px 48px rgba(12,12,12,0.12); }
.service-card:hover .service-media img{ transform: scale(1.12) translateY(-6px); }
.service-card:hover .shine{ left:120%; opacity:1; transition: all .9s cubic-bezier(.2,.8,.2,1); }
.service-card .service-body{ padding:1rem 1rem 1.2rem; }
.service-card .service-body h5::after{
  content:""; display:block; width:64px; height:6px; margin-top:.55rem; border-radius:6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark)); box-shadow:0 6px 18px rgba(212,175,55,0.14);
}

/* responsive adjustments */
@media (max-width:576px){
  #our-projects .proj-media, .service-card .service-media{ height:160px; }
}

/* ==========================
   ORGANIZATION CHART
   ========================== */
.org-wrap{ overflow-x:auto; padding:1rem 0; }
.org-row{ display:flex; gap:2rem; align-items:flex-start; justify-content:flex-start; padding:.6rem 0; }
.org-row.lower, .org-row.lower-2{ gap:1.2rem; margin-top:1.2rem; }

.org-node{ min-width:160px; text-align:center; transition: transform .32s ease, box-shadow .32s ease; position:relative; }
.org-node img{
  width:120px; height:120px; object-fit:cover; border-radius:50%;
  border:6px solid rgba(255,255,255,0.06); box-shadow:0 8px 34px rgba(0,0,0,0.08);
  transition: transform .32s ease, filter .32s ease;
}
.org-node .role{ margin-top:.6rem; font-weight:700; color:#222; font-size:.95rem; }

.org-node:hover{ transform: translateY(-8px) scale(1.02); z-index:6; }
.org-node:hover img{ transform: scale(1.05); filter: drop-shadow(0 14px 32px rgba(212,175,55,0.12)); border-color: rgba(212,175,55,0.18); }
.org-node.small img{ width:96px; height:96px; } .org-node.tiny img{ width:80px; height:80px; }

@media (max-width:768px){
  .org-row{ gap:1rem; } .org-node{ min-width:120px; } .org-node img{ width:84px; height:84px; }
}

/* chart visual line */
.org-wrap::before{ content:""; display:block; height:1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent); margin:0 0 12px 0; }

/* ==========================
   Projects / General
   ========================== */
.section{ padding:2.6rem 0; }
.card-project{ border:none; border-radius:.75rem; overflow:hidden; box-shadow:var(--card-shadow); }
.project-img{ height:180px; object-fit:cover; width:100%; display:block; }

/* Footer */
.site-footer{ background:#f8f8f8; padding:2rem 0; color:#555; font-size:.95rem; }

/* Utility: small reveal helper for JS */
.hidden{ opacity:0; transform: translateY(8px); transition: opacity .6s, transform .6s; }
.visible{ opacity:1; transform: translateY(0); }

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}


/* ===== Footer: metallic gold gradient look (REPLACE previous footer rules) ===== */
.homestyler-footer {
  position: relative;
  background: linear-gradient(135deg, #b58f2a 0%, #d4af37 40%, #f6e8b0 100%);
  color: #ffffff;
  padding: 40px 0 22px;
  overflow: visible;
  box-shadow: inset 0 6px 30px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* soft metallic sheen strip */
.homestyler-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.03));
  opacity: 0.14;
  filter: blur(5px);
  pointer-events: none;
  z-index: 2;
}

/* subtle inner gloss */
.homestyler-footer::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
  pointer-events: none;
  z-index: 1;
}

/* container layout */
.homestyler-footer .footer-container { max-width:1200px; margin:0 auto; padding:0 1rem; z-index:3; }
.homestyler-footer .footer-top { display:flex; flex-wrap:wrap; gap:28px; align-items:flex-start; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom:20px; }

/* columns */
.homestyler-footer .footer-column { flex:1 1 220px; min-width:200px; max-width:320px; }

/* company info */
.homestyler-footer .company-info { display:flex; flex-direction:column; align-items:flex-start; }
.homestyler-footer .footer-logo { width:150px; margin-bottom:12px; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45)); }

/* headings & text (white) */
.homestyler-footer h3,
.homestyler-footer .footer-company-name {
  color: #ffffff;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: .4px;
}
.homestyler-footer p,
.homestyler-footer ul,
.homestyler-footer li {
  color: rgba(255,255,255,0.92);
  margin: 0 0 8px 0;
  font-size: .98rem;
}

/* links: white (and subtle gold hover) */
.homestyler-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color .16s ease, transform .12s ease;
}
.homestyler-footer a:hover {
  color: #fff;
  transform: translateY(-2px);
  text-decoration: underline;
}

/* CTA button style in footer (gold metallic button with white text) */
.homestyler-footer a.footer-cta {
  display:inline-block;
  padding: .5rem .85rem;
  border-radius: 8px;
  font-weight:700;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(212,175,55,1), rgba(181,143,42,1));
  box-shadow: 0 10px 30px rgba(181,143,42,0.12), inset 0 1px rgba(255,255,255,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform .14s ease, box-shadow .14s ease;
}
.homestyler-footer a.footer-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(181,143,42,0.18);
}

/* social icons: white by default, gold hover circle */
.homestyler-footer .footer-social { margin-top:8px; display:flex; gap:12px; align-items:center; }
.homestyler-footer .footer-social a { color: #ffffff; font-size:1.15rem; display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; transition: all .18s ease; }
.homestyler-footer .footer-social a:hover {
  color: #111;
  background: linear-gradient(90deg, rgba(212,175,55,1), rgba(181,143,42,1));
  transform: translateY(-3px);
}

/* footer-bottom */
.homestyler-footer .footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:14px; color: rgba(255,255,255,0.9); }

/* mobile quick actions: visible only on small screens */
.mobile-footer { display:flex !important; justify-content:space-around; align-items:center; gap:6px; position:fixed; left:0; bottom:0; width:100vw; z-index:1040; background: linear-gradient(90deg, rgba(181,143,42,0.98), rgba(212,175,55,0.98)); padding:8px 6px; box-shadow: 0 -2px 12px rgba(0,0,0,0.12); }
.mobile-footer .footer-btn { color:#fff; border:none; background:transparent; display:flex; flex-direction:column; align-items:center; gap:4px; font-weight:600; }
.mobile-footer .footer-btn i { color:#fff; font-size:1.1rem; }
@media (min-width: 768px){ .mobile-footer { display:none !important; } }

/* responsive adjustments */
@media (max-width:991px){
  .homestyler-footer .footer-top { gap:18px; }
  .homestyler-footer .footer-column { flex:1 1 100%; max-width:100%; }
  .homestyler-footer .footer-bottom { flex-direction:column; gap:6px; align-items:flex-start; }
}

/* accessibility focus */
.homestyler-footer a:focus { outline: 3px solid rgba(255,255,255,0.12); outline-offset:2px; border-radius:6px; }

/* end footer replacement */


/* ===== Desktop fix: make hero headline bigger on large screens ===== */
@media (min-width: 1200px) {
  /* Strong selector + !important to override any conflicting rule */
  .hero-wrap .gold-hero,
  .hero-wrap .gold-headline,
  .cntsc-sld .gold-hero,
  .cntsc-sld .gold-headline {
    font-size: calc(3.8rem + 1.6vw) !important; /* increases with viewport */
    line-height: 0.95 !important;
    letter-spacing: 0.6px !important;
  }

  /* If hero is too narrow because of panel width, allow more space */
  .cntsc-sld { max-width: 66% !important; } /* increase panel width on large screens */
}
/* END overrides */

/* ===== Hero card: make image fit fixed card box regardless of source image size ===== */
.hero-card {
  display: block;
  width: 100%;
  max-width: 420px;        /* card max width on large screens */
  margin-left: auto;       /* align to right column (since parent col-lg-5 is text-end) */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.10);
  background: #f7f7f7;     /* fallback bg while image loads */
}

/* Use a consistent aspect ratio; modern browsers support aspect-ratio */
.hero-card .img-fluid {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* important: crop & fill without distortion */
  object-position: center center;
  aspect-ratio: 4 / 3;     /* keeps a consistent box ratio (you can change to 16/10, 3/2 etc) */
}

/* If aspect-ratio isn't supported, enforce height by parent */
@supports not (aspect-ratio: 1 / 1) {
  .hero-card { height: 320px; }            /* fallback height for older browsers */
  .hero-card .img-fluid { height: 100%; }  /* image fills card */
}

/* Responsive sizes */
@media (min-width: 1400px) {
  .hero-card { max-width: 520px; }         /* larger on very wide desktops */
  .hero-card .img-fluid { aspect-ratio: 16 / 10; }
}
@media (max-width: 992px) {
  .hero-card { max-width: 420px; height: auto; }  /* keep card moderate */
  .hero-card .img-fluid { aspect-ratio: 4 / 3; }
}
@media (max-width: 576px) {
  .hero-card { display: none; } /* you already hide with d-none d-lg-block; optional */
}
/* ABOUT HERO (background-image based slides) */
.about-hero { min-height:64vh; position:relative; overflow:hidden; }
.about-hero .carousel-item {
  height: 92vh;
  min-height: 420px;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.about-hero .hero-overlay {
  position:absolute; inset:0; z-index:2;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.00) 40%);
}
.about-hero .cntsc-sld { z-index:4; left:4%; top:48%; transform: translateY(-50%) skewX(-8deg); max-width:62%; position:absolute; color:#111; }
.about-hero .cntsc-inner { transform: skewX(8deg); }

/* reveal helpers for slide captions */
.about-hero .reveal { opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.about-hero .reveal.in-view { opacity:1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px){
  .about-hero .carousel-item { height:72vh; }
  .about-hero .cntsc-sld { max-width:86%; left:5%; transform: translateY(-50%) skewX(-6deg); padding:.9rem 1rem; }
}
@media (max-width:576px){
  .about-hero .carousel-item { height:78vh; }
  .about-hero .cntsc-sld { top:46%; transform: translateY(-50%) skewX(-6deg); }
}