/* Prevent CLS during JS header injection */
[data-site-header] {
  min-height: 88px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg,
      rgba(248, 249, 250, 0.98) 0%,
      rgba(248, 249, 250, 0.92) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}

/* Header spacing lock: keep identical geometry across all pages */
header .logo-wrap,
header .nav,
header .nav-link,
header .topbar .header-cta,
header .brand-text {
  margin: 0;
}

header .nav {
  padding: 0;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.28rem 0.55rem 0.28rem 0.35rem;
  border-radius: 999px;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.logo-wrap:hover {
  background: rgba(212, 175, 55, 0.09);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22) inset;
  transform: translateY(-1px);
}

.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.3rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.logo {
  width: auto;
  height: 50px;
  max-height: 52px;
  object-fit: contain;
  mix-blend-mode: normal;
  flex-shrink: 0;
  filter: none;
  background: transparent;
}

.brand-wordmark {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-left: 0.35rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.brand-w1,
.brand-w2 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--gold);
  transition: opacity var(--transition);
}

.brand-w2 {
  font-weight: 600;
  margin-left: 0.15rem;
}

/* Inherit the logo wrap hover effect */
.logo-wrap:hover .brand-w1,
.logo-wrap:hover .brand-w2 {
  opacity: 0.8;
}

.logo-wrap:hover .brand-text {
  color: #4c3b10;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
}

.menu-toggle {
  display: none;
  /* Default to hidden for desktop */
}


.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  min-inline-size: 5.1rem;
  min-height: 44px;
  font-weight: var(--fw-medium);
  font-size: var(--fs-nav);
  color: #1f232a;
  text-decoration: none;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  line-height: 1.2;
  transition:
    color var(--transition),
    transform var(--transition);
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(212, 175, 55, 0.13);
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity var(--transition),
    transform var(--transition);
  z-index: -1;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50% !important;
  bottom: 2px !important;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%) scaleX(0) !important;
  transform-origin: center;
  transition: transform var(--transition) !important;
  will-change: transform;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #16191f;
  transform: translateY(-1px);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: translateX(-50%) scaleX(0.72) !important;
}

.nav-link[aria-current="page"] {
  color: #171a1f;
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.nav-link[aria-current="page"]::before {
  opacity: 0;
  transform: scale(0.92);
}

.nav-link[aria-current="page"]:hover::before,
.nav-link[aria-current="page"]:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(0.72) !important;
}

.nav-link[aria-current="page"]:hover::after,
.nav-link[aria-current="page"]:focus-visible::after {
  transform: translateX(-50%) scaleX(0.72) !important;
}

.topbar .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  flex: 0 0 auto;
  margin-left: 0;
  min-height: 44px;
  min-inline-size: 10.5rem;
  width: auto;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  font-size: var(--fs-button);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.25);
  line-height: 1;
  white-space: nowrap;
  transition:
    transform var(--transition),
    background-color var(--transition);
}

.topbar .header-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

footer {
  background: var(--black);
  color: var(--white);
  padding: 2.6rem 0 1rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-card h3 {
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-size: var(--fs-h3);
}

.footer-card p,
.footer-card a {
  color: #d3d8df;
  font-size: var(--fs-footer);
  line-height: 1.75;
}

.about-copy {
  max-width: 38ch;
  margin: 0 0 0.45rem;
}

.motto-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 0.18rem 0.62rem;
  color: #f4d57d;
  font-size: 0.74rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.08);
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.footer-link-list a {
  text-decoration: none;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hours-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.hours-appointment {
  color: var(--gold-dark);
  font-weight: var(--fw-bold);
}

footer .hours-appointment {
  color: #f2cc68;
}

.hours-divider {
  color: #9ea6b0;
}

.hours-range {
  font-variant-numeric: tabular-nums;
}

.hours-detail {
  display: grid;
  gap: 0.12rem;
}

.hours-detail p {
  margin: 0;
}

.hours-subline {
  padding-left: 1.1rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.5rem 0 0.9rem;
}

.contact-social {
  margin: 0.2rem 0 0;
}

.social-link {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d3d8df;
  font-size: 0.95rem;
  transition:
    color var(--transition),
    transform var(--transition);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--gold);
  transform: translateY(-1px);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 0.8rem;
  color: #c2c6cd;
  font-size: var(--fs-small);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 1500px) {
  .topbar {
    gap: 0.5rem;
  }

  .nav {
    gap: 0.2rem;
  }

  .nav-link {
    min-inline-size: auto;
    padding: 0.4rem 0.55rem;
    font-size: 0.88rem;
  }

  .header-cta,
  .topbar .header-cta {
    min-inline-size: auto;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 1320px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.75rem 0;
    row-gap: 0.75rem;
    column-gap: 1.5rem;
  }

  .logo-wrap {
    margin-right: auto;
  }

  .header-cta {
    margin-left: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-top: 0.25rem;
  }

  .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 1200px) {
  .brand-wordmark {
    display: none;
  }
}

