/*
Theme Name: Anecdotemen
Author: The Theme Author
Description: A custom theme for Anecdotemen.
Version: 1.0
*/

.devices-wrapper                                { -webkit-transform: translateY(-50%) rotate(45deg); -ms-transform: translateY(-50%) rotate(45deg); transform: translateY(-50%) rotate(45deg); -webkit-transform-origin: center; -ms-transform-origin: center; transform-origin: center; position: absolute; top: 50%; left: 40%; width: 56.25rem; height: 56.25rem; }
.devices-wrapper .device                        { width: 100% !important; border-radius: .5rem; border: .25rem solid rgba(225, 225, 225, .15); -webkit-box-shadow: .125rem .125rem 1.25rem 0 rgba(0, 0, 0, .3); box-shadow: .125rem .125rem 1.25rem 0 rgba(0, 0, 0, .3); width: 6.25rem; -webkit-transition: -webkit-transform 2s cubic-bezier(0.77, 0, 0.18, 1); transition: -webkit-transform 2s cubic-bezier(0.77, 0, 0.18, 1); transition: transform 2s cubic-bezier(0.77, 0, 0.18, 1); transition: transform 2s cubic-bezier(0.77, 0, 0.18, 1), -webkit-transform 2s cubic-bezier(0.77, 0, 0.18, 1); }
.devices-wrapper .device:hover                  { transform: scale(1.08) !important; }
.devices-wrapper [class*=macbook-]              { width: 44%; position: absolute; }
.devices-wrapper [class*=ipad--l-]             { width: 28%; position: absolute; }
.devices-wrapper [class*=iphone-]              { width: 10%; position: absolute; }
.devices-wrapper [class*=ipad--p-]             { width: 21%; position: absolute; }
.devices-wrapper [class*=iphone--l-]           { width: 29.5%; position: absolute; }
.devices-wrapper .macbook-1                     { left: 42%; top: 63%; }
.devices-wrapper .ipad--l-1                     { left: -3%; top: 40%; }
.devices-wrapper .iphone-1                      { left: 27%; top: 40%; }
.devices-wrapper .iphone-2                      { left: 69%; top: 40%; }
.devices-wrapper .ipad--l-2                     { left: 39%; top: 40%; }
.devices-wrapper .macbook-2                     { left: 22%; top: 10%; }
.devices-wrapper .ipad--l-3                     { left: 81%; top: 40%; }
.devices-wrapper .ipad--p-1                     { left: 69%; top: 10%; }
.devices-wrapper .iphone-3                      { left: 55%; top: -14%; }
.devices-wrapper .iphone-4                      { left: 88%; top: 63%; }
.devices-wrapper .iphone--l-1                   { left: 42%; top: 93%; }
html, body                                      { overflow-x: hidden !important; max-width: 100% !important; }

/* Floating WhatsApp Button */
.whatsapp-fab                                   { 
  position: fixed; 
  right: 20px; 
  bottom: 20px; 
  width: 56px; 
  height: 56px; 
  border-radius: 50%; 
  background: #25D366; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 10px 24px rgba(0,0,0,0.18), 0 6px 12px rgba(0,0,0,0.12);
  z-index: 1000; 
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; 
}
.whatsapp-fab:hover, 
.whatsapp-fab:focus                              { 
  transform: translateY(-2px); 
  box-shadow: 0 16px 32px rgba(0,0,0,0.22), 0 8px 16px rgba(0,0,0,0.16);
}
.whatsapp-fab:active                             { transform: translateY(0); }
.whatsapp-fab svg, 
.whatsapp-fab img                                { width: 28px; height: 28px; display: block; }
.whatsapp-fab.left                               { left: 20px; right: auto; }
@media (max-width: 575.98px) {
  .whatsapp-fab                                 { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-fab.left                            { left: 16px; }
}
@media print { .whatsapp-fab { display: none !important; } }

/* Prevent horizontal scroll from devices wrapper */
.container-fluid                                { overflow-x: hidden !important; max-width: 100% !important; }

/* Mobile devices grid (hidden by default; shown on small screens) */
.devices-grid-mobile                             { display: none; }
.devices-grid-mobile .devices-grid-item          { position: relative; }
.devices-grid-mobile .devices-grid-img           { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); transition: transform .35s ease; transform-origin: center; will-change: transform; }

/* Hover/Focus zoom for mobile grid cards */
.devices-grid-mobile .devices-grid-item:hover .devices-grid-img,
.devices-grid-mobile .devices-grid-item:focus-within .devices-grid-img { transform: scale(1.06); }

