/* header2.css
   - Pin ONLY the icon strip via .site-header.is-pinned + spacer
   - Mobile drawer fixed 75vw (right 25% shows the website)
   - Drawer top is controlled by --im-drawer-top set by JS
   - When menu is open: drawer uses --im-drawer-top-locked so it NEVER bounces
   - Desktop: drawer hidden by default (no !important so mobile can show)
   - Desktop dropdown: clear separated rows
   - FIX: remove “curved” divider illusion in mobile submenu by squaring internal row edges
*/


.site-header{
  --bg:#ffffff;
  --fg:#111111;
  --muted:#666;
  --border:#e8e8e8;
  --accent:#c9a24a;
  --shadow:0 6px 28px rgba(0,0,0,.08);
  --font:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;

  --trustbar:#efefef;
  --trustbar-border:#dcdcdc; /* visible “same family” as trustbar */

  /* set by JS */
  --im-iconbar-h:56px;
  --im-header-h:120px;
  --im-drawer-top:120px;

  position:relative;
  top:auto;
  z-index:1;
  background:var(--bg);
  box-shadow:var(--shadow);
  font-family:var(--font);
}

.site-header, .site-header *{ box-sizing:border-box; }
.hdr-wrap{ border-bottom:1px solid var(--border); }


/* Desktop/base: mobile drawer hidden by default (mobile overrides when open) */
.mobile-drawer{ display:none; }

/* TOP AREA */
.hdr-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 44px;
  gap:18px;
  border-bottom:1px solid rgba(232,232,232,.7);
  background:var(--trustbar);
}

.hdr-top-left{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  color:var(--fg);
}

.trust{
  font-size:16px;
  font-weight:600;
  letter-spacing:.04em;
  color:var(--fg);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}

.hdr-top-right{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  white-space:nowrap;
}

/* Spot box (desktop default) */
.spotbox{
  display:inline-flex;
  align-items:center;
  gap:18px;
  padding:8px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  justify-content:flex-end;
  text-align:right;
  white-space:nowrap;
}

.spotline{
  display:inline-flex;
  align-items:center;
  gap:14px;
  font-size:14.5px;
  font-weight:900;
  letter-spacing:.02em;
  color:var(--fg);
  white-space:nowrap;
}

.spotline .label{
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:12px;
  color:var(--muted);
  transform: translateY(-.5px);
}

.spotline .value{
  font-size:15px;
  font-weight:950;
  color:var(--fg);
}
.spotline .value.gold{ color:var(--accent); }

