/* ==================================================================
   MS DEMOLISHERS – MASTER STYLESHEET
   File: /assets/css/style.css
   Version: 3.1 (Floating contact buttons added)
   
   Now this file contains:
     - Base reset
     - CSS variables
     - Canonical header CSS (all pages use this)
     - Canonical footer CSS (all pages use this)
     - Floating contact buttons (WhatsApp + Call) — ALL pages
     - Utility classes
   ================================================================== */

/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  overflow-x:hidden;
}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:#1F2937;
  background:#F4F5F7;
  line-height:1.65;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  min-height:100vh;
  margin:0;
  padding:0;
}
img{
  max-width:100%;
  height:auto;
  display:block;
  border-style:none;
}
a{
  color:inherit;
  text-decoration:none;
  background-color:transparent;
}
button,input,textarea,select{
  font-family:inherit;
  font-size:inherit;
  color:inherit;
  line-height:inherit;
}
button{
  cursor:pointer;
  border:none;
  background:none;
  padding:0;
}
ul,ol{
  list-style:none;
  padding:0;
  margin:0;
}
h1,h2,h3,h4,h5,h6{
  line-height:1.15;
  font-weight:800;
}
p{margin:0 0 1em}
p:last-child{margin-bottom:0}
table{border-collapse:collapse;border-spacing:0}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root{
  --bp:#FFC107;
  --bs:#111111;
  --bt:#6B7280;
  --bb:#F4F5F7;
  --btext:#1F2937;
  --bmuted:#9CA3AF;
  --bborder:#E5E7EB;
  --bhover:#FFB300;
  --s-y:0 12px 32px rgba(255,193,7,.35);
  --r-full:999px;
  --r-md:16px;
  --r-lg:24px;
  --r-xl:32px;
  --c:1200px;
  --g:20px;
  --ease:cubic-bezier(.22,.61,.36,1);

  /* Legacy compatibility aliases */
  --navy:#111111;
  --navy-2:#1f1f1f;
  --red:#FFC107;
  --red-2:#FFB300;
  --text:#1F2937;
  --muted:#6B7280;
  --bg:#FFFFFF;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container{
  width:100%;
  max-width:var(--c);
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--g);
  padding-right:var(--g);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection{
  background:rgba(255,193,7,.35);
  color:#1F2937;
}
::-moz-selection{
  background:rgba(255,193,7,.35);
  color:#1F2937;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar{
  width:10px;
  height:10px;
}
::-webkit-scrollbar-track{
  background:#f4f5f7;
}
::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#FFC107,#111111);
  border-radius:999px;
  border:2px solid #f4f5f7;
}
::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#FFB300,#000000);
}
*{
  scrollbar-width:thin;
  scrollbar-color:#FFC107 #f4f5f7;
}

/* ============================================================
   FOCUS STYLES
   ============================================================ */
:focus{
  outline:none;
}
:focus-visible{
  outline:3px solid #FFC107;
  outline-offset:3px;
  border-radius:4px;
}

/* ============================================================
   VISUALLY HIDDEN
   ============================================================ */
