/* Shared homepage grid: matches the Coffee & Dolci content width. */
:root {
  --homepage-grid-width: min(76vw, 1440px);
}

.homepage-grid {
  width: 100%;
  max-width: var(--homepage-grid-width) !important;
  margin-right: auto;
  margin-left: auto;
}

.hero-section.homepage-grid,
.barista-section > .container.homepage-grid {
  padding-right: 0;
  padding-left: 0;
}

/* Current promotions inside the existing modal dimensions. */
.promo-modal-carousel {
  position: relative;
}

.promo-modal-slide {
  display: none;
}

.promo-modal-slide.is-active {
  display: block;
  animation: promo-modal-fade 0.45s ease;
}

.promo-modal-slide .img-vdo,
.promo-modal-slide img,
.promo-modal-slide video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@keyframes promo-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Desktop shortcut for viewing the real responsive site inside an iPhone 15 Pro. */
.mobile-preview-launcher {
  position: fixed;
  bottom: 16px;
  left: 12px;
  z-index: 1000000001;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #f4f2e3;
  background: #111;
  border: 1px solid rgba(244, 242, 227, 0.72);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.mobile-preview-launcher:hover {
  background: #b51f1f;
  transform: translateY(-1px);
}

.mobile-preview-launcher:focus-visible,
.mobile-preview-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.mobile-preview-launcher svg {
  width: 21px;
  height: 21px;
}

.mobile-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(8px);
}

.mobile-preview-overlay.is-open {
  display: flex;
}

.mobile-preview-device {
  position: relative;
  width: 425px;
  height: 884px;
  padding: 16px;
  background: #151515;
  border: 1px solid #666;
  border-radius: 58px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58), inset 0 0 0 2px #303030;
  transform-origin: center center;
}

.mobile-preview-screen {
  position: relative;
  width: 393px;
  height: 852px;
  overflow: hidden;
  background: #f4f2e3;
  border-radius: 43px;
}

.mobile-preview-screen iframe {
  display: block;
  width: 393px;
  /* Reserve real viewport space for the simulated Safari toolbar. */
  height: calc(100% - 68px);
  background: #f4f2e3;
  border: 0;
}

.mobile-preview-dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 3;
  width: 118px;
  height: 34px;
  background: #050505;
  border-radius: 20px;
  transform: translateX(-50%);
  pointer-events: none;
}

.mobile-preview-safari-bar {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  color: #1c1c1e;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: rgba(245, 245, 247, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.mobile-preview-safari-bar::before {
  content: "aA";
  position: absolute;
  left: 18px;
  font-size: 12px;
}

.mobile-preview-safari-lock {
  margin-right: 6px;
  font-size: 11px;
}

.mobile-preview-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  font: 300 28px/1 Arial, sans-serif;
  background: #b51f1f;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

.mobile-preview-label {
  position: absolute;
  top: -42px;
  left: 50%;
  color: #fff;
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
}

body.mobile-preview-open {
  overflow: hidden !important;
}

@media (min-width: 992px) {
  .mobile-preview-launcher {
    display: flex;
  }
}