.spotbox .spotline .value.silver{
  background: linear-gradient(180deg, #b5bac0ff 45%, #8f97a0 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
  -webkit-text-fill-color:transparent;
  font-weight:950;
}

.spotsep{
  width:1px;
  height:22px;
  background:var(--border);
}

/* Badge group (desktop) */
.hdr-right-group{
  display:flex;
  align-items:center;
  flex-direction:row;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:7px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  text-decoration:none;
  color:var(--fg);
  white-space:nowrap;
}
.badge:hover{ border-color:#dcdcdc; background:#fafafa; }

.badge .meta{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.badge .meta .top{
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
}
.badge .meta .bottom{
  font-size:10px;
  color:var(--muted);
  margin-top:2px;
}

.google-inline{ display:flex; align-items:center; gap:8px; }
.g-rating{ font-size:12px; font-weight:700; color:var(--fg); }
.stars{ display:inline-flex; gap:2px; transform: translateY(1px); }
.star{ width:12px; height:12px; }

/* Mobile logo wrapper (hidden on desktop) */
.hdr-mobile-logo{ display:none; }
.hdr-mobile-logo a{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
}
.hdr-mobile-logo img{ display:block; width:auto; }

/* ROW 2 (desktop header) */
.hdr-bottom{
  display:flex;
  align-items:center;
  gap:22px;
  padding:16px 44px 14px 44px;
  background:#fff;
}

.hdr-logo{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:220px;
}
.hdr-logo a{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
}
.hdr-logo img{ display:block; width:auto; }

.nav-wrap{ flex:1; display:flex; justify-content:center; min-width:0; }

.nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:34px;
  row-gap:12px;
  align-items:center;
}

.nav-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
}

.nav-item > a{
  text-decoration:none;
  color:var(--fg);
  font-size:15px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  white-space:nowrap;
  position:relative;
  z-index:1;
}

.nav-item > a::after{ display:none !important; }

.nav-item > a::before{
  content:"";
  position:absolute;
  left:-10px;
  right:-10px;
  top:-7px;
  bottom:-7px;
  border-radius:10px;
  background:transparent;
  z-index:-1;
}

.nav-item > a:hover,
.nav-item > a:focus-visible{
  color:var(--accent);
  outline:none;
}

.nav-item > a:hover::before,
.nav-item > a:focus-visible::before{
  background:#f7f7f7;
}

.nav-chev{ width:14px; height:14px; opacity:.75; transform: translateY(1px); }

/* Desktop dropdown */
.nav-dd{
  position:absolute;
  top:100%;
  left:-14px;
  min-width:240px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 14px 40px rgba(0,0,0,.08);
  padding:8px;
  display:none;
  z-index:1000;
  margin-top:8px;
}

.nav-item:hover .nav-dd,
.nav-item:focus-within .nav-dd{ display:block; }

.nav-item.has-dd::after{
  content:"";
  position:absolute;
  left:-14px;
  right:-14px;
  top:100%;
  height:14px;
  background:transparent;
  pointer-events:auto;
}

.nav-dd a{
  display:block;
  padding:12px 12px;
  border-radius:10px;

  font-family:var(--font);
  font-size:15px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;

  text-decoration:none;
  color:var(--fg);
  white-space:nowrap;
}
.nav-dd a:hover{ background:#f7f7f7; color:var(--accent); }

.nav-dd a + a{
  margin-top:6px;
  padding-top:14px;
  position:relative;
}
.nav-dd a + a::before{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  top:-1px;
  height:1px;
  background:rgba(232,232,232,.9);
}

.actions{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
  justify-content:flex-end;
}

.icon-btn{
  width:40px;
  height:40px;
  border-radius:50%;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:var(--fg);
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
}
.icon-btn:hover{ border-color:var(--border); background:#fafafa; }
.icon{ width:19px; height:19px; opacity:.95; }

.hamburger{ display:none; }

/* Mobile nav blocks */
.mnav{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:100%;
  max-width:100%;
}

.mnav-item{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  width:100%;
  max-width:100%;
}

.mnav-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  cursor:pointer;
  user-select:none;
  width:100%;
  max-width:100%;
}

.mnav-toggle{
  width:28px;
  height:28px;
  border-radius:8px;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  background:transparent;
  flex:0 0 28px;
}

.mnav-head a{
  text-decoration:none;
  color:var(--fg);

  font-size:14.5px;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  flex:1 1 auto;
  min-width:0;
  display:block;
}

.mnav-label{
  color:var(--fg);

  font-size:14.5px;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  flex:1 1 auto;
  min-width:0;
  display:block;
}

.mnav-chev{
  width:18px;
  height:18px;
  opacity:.75;
  transition: transform .18s ease;
  transform: rotate(0deg);
}
.mnav-item.is-open .mnav-chev{ transform: rotate(180deg); }

.mnav-panel{
  display:none;
  padding:6px 0 10px 0;
  border-top:1px solid var(--border);
  background:#fff;
  width:100%;
  max-width:100%;
}
.mnav-item.is-open .mnav-panel{ display:block; }

.mnav-panel a{
  display:block;
  padding:14px 14px;
  text-decoration:none;
  color:var(--fg);

  font-size:14.5px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;

  border-radius:0; /* FIX baseline: internal edges straight (mobile override refines corners) */
  width:100%;
  max-width:100%;
  background: var(--trustbar);
}

.mnav-panel a + a{ border-top:1px solid var(--border); }

.mnav-panel a:hover{
  background:#f7f7f7;
  color:var(--accent);
}

/* =========================
   SEARCH DROPDOWN (desktop + mobile)
========================= */
.search-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.search-dd{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:360px;

  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 14px 40px rgba(0,0,0,.10);

  padding:10px;
  display:none;
  z-index:10050;
}

.search-dd.is-open{ display:block; }

.search-form{
  display:flex;
  align-items:center;
  gap:10px;
}

.search-input{
  flex:1;
  height:42px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:12px;
  font: 600 14px/1 var(--font);
  outline:none;
}

.search-input:focus{
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  box-shadow: 0 0 0 3px rgba(201,162,74,.18);
}

.search-go{
  height:42px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, #F3E7A3 0%, #E6C96A 55%, #D8B84F 100%);
  color:#1a1a1a;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.search-go:hover{ filter:brightness(1.03); }

/* Responsive collapse */
@media (max-width: 980px){

  /* Make the dropdown fit inside the viewport on mobile */
  .search-dd{
    position: fixed;                 /* anchor to viewport */
    left: 12px;                      /* gutter */
    right: 12px;                     /* gutter */
    min-width: 0;                    /* allow shrink */
    width: auto;

    /* place it just under the pinned icon strip if pinned,
       otherwise under the normal header row */
    top: calc(var(--im-search-top-locked, var(--im-drawer-top, 120px)) + 10px);

    z-index: 10050;
  }

  .mobile-drawer{ pointer-events:auto; }

  .hdr-top{
    padding:13px 20px;
    flex-direction:column;
    align-items:center;
    gap:10px;
  }

  .trust{
    white-space:normal;
    text-align:center;
    overflow:visible;
    text-overflow:clip;
  }

  .hdr-top-right{
    flex-direction:column;
    align-items:center;
    gap:10px;
    width:100%;
  }

  .site-header[data-spot-mobile="0"] .spotbox{ display:none; }
  .site-header[data-spot-mobile="1"] .spotbox{
    width:100%;
    justify-content:center;
    text-align:center;
  }

  .hdr-right-group{
    display:grid;
    width:100%;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "logo logo logo"
      "google . whatsapp";
    align-items:center;
    gap:10px;
  }

  .hdr-mobile-logo{
    display:flex;
    justify-content:center;
    grid-area:logo;
    margin-top:8px;
  }

  .badge-google{ grid-area:google; justify-self:start; }
  .badge-whatsapp{ grid-area:whatsapp; justify-self:end; }

  .hdr-mobile-logo a{
    border:none !important;
    padding:0 !important;
    border-radius:0 !important;
    background:transparent !important;
  }
  .hdr-mobile-logo a:hover{
    border:none !important;
    background:transparent !important;
  }

  /* icon strip layout on mobile */
  .hdr-bottom{
    padding:12px 12px 10px 12px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:8px;
  }

  .nav-wrap{ display:none; }
  .hdr-bottom .hdr-logo{ display:none; }

  .actions{
    min-width:unset;
    flex:1 1 auto;
    justify-content:space-between;
    gap:6px;
  }

  .hamburger{ display:grid; }

  /* pinned icon strip support */
  .hdr-pin-spacer{
    display:none;
    height:var(--im-iconbar-h, 56px);
  }
  .site-header.is-pinned .hdr-pin-spacer{ display:block; }

  .site-header.is-pinned .hdr-bottom{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:9999;
    background:#fff;
    border-bottom:1px solid rgba(232,232,232,.7);
  }

  /* mobile drawer: fixed, 75vw, glued under the header */
  .mobile-drawer{
    display:none;
    position:fixed;
    left:0;
    top:var(--im-drawer-top, 120px);

    width:75vw;
    max-width:75vw;

    height:calc(100dvh - var(--im-drawer-top, 120px));

    overflow-x:hidden;
    overflow-y:auto;

    background:#fff;
    border-top:0;

    padding:10px 16px 14px 16px;

    z-index:9000;
  }

  .mobile-drawer.is-open{ display:block; }

  .site-header.is-menu-open .mobile-drawer{
    top:var(--im-drawer-top-locked, var(--im-drawer-top, 120px));
    height:calc(100dvh - var(--im-drawer-top-locked, var(--im-drawer-top, 120px)));
  }

  /* UPDATED: thicker mobile menu outlines + matching dividers */
  .mobile-drawer .mnav-item{
    border:2px solid var(--trustbar-border);
    border-radius:16px;
  }

  .mobile-drawer .mnav-panel{
    border-top:2px solid var(--trustbar-border);
    background: var(--trustbar);
    padding:6px 2px 12px 2px;
  }

  /* Submenu rows inset so divider doesn’t touch rounded container */
  .mobile-drawer .mnav-panel a{
    background: transparent;
    width:auto;
    margin:0 2px;

    /* IMPORTANT FIX:
       remove curves between items by squaring internal edges */
    border-radius:0;
  }

  /* keep only outer corners rounded (top + bottom) */
  .mobile-drawer .mnav-panel a:first-child{
    border-top-left-radius:10px;
    border-top-right-radius:10px;
  }
  .mobile-drawer .mnav-panel a:last-child{
    border-bottom-left-radius:10px;
    border-bottom-right-radius:10px;
  }

  /* straight separators */
  .mobile-drawer .mnav-panel a + a{
    border-top:2px solid var(--trustbar-border);
  }
  /* GOLD BUTTON for top-level mobile items (forced) */
  .site-header .mobile-drawer .mnav-item > .mnav-head{
    background: linear-gradient(
      180deg,
      #F3E7A3 0%,
      #E6C96A 55%,
      #D8B84F 100%
    ) !important;
    border-radius: 14px !important;
  }

  /* Make sure the text stays readable on gold */
  .site-header .mobile-drawer .mnav-item > .mnav-head,
  .site-header .mobile-drawer .mnav-item > .mnav-head a,
  .site-header .mobile-drawer .mnav-item > .mnav-head .mnav-label{
    color:#1a1a1a !important;
  }

  .site-header .mobile-drawer .mnav-item > .mnav-head .mnav-chev{
    color:#1a1a1a !important;
    opacity:1 !important;
  }


}

/* Prevent iOS Safari zoom on input focus */
.search-input{
  font-size:16px;          /* REQUIRED for iOS */
  line-height:1.2;
}

@supports (-webkit-touch-callout: none){
  .search-input{
    font-size:16px !important;
  }
}