.sr-only,
.visually-hidden{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ============================================================
   IMAGE FALLBACK
   ============================================================ */
img[loading="lazy"]{
  background-color:#f4f5f7;
}

/* ============================================================
   INPUT STYLES
   ============================================================ */
input::placeholder,
textarea::placeholder{
  color:#9CA3AF;
  opacity:1;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill{
  -webkit-box-shadow:0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color:#1F2937;
  transition:background-color 5000s ease-in-out 0s;
}

/* ============================================================
   LINK UNDERLINE UTILITY
   ============================================================ */
a.underline{
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}
a.underline:hover{
  text-decoration-thickness:2.5px;
}

/* ============================================================
   ✅ CANONICAL HEADER CSS
   (all pages — index, gallery, about, contact — use this)
   ============================================================ */

/* Fixed body padding reset (sticky header needs no offset) */
body.has-fixed-header{padding-top:0 !important}

/* HEADER WRAPPER */
.main-header{
  position:sticky;
  top:0;
  z-index:9999;
  width:100%;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:2px solid rgba(255,193,7,.35);
  box-shadow:0 4px 24px rgba(255,193,7,.10);
}

/* HEADER BAR */
.header-bar{
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  max-width:1200px;
  margin:0 auto;
  padding:8px 20px;
}

/* LOGO — SAME SIZE ON ALL PAGES */
.logo{
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
  transition:transform .3s ease;
  text-decoration:none;
  line-height:0;
}
.logo:hover{transform:scale(1.03)}
.logo img{
  height:104px;
  width:auto;
  max-width:160px;
  object-fit:contain;
  background:transparent;
  filter:drop-shadow(0 6px 18px rgba(255,193,7,.45))
         drop-shadow(0 0 30px rgba(255,193,7,.25));
  transition:filter .3s ease;
}
.logo:hover img{
  filter:drop-shadow(0 8px 24px rgba(255,193,7,.65))
         drop-shadow(0 0 40px rgba(255,193,7,.40));
}

/* DESKTOP NAV */
.desktop-nav{
  flex:1;
  display:flex;
  justify-content:center;
}
.desktop-nav>ul{
  display:flex;
  align-items:center;
  gap:4px;
  background:rgba(255,193,7,.06);
  padding:6px 16px;
  border-radius:999px;
  border:1px solid rgba(255,193,7,.20);
  list-style:none;
  margin:0;
}
.desktop-nav>ul>li{position:relative}
.desktop-nav>ul>li>a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:10px 14px;
  color:#111;
  font-family:'Outfit','Inter',sans-serif;
  font-weight:800;
  font-size:.92rem;
  letter-spacing:.4px;
  text-transform:uppercase;
  border-radius:8px;
  transition:color .25s ease;
  white-space:nowrap;
  text-decoration:none;
}
.desktop-nav>ul>li>a:hover{color:#B78600}

/* Active nav link */
.desktop-nav>ul>li>a.active{color:#B78600}

/* Dropdown caret */
.dropdown-toggle::after{
  content:'▾';
  margin-left:4px;
  font-size:.7em;
}

/* DROPDOWN MENU */
.dropdown-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%) translateY(8px);
  min-width:280px;
  max-width:340px;
  max-height:78vh;
  overflow-y:auto;
  background:#fff;
  border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,.22);
  list-style:none;
  padding:12px 0;
  margin:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease,transform .25s ease,visibility .25s;
  border-top:4px solid #FFC107;
  z-index:100;
}
.dropdown:hover .dropdown-menu,
.dropdown.dropdown-open .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.dropdown-title{
  padding:10px 20px 6px;
  font-size:.7rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:#B78600;
  border-top:1px solid #f0f0f0;
  margin-top:4px;
  pointer-events:none;
  cursor:default;
  list-style:none;
}
.dropdown-title:first-child{border-top:none;margin-top:0}
.dropdown-menu li a{
  display:block;
  padding:9px 20px;
  color:#1F2937;
  font-size:.87rem;
  font-weight:500;
  transition:all .2s ease;
  border-left:3px solid transparent;
  text-decoration:none;
}
.dropdown-menu li a:hover{
  background:rgba(255,193,7,.12);
  color:#111;
  border-left-color:#FFC107;
  padding-left:24px;
  font-weight:700;
}

