/*!
 * shared.css — Homemakrz Global Header & Footer
 * Applies to: index, aboutus, modularkitchen, masterbedroom, ourcenters
 * Author : Niyan IT Solutions
 * Version: 2.0.0
 */

/* ─────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────── */
:root {
  --hm-gold        : #e8a317;
  --hm-gold-dark   : #cf8f0f;
  --hm-dark        : #1a1a1a;
  --hm-nav-height  : 65px;
  --hm-font-sans   : 'Poppins', sans-serif;
  --hm-font-serif  : 'Poppins', sans-serif;
  --hm-shadow-nav  : 0 2px 12px rgba(0,0,0,0.08);
  --hm-shadow-drop : 0 10px 28px rgba(0,0,0,0.13);
  --hm-transition  : 0.22s ease;
}

/* ─────────────────────────────────────
   SITE HEADER / NAVBAR
───────────────────────────────────── */
.site-header {
  position  : fixed;
  top       : 0;
  left      : 0;
  right     : 0;
  z-index   : 9999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  transition: all var(--hm-transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Inner wrapper */
.nav-wrap {
  max-width      : 1280px;
  margin         : 0 auto;
  padding        : 0 32px; /* Restored right padding */
  height         : var(--hm-nav-height);
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  gap            : 32px; /* Increased gap */
}

/* ── Logo ── */
.logo-img {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img img {
  max-height: 58px; /* Made logo bigger */
  width: auto;
}

/* ── Desktop nav list ── */
.main-nav {
  display    : flex;
  align-items: center;
  list-style : none;
  margin     : 0;
  padding    : 0;
  gap        : 12px;
  height     : 100%;
}

.main-nav > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav > li > a {
  display       : flex;
  align-items   : center;
  gap           : 6px;
  padding       : 0 16px;
  height        : 100%;
  font-family   : var(--hm-font-sans);
  font-size     : 13px;
  font-weight   : 600;
  letter-spacing: 1px;
  color         : var(--hm-dark);
  text-transform: uppercase;
  white-space   : nowrap;
  text-decoration: none;
  transition    : color 0.3s ease;
  position      : relative;
}
.main-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 16px;
  width: calc(100% - 32px);
  height: 2px;
  background: var(--hm-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav > li > a:hover {
  color: var(--hm-gold);
}
.main-nav > li > a:hover::after,
.main-nav > li.active > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown chevron removed from pseudo-element because it's now in HTML */

/* ── Mega Menu (Dropdown) ── */
.drop-menu {
  position     : absolute;
  top          : 100%; /* Start exactly at the bottom of the nav bar */
  left         : 50%;
  transform    : translateX(-50%) translateY(15px);
  background   : rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width    : 640px; /* Wide enough for grid */
  border-radius: 8px;
  box-shadow   : 0 20px 50px rgba(0,0,0,0.1);
  border       : 1px solid rgba(0,0,0,0.05);
  z-index      : 200;
  padding      : 24px;
  /* Animate in */
  opacity      : 0;
  visibility   : hidden;
  pointer-events: none;
  transition   : opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
/* Invisible bridge to prevent hover loss, scoped to the trigger item */
.main-nav > li.has-drop::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}
.main-nav > li.has-drop:hover .drop-menu {
  opacity       : 1;
  visibility    : visible;
  transform     : translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Mega Menu Grid */
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mega-item:hover {
  background: rgba(232, 163, 23, 0.05);
}
.mega-img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
}
.mega-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.mega-item:hover .mega-img img {
  transform: scale(1.1);
}
.mega-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-title {
  font-family: var(--hm-font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--hm-dark);
  transition: color 0.2s ease;
}
.mega-item:hover .mega-title {
  color: var(--hm-gold);
}
.mega-desc {
  font-family: var(--hm-font-sans);
  font-size: 13px;
  color: #777;
  line-height: 1.3;
}

/* ── CTA Button ── */
.nav-btn {
  flex-shrink  : 0;
  background   : transparent;
  color        : var(--hm-dark);
  border       : 1px solid var(--hm-gold);
  border-radius: 4px;
  padding      : 12px 24px;
  font-family  : var(--hm-font-sans);
  font-size    : 12px;
  font-weight  : 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor       : pointer;
  transition   : all 0.4s ease;
  display      : flex;
  align-items  : center;
  justify-content: center;
  position     : relative;
  overflow     : hidden;
  z-index      : 1;
}
.nav-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0%; height: 100%;
  background: var(--hm-gold);
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.75, 0, 0.125, 1);
}
.nav-btn:hover::before { width: 100%; }
.nav-btn:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(232, 163, 23, 0.25);
  transform: translateY(-2px);
}
.nav-btn:active { transform: translateY(0); }

/* ── Hamburger (mobile) ── */
.hamburger {
  display        : none;
  width          : 44px;
  height         : 44px;
  position       : relative;
  cursor         : pointer;
  border         : none;
  background     : none;
  border-radius  : 50%;
  transition     : background 0.2s;
  flex-shrink    : 0;
}
.hamburger:hover  { background: #f5f5f5; }
.hamburger span {
  display   : block;
  position  : absolute;
  left      : 10px;
  width     : 24px;
  height    : 2px;
  background: var(--hm-dark);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; width: 18px; }
.hamburger span:nth-child(3) { top: 28px; }

/* Open state */
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ── Mobile slide-down nav ── */
.mob-nav {
  display       : none;
  flex-direction: column;
  background    : #fff;
  border-top    : 1px solid #ededed;
  max-height    : 0;
  overflow      : hidden;
  transition    : max-height 0.35s ease;
}
.mob-nav.open { max-height: 640px; }

.mob-nav a {
  display        : block;
  padding        : 13px 28px;
  font-family    : var(--hm-font-sans);
  font-size      : 14px;
  font-weight    : 500;
  color          : #333;
  text-decoration: none;
  border-bottom  : 1px solid #f4f4f4;
  transition     : color var(--hm-transition), background var(--hm-transition);
}
.mob-nav a:hover     { background: #fef7e8; color: var(--hm-gold); }
.mob-nav a.mob-cta {
  background   : var(--hm-gold);
  color        : #fff;
  margin       : 14px 28px;
  border-radius: 5px;
  text-align   : center;
  border-bottom: none;
}
.mob-nav a.mob-cta:hover { background: var(--hm-gold-dark); }

/* ── Mobile accordion: "We Do" dropdown ── */
.mob-drop {
  border-bottom: 1px solid #f4f4f4;
}
.mob-drop-toggle {
  display       : flex;
  align-items   : center;
  justify-content: space-between;
  width         : 100%;
  padding       : 13px 28px;
  font-family   : var(--hm-font-sans);
  font-size     : 14px;
  font-weight   : 500;
  color         : #333;
  background    : none;
  border        : none;
  cursor        : pointer;
  text-align    : left;
  transition    : color var(--hm-transition), background var(--hm-transition);
}
.mob-drop-toggle:hover { background: #fef7e8; color: var(--hm-gold); }
.mob-drop-toggle[aria-expanded="true"] { color: var(--hm-gold); background: #fef7e8; }

.mob-drop-icon {
  font-size : 11px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.mob-drop-toggle[aria-expanded="true"] .mob-drop-icon {
  transform: rotate(180deg);
}

.mob-drop-menu {
  max-height : 0;
  overflow   : hidden;
  transition : max-height 0.35s ease;
  background : #fafafa;
}
.mob-drop-menu.open { max-height: 400px; }

.mob-drop-menu a {
  display        : block;
  padding        : 11px 28px 11px 40px;
  font-family    : var(--hm-font-sans);
  font-size      : 13.5px;
  font-weight    : 400;
  color          : #555;
  text-decoration: none;
  border-bottom  : 1px solid #f0f0f0;
  transition     : color var(--hm-transition), background var(--hm-transition);
}
.mob-drop-menu a:last-child { border-bottom: none; }
.mob-drop-menu a:hover { background: #fef7e8; color: var(--hm-gold); }


/* ─────────────────────────────────────
   ULTRA PREMIUM FOOTER
───────────────────────────────────── */
.site-footer-ultra {
  position: relative;
  background: #0f1012;
  color: #a3a9b3;
  padding: 80px 0 0;
  font-family: var(--hm-font-sans);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-ultra-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}
.footer-glow {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 163, 23, 0.08) 0%, rgba(232, 163, 23, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.footer-ultra-inner {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 4%;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr 2fr 1.5fr;
  gap: 30px;
  padding-bottom: 60px;
}
.f-brand .f-logo img {
  height: 45px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.f-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #ffffff;
  max-width: 280px;
}
.f-socials {
  display: flex;
  gap: 12px;
}
.f-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.f-socials a:hover {
  background: var(--hm-gold);
  border-color: var(--hm-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(232, 163, 23, 0.3);
}

.f-links h4, .f-contact h4, .f-newsletter h4 {
  font-family: var(--hm-font-serif);
  font-size: 18px;
  color: #fff;
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.f-links ul, .f-contact ul {
  list-style: none;
  padding: 0; margin: 0;
}
.f-links ul li { margin-bottom: 14px; }
.f-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}
.f-links a::after {
  content: ''; position: absolute; width: 0; height: 1px;
  bottom: -2px; left: 0; background: var(--hm-gold);
  transition: width 0.3s ease;
}
.f-links a:hover { color: #fff; }
.f-links a:hover::after { width: 100%; }

.f-contact ul li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
}
.f-contact i {
  color: var(--hm-gold);
  font-size: 14px;
  margin-top: 3px;
}
.f-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.f-contact a:hover { color: #f5f5f5; }

.f-newsletter p {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 20px;
}
.f-form {
  display: flex;
  position: relative;
}
.f-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 50px 12px 16px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--hm-font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.f-form input:focus {
  border-color: var(--hm-gold);
}
.f-form button {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  background: var(--hm-gold);
  border: none;
  color: #fff;
  padding: 0 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.3s;
}
.f-form button:hover {
  background: var(--hm-gold-dark);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #727a85;
}
.f-legal {
  display: flex; gap: 20px;
}
.f-legal a {
  color: #727a85;
  text-decoration: none;
  transition: color 0.3s ease;
}
.f-legal a:hover { color: var(--hm-gold); }
.f-credits a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.f-credits a:hover { color: var(--hm-gold); }
.f-credits .heart { color: #e25555; }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .nav-wrap { padding: 0 20px; }
  .main-nav, .nav-btn { display: none; }
  .hamburger { display: block; }
  .mob-nav { display: flex; }
  .logo-text { font-size: 22px; }
}

@media (max-width: 600px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ═══════════════ BOOK CONSULTATION MODAL ═══════════════ */
.bc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bc-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.bc-modal-content {
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  padding: 30px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.bc-modal-overlay.active .bc-modal-content {
  transform: translateY(0);
}
.bc-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.bc-modal-close:hover {
  color: #000;
}
.bc-modal-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
}
.bc-form-group {
  margin-bottom: 15px;
}
.bc-form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s;
}
.bc-form-group input:focus {
  outline: none;
  border-color: #ffd500;
}
.bc-submit-btn {
  width: 100%;
  background: #f6ae2f; 
  color: #000;
  border: none;
  padding: 15px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bc-submit-btn:hover {
  background: #f6ae2f;
}
.bc-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.bc-form-status {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
}
.bc-form-status.success { color: #2e7d32; }
.bc-form-status.error { color: #d32f2f; }
.bc-disclaimer {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-top: 15px;
  line-height: 1.5;
  margin-bottom: 0;
}
.bc-disclaimer a {
  color: #f39c12; /* orange from screenshot */
  text-decoration: none;
}
.bc-disclaimer a:hover {
  text-decoration: underline;
}

/* ════════════════════════════════
   FLOATING CHAT WIDGET
════════════════════════════════ */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.fab-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
  position: relative;
}

.fab-item:hover {
  transform: scale(1.1);
  color: #fff;
}

.fab-whatsapp { background: #25D366; }
.fab-phone { background: var(--hm-gold, #b5883a); }

/* Tooltip labels for fab items */
.fab-label {
  position: absolute;
  right: 60px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--hm-font-sans, sans-serif);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}
.fab-item:hover .fab-label {
  opacity: 1;
  transform: translateX(0);
}

.fab-btn {
  height: 52px;
  width: 52px;
  min-width: 52px;
  padding: 0;
  border-radius: 50%;
  background: var(--hm-gold, #e8a317);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(232, 163, 23, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}
.fab-btn:hover {
  transform: translateY(-2px);
  background: #cf8f0f;
  box-shadow: 0 6px 16px rgba(232, 163, 23, 0.6);
}

/* Tooltip — shown above FAB on hover/focus */
.fab-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(26, 16, 8, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--hm-font-sans, sans-serif);
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.fab-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(26, 16, 8, 0.88);
}
.fab-btn:hover .fab-tooltip,
.fab-btn:focus .fab-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fab-icon-wrap {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-text {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--hm-font-sans, sans-serif);
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Icon toggling */
.fab-icon-wrap i {
  position: absolute;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fab-icon-wrap .fa-comment-dots {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.fab-icon-wrap .fa-times {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.fab-container.active .fab-btn .fa-comment-dots {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.fab-container.active .fab-btn .fa-times {
  opacity: 1;
  transform: rotate(0) scale(1);
}