/* Refined navigation system: compact proportions and one consistent type scale. */
@media (min-width: 992px) {
  .sticky-wrapper {
    background: #f4f2e3;
    border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  }

  .navbar .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: calc(100% - 80px);
    max-width: 1760px !important;
    min-height: 112px;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
    /* Hero text starts at 148px; compensate for the badge's 1.3x scale. */
    padding-left: max(0px, calc(163.3px - max(40px, (100vw - 1760px) / 2)));
  }

  .navbar-brand.desk-only {
    display: flex !important;
    flex: 0 0 auto;
    gap: 8px;
    margin: 0 30px 0 0;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
    transform: translateX(-50px);
  }

  .navbar-brand-image {
    width: 102px;
    max-width: 102px;
    height: 102px;
    object-fit: contain;
    /* Let the badge overlap the hero without increasing the header height. */
    transform: translate(92px, 18px) scale(1.3);
    transform-origin: center;
    position: relative;
    z-index: 2;
  }

  .navbar-brand .fa-phone-alt {
    margin: 0 0 0 146px !important;
    font-size: 27px;
  }

  .navbar-brand p {
    margin: 0 !important;
    font-family: var(--body-font-family);
    font-size: clamp(16px, 0.94vw, 18px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.005em;
  }

  .navbar-collapse {
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-expand-lg .navbar-nav {
    align-items: center;
    gap: clamp(32px, 2vw, 40px);
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    position: relative;
    margin: 0;
    padding: 13px 0 12px;
    font-family: var(--body-font-family);
    font-size: clamp(16px, 0.94vw, 18px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.005em;
    transition: color 0.2s ease;
  }

  .navbar-expand-lg .navbar-nav .nav-link::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 1px;
    margin: auto;
    background: #ab2224;
    content: "";
    transition: width 0.2s ease;
  }

  .navbar-expand-lg .navbar-nav .nav-link:hover::after,
  .navbar-expand-lg .navbar-nav .nav-link:focus-visible::after,
  .navbar-expand-lg .navbar-nav .nav-link.active::after {
    width: 100%;
  }

  .navbar-collapse > .desk-only {
    flex: 0 0 auto;
    margin-left: clamp(18px, 1.35vw, 26px) !important;
  }

  .navbar .custom-btn {
    min-width: 164px;
    padding: 11px 18px;
    font-family: var(--body-font-family);
    font-size: clamp(16px, 0.94vw, 18px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.005em;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
}

@media (min-width: 992px) and (max-width: 1398px) {
  .navbar .container {
    width: calc(100% - 40px);
    min-height: 100px;
    padding-left: 141.5px;
  }

  .navbar-brand.desk-only {
    margin-right: 22px;
  }

  .navbar-brand-image {
    width: 90px;
    max-width: 90px;
    height: 90px;
  }

  .navbar-expand-lg .navbar-nav {
    gap: 20px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    font-size: 15px;
  }

  .navbar-collapse > .desk-only {
    margin-left: 14px !important;
  }

  .navbar .custom-btn {
    min-width: 146px;
    padding: 10px 12px;
    font-size: 15px;
  }
}

@media (min-width: 1200px) and (max-width: 1398px) {
  .navbar-expand-lg .navbar-nav {
    gap: 32px;
  }
}

@media (min-width: 1399px) and (max-width: 1599px) {
  .navbar-brand .not-show {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .hero-section.homepage-grid {
    aspect-ratio: 2 / 1;
    height: auto;
    min-height: 0;
  }
}

/* Keep the complete 1200x600 hero artwork visible on narrower desktop screens. */
@media (min-width: 992px) and (max-width: 1200px) {
  .hero-section.homepage-grid .hero-slides {
    inset: 0;
  }

  .hero-section.homepage-grid .vegas-slide,
  .hero-section.homepage-grid .vegas-slide-inner {
    background-position: center top !important;
    background-size: contain !important;
  }
}

/* Mobile refinements layered over the original site's responsive styles. */
@media (max-width: 991.98px) {
  :root {
    --homepage-grid-width: 100%;
  }
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .navbar .container,
  .sticky-wrapper.is-sticky .container {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    width: calc(100% - 20px);
    max-width: none !important;
    margin: 0 10px;
    padding: 6px 4px;
  }

  .navbar-toggler {
    grid-column: 1;
    justify-self: start;
  }

  .navbar-brand.mob-only {
    grid-column: 2;
    justify-self: center;
    margin: 0;
  }

  .navbar-brand.mob-only .navbar-brand-image {
    width: 94px;
    max-width: 94px;
    transform: translateY(24px) scale(1.18);
    position: relative;
    z-index: 2;
  }

  .hero-section.homepage-grid {
    aspect-ratio: 2 / 1;
    height: auto;
    min-height: 0;
    margin-top: 116px;
  }

  .hero-section.homepage-grid .hero-slides {
    inset: 0;
  }

  .hero-section.homepage-grid .vegas-slide,
  .hero-section.homepage-grid .vegas-slide-inner {
    background-position: center top !important;
    background-size: contain !important;
  }

  .navbar .container > a.mob-only:not(.navbar-brand) {
    grid-column: 3;
    justify-self: end;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    text-decoration: none;
  }

  .navbar-collapse {
    grid-column: 1 / -1;
    width: 100%;
    max-height: calc(100vh - 76px);
    margin-top: 6px;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .navbar-nav .nav-link {
    display: block;
    min-height: 44px;
    padding: 11px 16px !important;
    font-family: var(--body-font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
  }

  .membership-card-container {
    gap: 24px;
  }

  .membership-card-content {
    width: 100%;
  }

  .barista-section .container {
    padding-right: 0;
    padding-left: 0;
  }

  .kids-events-banner {
    aspect-ratio: 2 / 1;
    border-radius: 12px;
  }

  .kids-events-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 12% center;
  }

  .vdo-border {
    padding: 16px;
  }

  .about-section h2,
  .about-section p {
    text-wrap: pretty;
  }

  .team-block-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .custom-div {
    padding: 3rem 1.25rem;
  }

  .contact-section .container {
    padding: 28px 18px;
  }

  .foot-dtl-sec > .d-flex {
    align-items: flex-start !important;
    gap: 0.25rem;
    text-align: left;
  }

  .foot-dtl-sec p {
    line-height: 1.45;
  }

  .modal-dialog-manual {
    top: 50%;
    width: calc(100% - 24px);
    max-width: 420px;
    transform: translateY(-50%);
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 1.75rem 1.125rem;
  }

  .membership-card-section {
    padding: 32px 18px;
  }

  .membership-card-eyebrow {
    font-size: 14px;
    line-height: 1.45;
  }

  .membership-card-heading {
    font-size: 28px;
  }

  .membership-card-description {
    font-size: 16px;
  }

  .slider-padd {
    padding: 1rem 0.75rem;
  }

  .kids-events-banner {
    aspect-ratio: 16 / 9;
  }

  .about-section p,
  .contact-section p {
    font-size: 16px;
  }

  .foot-dtl-sec > .d-flex,
  .foot-dtl-sec .fl-dir > .d-flex {
    width: 100%;
    justify-content: flex-start !important;
  }

  .foot-dtl-sec .fl-dir {
    gap: 1rem;
  }
}