/* HEADER ACTIONS */
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.call-btn,
.whatsapp-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:11px 20px;
  font-weight:800;
  font-size:.87rem;
  letter-spacing:.3px;
  border-radius:999px;
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease;
  white-space:nowrap;
  font-family:'Outfit','Inter',sans-serif;
  text-decoration:none;
}
.call-btn{
  background:#FFC107;
  color:#111;
  box-shadow:0 4px 12px rgba(255,193,7,.4);
}
.call-btn:hover{
  background:#FFB300;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(255,193,7,.55);
}
.whatsapp-btn{
  background:#111;
  color:#FFC107;
  border:1.5px solid #111;
}
.whatsapp-btn:hover{
  background:#000;
  transform:translateY(-2px);
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn{
  display:none;
  align-items:center;
  justify-content:center;
  background:#FFC107;
  color:#111;
  font-size:1.4rem;
  font-weight:900;
  width:56px;
  height:56px;
  border-radius:14px;
  box-shadow:0 6px 16px rgba(255,193,7,.4);
  cursor:pointer;
  border:none;
  transition:transform .25s ease;
}
.mobile-menu-btn:hover{transform:scale(1.05)}

/* MOBILE NAV */
.mobile-nav{
  display:none;
  flex-direction:column;
  background:#fff;
  border-top:1px solid rgba(255,193,7,.25);
  max-height:calc(100vh - 80px);
  overflow-y:auto;
  padding:10px 0 20px;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
}
.mobile-nav.is-open{display:flex}
.mobile-nav>a{
  padding:14px 22px;
  color:#111;
  font-weight:700;
  font-size:.98rem;
  border-bottom:1px solid rgba(0,0,0,.06);
  text-decoration:none;
}
.mobile-nav details{border-bottom:1px solid rgba(0,0,0,.06)}
.mobile-nav details>summary{
  padding:14px 22px;
  color:#111;
  font-weight:800;
  font-size:.98rem;
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.mobile-nav details>summary::-webkit-details-marker{display:none}
.mobile-nav details>summary::after{
  content:'+';
  font-size:1.4rem;
  font-weight:900;
  color:#B78600;
  transition:transform .25s ease;
}
.mobile-nav details[open]>summary::after{transform:rotate(45deg)}
.mobile-submenu{
  display:flex;
  flex-direction:column;
  background:#fafafa;
  padding:6px 0 12px;
}
.mobile-group-title{
  padding:12px 26px 6px;
  font-size:.68rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1.8px;
  color:#B78600;
}
.mobile-submenu a{
  padding:10px 26px;
  color:#1F2937;
  font-size:.9rem;
  text-decoration:none;
}
.mobile-cta{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:20px 22px 10px;
}
.mobile-cta .call-btn,
.mobile-cta .whatsapp-btn{
  justify-content:center;
  width:100%;
}

/* HEADER RESPONSIVE */
@media (max-width:1024px){
  .desktop-nav,
  .header-actions{display:none !important}
  .mobile-menu-btn{display:inline-flex}
  .header-bar{min-height:104px;padding:8px 16px}
  .logo img{height:88px;max-width:140px}
}
@media (max-width:768px){
  .header-bar{min-height:92px;padding:6px 14px}
  .logo img{height:76px;max-width:120px}
  .mobile-menu-btn{width:50px;height:50px;font-size:1.25rem}
}
@media (max-width:480px){
  .header-bar{min-height:82px;padding:6px 12px}
  .logo img{height:66px;max-width:105px}
  .mobile-menu-btn{width:46px;height:46px;font-size:1.2rem}
}

/* ============================================================
   ✅ CANONICAL FOOTER CSS
   (all pages — index, gallery, about, contact — use this)
   ============================================================ */

.main-footer{
  background:#fff;
  color:#1F2937;
  border-top:2px solid #FFC107;
  margin-top:40px;
  padding:0 20px;
}

/* Footer top grid */
.footer-top{
  display:grid;
  grid-template-columns:1.4fr 1fr 2.5fr 2.5fr 1fr 1.5fr;
  gap:34px;
  padding:70px 0;
  width:100%;
  max-width:1300px;
  margin:0 auto;
}
.footer-column{
  min-width:0;
  overflow-wrap:break-word;
  word-wrap:break-word;
  word-break:break-word;
}
.footer-column h3{
  font-family:'Outfit',sans-serif;
  font-size:1.05rem;
  margin:0 0 18px;
  font-weight:900;
  color:#111;
  position:relative;
  padding-bottom:10px;
}
.footer-column h3::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:40px;
  height:2.5px;
  border-radius:999px;
  background:linear-gradient(90deg,#FFC107,transparent);
}
.footer-column p,
.footer-column li{
  color:#6B7280;
  font-size:14px;
  line-height:1.75;
}
.footer-column p{margin-bottom:14px}
.footer-column ul{
  display:grid;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0;
}
.footer-column a{
  color:#6B7280;
  font-size:14px;
  transition:all .25s ease;
  display:inline-block;
  text-decoration:none;
}
.footer-column a:hover{
  color:#B78600;
  padding-left:4px;
}

/* Two-column services list */
.services-two-column{
  display:grid !important;
  grid-template-columns:repeat(2,1fr) !important;
  gap:4px 16px !important;
}
.services-two-column li{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.services-two-column a{
  font-size:.82rem !important;
  display:inline-block;
  padding:2px 0;
}

/* Contact items */
.footer-column .contact-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
}
.footer-column .contact-item svg{
  flex-shrink:0 !important;
  width:18px !important;
  height:18px !important;
  max-width:18px !important;
  max-height:18px !important;
  margin-top:3px;
  display:inline-block;
}
.footer-column .contact-item p{
  margin:0;
  color:#6B7280;
  font-size:.9rem;
  line-height:1.55;
}
.footer-column .contact-item p a{
  color:#111;
  font-weight:700;
  padding-left:0;
}
.footer-column .contact-item p a:hover{
  color:#B78600;
  padding-left:0;
}

/* Footer bottom */
.footer-bottom{
  border-top:1px solid rgba(255,193,7,.18);
  padding:20px 0;
  width:100%;
  max-width:1300px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer-bottom p{
  margin:0;
  color:#6B7280;
  font-size:13.5px;
}
.footer-bottom strong{
  color:#B78600;
  font-weight:800;
}
.footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}
.footer-links a{
  color:#6B7280;
  font-size:13.5px;
  text-decoration:none;
  transition:color .25s ease;
}
.footer-links a:hover{color:#B78600}

/* NexGen glow badge */
.nexgen-glow{
  color:#FFC107 !important;
  font-weight:900 !important;
  padding:2px 6px;
  border-radius:6px;
  display:inline-block;
  text-decoration:none;
  background:linear-gradient(135deg,#111 0%,#1f1f1f 100%);
  box-shadow:0 0 8px rgba(255,193,7,.5),0 0 16px rgba(255,193,7,.3);
  animation:nexgenPulse 2.4s ease-in-out infinite;
  transition:all .3s ease;
}
.nexgen-glow:hover{
  color:#111 !important;
  background:linear-gradient(135deg,#FFC107 0%,#FFB300 100%);
  box-shadow:0 0 12px rgba(255,193,7,.8),0 0 24px rgba(255,193,7,.5);
  transform:translateY(-1px) scale(1.03);
  animation:none;
  padding-left:6px;
}
@keyframes nexgenPulse{
  0%,100%{box-shadow:0 0 8px rgba(255,193,7,.5),0 0 16px rgba(255,193,7,.3)}
  50%{box-shadow:0 0 12px rgba(255,193,7,.85),0 0 24px rgba(255,193,7,.55)}
}

/* Trust badge (footer) */
.trust-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,193,7,.08);
  color:#111;
  font-size:12.5px;
  font-weight:800;
  border:1px solid rgba(255,193,7,.25);
}
.trust-badge::before{
  content:'';
  width:10px;
  height:10px;
  border-radius:50%;
  background:#FFC107;
  box-shadow:0 0 8px 2px rgba(255,193,7,.5);
}

/* FOOTER RESPONSIVE */
@media (max-width:1280px){
  .footer-top{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1024px){
  .footer-top{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){
  .main-footer{padding:0 16px}
  .footer-top{grid-template-columns:1fr;gap:24px;padding:40px 0}
  .services-two-column{grid-template-columns:1fr 1fr !important}
  .services-two-column li{white-space:normal}
  .footer-bottom{flex-direction:column;text-align:center}
  .footer-links{justify-content:center}
}
@media (max-width:480px){
  .services-two-column{grid-template-columns:1fr !important}
}

/* ============================================================
   ✅ FLOATING CONTACT BUTTONS (WhatsApp + Call)
   Appears on ALL pages — injected by components.js
   ============================================================ */
.ms-float-contact{
  position:fixed;
  right:20px;
  bottom:24px;
  display:flex;
  flex-direction:column;
  gap:14px;
  z-index:99998;
  pointer-events:auto;
}
.ms-float-btn{
  width:58px;
  height:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  transition:transform .25s ease,box-shadow .25s ease;
  text-decoration:none;
  position:relative;
  animation:msFloatIn .5s ease-out;
}
.ms-float-btn svg{
  width:30px;
  height:30px;
  display:block;
}
.ms-float-wa{
  background:#25D366;
  box-shadow:0 8px 24px rgba(37,211,102,.45);
}
.ms-float-wa:hover{
  transform:scale(1.08);
  box-shadow:0 12px 32px rgba(37,211,102,.6);
}
.ms-float-call{
  background:#FFC107;
  box-shadow:0 8px 24px rgba(255,193,7,.5);
}
.ms-float-call:hover{
  transform:scale(1.08);
  box-shadow:0 12px 32px rgba(255,193,7,.65);
  background:#FFB300;
}
/* Pulse ring — attracts attention */
.ms-float-wa::before,
.ms-float-call::before{
  content:'';
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border:2px solid currentColor;
  opacity:0;
  animation:msFloatPulse 2.4s ease-out infinite;
  pointer-events:none;
}
.ms-float-wa::before{color:#25D366;animation-delay:0s}
.ms-float-call::before{color:#FFC107;animation-delay:1.2s}

@keyframes msFloatPulse{
  0%{transform:scale(.85);opacity:.7}
  100%{transform:scale(1.35);opacity:0}
}
@keyframes msFloatIn{
  0%{transform:translateY(20px) scale(.7);opacity:0}
  100%{transform:translateY(0) scale(1);opacity:1}
}

/* Mobile — smaller buttons */
@media (max-width:768px){
  .ms-float-contact{
    right:14px;
    bottom:14px;
    gap:10px;
  }
  .ms-float-btn{
    width:52px;
    height:52px;
  }
  .ms-float-btn svg{width:27px;height:27px}
}
@media (max-width:480px){
  .ms-float-contact{
    right:12px;
    bottom:12px;
    gap:8px;
  }
  .ms-float-btn{
    width:48px;
    height:48px;
  }
  .ms-float-btn svg{width:24px;height:24px}
}
@media (prefers-reduced-motion:reduce){
  .ms-float-btn,
  .ms-float-wa::before,
  .ms-float-call::before{
    animation:none !important;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print{
  *,
  *::before,
  *::after{
    background:transparent !important;
    color:#000 !important;
    box-shadow:none !important;
    text-shadow:none !important;
  }
  body{
    background:#fff;
    font-size:12pt;
    line-height:1.4;
  }
  .main-header,
  .mobile-nav,
  .marquee,
  .gfx-loader,
  .gfx-band,
  .floating-whatsapp,
  .ms-float-contact{
    display:none !important;
  }
  a{text-decoration:underline}
  a[href]::after{
    content:" (" attr(href) ")";
    font-size:0.85em;
    color:#555;
  }
  img{
    max-width:100% !important;
    page-break-inside:avoid;
  }
  h1,h2,h3,h4,h5,h6{page-break-after:avoid}
  .section{
    padding:20px 0;
    page-break-inside:avoid;
  }
}

/* ============================================================
   HIGH CONTRAST MODE
   ============================================================ */
@media (prefers-contrast:more){
  a:focus,
  button:focus{
    outline-width:4px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* ============================================================
   END OF STYLE.CSS
   ============================================================ */