@media (max-width: 720px) {

  .section,
  main .section {
    padding: 3rem 0;
  }

  /* ── Mobile header bar ── */
  .topbar {
    display: flex !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative;
    padding: 10px 1.25rem;
    gap: 0;
  }

  /* Logo — icon only on mobile for clean look */
  .logo-wrap {
    order: 1;
    position: relative;
    z-index: 10;
    /* Ensure clickable above absolute CTA */
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.12);
    padding: 0;
    /* Remove fluid padding */
    height: 44px;
    /* Lock to match toggle */
    display: flex;
    align-items: center;
  }

  /* Hide wordmark on mobile to save space and prevent clutter */
  .brand-wordmark {
    display: none;
  }

  .logo-frame {
    padding: 0;
    /* Remove fluid padding */
    display: flex;
    align-items: center;
    height: 100%;
  }

  .logo {
    width: auto;
    height: 40px;
    max-height: 44px;
  }

  /* Call CTA — Perfectly centered on mobile */
  .topbar .header-cta,
  .header-cta {
    position: absolute;
    top: 32px;
    /* 10px container pad + 22px fixed half-height */
    left: 50%;
    transform: translate(-50%, -50%);
    /* Pin to the top row so it doesn't drop down into the open menu */
    width: auto;
    margin: 0;
    white-space: nowrap;
    font-size: 0.9rem;
    /* Reduced to prevent squashing horizontally */
    font-family: var(--font-sans);
    font-weight: var(--fw-bold);
    -webkit-font-smoothing: antialiased;
    padding: 0.55rem 0.95rem;
    /* Reduced horizontal footprint */
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.32);
    min-height: 44px;
    /* Locked to EXACT height of hamburger/logo */
    border-radius: 999px;
  }

  /* CRITICAL FIX: Preserve horizontal centering on hover/tap */
  .topbar .header-cta:hover,
  .header-cta:hover {
    transform: translate(-50%, calc(-50% - 2px));
  }

  /* Disable CTA shadow when the mobile menu is open for a flat aesthetic */
  .topbar.has-open-nav .header-cta {
    box-shadow: none;
  }

  /* ── Hamburger toggle — gold, premium feel ── */
  .menu-toggle {
    order: 3;
    position: relative;
    z-index: 10;
    /* Ensure clickable above absolute CTA */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(212, 175, 55, 0.06);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    cursor: pointer;
    color: var(--gold);
    font-size: 1.25rem;
    -webkit-tap-highlight-color: transparent;
    transition:
      background-color var(--transition),
      border-color var(--transition),
      color var(--transition);
  }

  .menu-toggle:hover,
  .menu-toggle:active {
    background: rgba(212, 175, 55, 0.14);
    border-color: var(--gold);
    color: var(--gold-dark);
  }

  .menu-toggle:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
  }

  /* ── Collapsible mobile nav ── Premium Revamp ── */
  .nav {
    order: 4;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    gap: 0.4rem;
    padding: 0;
    margin-top: 0;
    transition:
      max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.4s ease,
      margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 5;
    outline: none;
  }

  .nav.is-open {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
    padding: 1.25rem 1rem;
    margin-top: 1.5rem;
  }

  /* Staggered entrance for menu links */
  .nav-link {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.4s ease,
      transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .nav.is-open .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .nav.is-open .nav-link:nth-child(1) {
    transition-delay: 0.08s;
  }

  .nav.is-open .nav-link:nth-child(2) {
    transition-delay: 0.14s;
  }

  .nav.is-open .nav-link:nth-child(3) {
    transition-delay: 0.20s;
  }

  .nav.is-open .nav-link:nth-child(4) {
    transition-delay: 0.26s;
  }

  .nav.is-open .nav-link:nth-child(5) {
    transition-delay: 0.32s;
  }

  .nav-link {
    min-inline-size: 0;
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
    text-align: left;
    border-radius: 12px;
    font-weight: 700;
  }

  .nav-link::before,
  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--black);
    background: rgba(212, 175, 55, 0.15);
    font-weight: 700;
  }

  .nav-link:active {
    background: rgba(212, 175, 55, 0.25);
    transform: scale(0.98);
  }

  .hours-compact {
    gap: 0.2rem 0.35rem;
  }

  .hours-divider {
    display: none;
  }

  footer .social-links {
    justify-content: center;
  }

  .whatsapp-fab {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    right: 1rem;
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
  }
}

@media (max-width: 720px) {

  /* Prevent CLS on mobile viewports */
  [data-site-header] {
    min-height: 64px;
  }
}

@media (max-width: 480px) {

  .topbar .header-cta,
  .header-cta {
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
  }

  .logo-wrap {
    padding-left: 0;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Removed: old 560-720px nav-link grid — hamburger menu handles this range now */

@media (min-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    max-width: none !important;
  }
}

@media (max-width: 1079px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
}