/* Touch fallback where hover is not available */
@media (hover: none) {
  .devices-grid-mobile .devices-grid-item:active .devices-grid-img { transform: scale(1.06); }
}

/* Mobile specific fixes for horizontal scroll */

@media (min-width: 576px) {
  .devices-wrapper                              { left: 40%; width: 31.25rem; height: 31.25rem; }
}
@media (min-width: 768px) {
  .devices-wrapper                              { left: 60%; width: 75rem; height: 75rem; }
}
@media (min-width: 992px) {
  .devices-wrapper                              { left: 50%; width: 68.75rem; height: 68.75rem; }
}
@media (min-width: 1200px) {
  .devices-wrapper                              { left: 40%; width: 75rem; height: 75rem; }
}
@media (min-width: 1400px) {
  .devices-wrapper                              { left: 25%; width: 100rem; height: 100rem; }
}

/* Home Page Menu - Prominent, clean, accessible */
.home-page-menu                                 { 
  display: inline-flex; 
  flex-wrap: nowrap; 
  align-items: center; 
  justify-content: center; 
  gap: 14px; 
  margin: 24px 0 0 0; 
  padding: 0; 
  list-style: none; 
  background: transparent;
}
.home-page-menu .menu-item                      { position: relative; }
.home-page-menu .menu-item:first-child          { display: none; }

/* Remove all separators */
.home-page-menu .menu-item:not(:last-child)::after,
.home-page-menu .menu-item + .menu-item::after,
.home-page-menu .menu-item + .menu-item::before { content: none !important; display: none !important; }

.home-page-menu .menu-item a                    { 
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  padding: 10px 18px; 
  background: #ffffff; 
  color: #1f1f1f; 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 18px; 
  text-transform: none; 
  letter-spacing: 0.2px; 
  border: 1px solid rgba(0,0,0,0.12); 
  border-radius: 999px; 
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease; 
  position: relative; 
}
.home-page-menu .menu-item a::after             { content: none !important; }
.home-page-menu .menu-item a:hover, 
.home-page-menu .menu-item a:focus              { background: #ffffff; color: #000000; box-shadow: 0 10px 22px rgba(164,74,31,0.28); transform: translateY(-1px); }
.home-page-menu .menu-item a:active             { transform: translateY(0); box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.home-page-menu .menu-item a:focus-visible      { outline: 3px solid rgba(164, 74, 31, 0.4); outline-offset: 3px; }

.home-page-menu .menu-item a  { background: #A44A1F; color: #fff; border-color: #A44A1F; }
.home-page-menu .menu-item.current-menu-item a::after { content: none; }

/* Tablet Responsive */
@media (max-width: 991px) {
  .home-page-menu                               { gap: 12px; margin: 20px auto 0; padding: 0; }
  .home-page-menu .menu-item a                  { font-size: 16px; padding: 9px 16px; }
  .devices-wrapper                              { left: 35% !important; width: 55rem !important; height: 55rem !important; }
}


@media (max-width: 767px) {
  /* Hide rotating devices cluster and show mobile grid */
  .devices-wrapper                              { display: none !important; }
  .devices-grid-mobile                          { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
  .devices-grid-mobile .devices-grid-item       { overflow: hidden; border-radius: 12px; }
  .devices-grid-mobile .devices-grid-img        { width: 100%; height: auto; display: block; }

  /* Masonry fallback using CSS columns when Isotope isn't loaded */
  .devices-grid-mobile:not(.isotope-enabled)    { display: block; column-count: 2; column-gap: 12px; }
  .devices-grid-mobile:not(.isotope-enabled) .devices-grid-item { display: inline-block; width: 100%; margin: 0 0 12px; break-inside: avoid; }

  /* When Isotope is active, let it control layout */
  .devices-grid-mobile.isotope-enabled          { display: block; }
  .devices-wrapper                              { left: 60% !important; width: 25rem !important; height: 25rem !important; transform: translateY(-50%) rotate(45deg) scale(0.6) !important; }
  .img-wrapper                                  { max-width: 80%; }
  html, body                                    { overflow-x: hidden !important; max-width: 100vw !important; position: relative !important; }
  .container-fluid                              { padding-left: 15px !important; padding-right: 15px !important; max-width: 100vw !important; overflow-x: hidden !important; }
  section                                       { max-width: 100vw !important; overflow-x: hidden !important; }
  .home-page-menu                               { flex-wrap: nowrap; justify-content: center; align-items: center; gap: 10px; margin: 16px auto 0; padding: 0; }
  .home-page-menu .menu-item a                  { font-size: 15px; padding: 8px 14px; }
}

