/* ==========================================================================
   ARCHITA TRADERS - LUXURY ARCHITECTURAL DESIGN SYSTEM
   ========================================================================== */

:root {
  --canvas-base: #FAF8F5;
  --gold-primary: #C5A059;
  --gold-hover: #B59048;
  --dark-base: #1A1814;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  background-color: var(--canvas-base);
  color: #1A1814;
  font-family: 'Plus Jakarta Sans', Inter, -apple-system, sans-serif;
  padding-bottom: 64px; /* Space for mobile sticky bottom rail */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Typography */
.font-serif {
  font-family: 'Playfair Display', Cinzel, Georgia, serif;
}

.font-script {
  font-family: 'Caveat', cursive;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #1A1814;
}
::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 4px;
}

/* Ensure no child container can cause horizontal scroll */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

.overflow-x-clip {
  overflow-x: clip;
}

/* Google Business Profile footer strip */
.gmb-strip {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 24px;
  margin: 24px auto;
  max-width: 960px;
}

.gmb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.gmb-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gmb-g-logo {
  flex-shrink: 0;
}

.gmb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gmb-title {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

.gmb-badge {
  display: inline-flex;
  align-items: center;
  background: #f9ab00;
  border-radius: 6px;
  padding: 2px 8px;
  gap: 4px;
  width: fit-content;
}

.gmb-stars {
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
}

.gmb-rating {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.gmb-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.gmb-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gmb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.gmb-btn:hover {
  opacity: 0.85;
}

.gmb-btn-review {
  background: #ffffff;
  color: #1a1a1a;
  border: none;
}

.gmb-btn-maps {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .gmb-strip {
    padding: 16px;
  }

  .gmb-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
.products-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 100vw;
  max-height: 82vh;
  overflow-y: auto;
  padding-top: 14px;
  text-transform: none;
  letter-spacing: normal;
}

#products-menu-trigger.products-menu-open .products-mega-panel,
#products-menu-trigger:focus-within .products-mega-panel { display: block; }

.products-mega-inner {
  width: 100%;
  padding: 27px max(24px, calc((100vw - 1280px) / 2));
  color: #29251f;
  background: rgba(255, 255, 255, .985);
  border-top: 1px solid rgba(197, 160, 89, .65);
  border-bottom: 1px solid #e7e1d8;
  box-shadow: 0 22px 48px rgba(10, 13, 20, .18);
}

.products-mega-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee9e1;
}

.products-mega-kicker {
  color: #9b783b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.products-mega-heading p {
  margin: 6px 0 0;
  color: #5f5a52;
  font-family: Georgia, serif;
  font-size: 18px;
}

.products-mega-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  color: #765a2d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.products-mega-all:hover { color: #ad833e; }

.products-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 5px;
}

.products-mega-category {
  min-width: 0;
  padding: 17px 22px 10px 0;
  border-right: 1px solid #eee9e1;
}

.products-mega-category:not(:first-child) { padding-left: 22px; }
.products-mega-category:last-child { border-right: 0; }

.products-mega-category-head {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 14px;
  align-items: start;
  gap: 10px;
  min-height: 68px;
  color: inherit;
  text-decoration: none;
}

.products-mega-category-head strong {
  display: block;
  color: #27231e;
  font-size: 13px;
  line-height: 1.45;
}

.products-mega-category-head small {
  display: block;
  margin-top: 5px;
  color: #777168;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

.products-mega-category-head:hover strong,
.products-mega-category-head:focus-visible strong { color: #8e6e2f; }

.products-mega-children {
  margin: 9px 0 0 36px;
  padding: 10px 0 0;
  list-style: none;
  border-top: 1px solid #eee9e1;
}

.products-mega-children li + li { margin-top: 2px; }
.products-mega-children a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 4px 7px 0;
  color: #5f5a52;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color .16s ease;
}

.products-mega-children a span {
  flex: 0 0 auto;
  color: #a88a55;
  opacity: 0;
  transition: opacity .16s ease;
}

.products-mega-children a:hover,
.products-mega-children a:focus-visible { color: #8e6e2f; }
.products-mega-children a:hover span,
.products-mega-children a:focus-visible span { opacity: 1; }

.products-mega-note {
  margin: 9px 0 0 36px;
  padding-top: 10px;
  color: #777168;
  border-top: 1px solid #eee9e1;
  font-size: 11px;
  line-height: 1.5;
}

.products-mega-arrow { color: #a88a55; font-size: 13px; opacity: 0; transition: opacity .18s ease; }
.products-mega-category-head:hover .products-mega-arrow,
.products-mega-category-head:focus-visible .products-mega-arrow { opacity: 1; }

.mobile-menu-category { border-top: 1px solid #eee9e1; }
.mobile-menu-category > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 9px;
  color: #302b24;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}
.mobile-menu-category > summary::-webkit-details-marker { display: none; }
.mobile-menu-chevron { color: #98743a; transition: transform .18s ease; }
.mobile-menu-category[open] .mobile-menu-chevron { transform: rotate(180deg); }
.mobile-menu-category-links { display: grid; gap: 2px; padding: 0 0 10px 10px; }
.mobile-menu-category-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  color: #625c52;
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
  border-left: 1px solid #e4dccf;
}
.mobile-menu-category-links a:hover,
.mobile-menu-category-links a:focus-visible { color: #765a2d; background: #faf8f5; }
.mobile-menu-category-links .mobile-menu-parent-link { color: #765a2d; font-weight: 700; }

@media (max-width: 1100px) {
  .products-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-mega-category:nth-child(2) { border-right: 0; }
  .products-mega-category:nth-child(n+3) { border-top: 1px solid #eee9e1; }
}

@media (max-width: 767px) {
  .products-mega-panel { display: none !important; }
}
