/* Blueboz final polish: conversion, SEO-friendly UX, header/logo fixes */
:root{
  --bb-blue:#1d5274;
  --bb-blue-dark:#153a52;
  --bb-olive:#65723a;
  --bb-paper:#fbf7ef;
  --bb-cream:#fffaf2;
}

/* Better keyboard accessibility without changing the visual language */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:3px solid rgba(29,82,116,.34) !important;
  outline-offset:3px !important;
}

/* Header logo: circular badge inside the header band, larger inner logo */
.site-header .brand,
body.is-home .site-header .brand{
  width:74px !important;
  height:74px !important;
  min-width:74px !important;
  max-width:74px !important;
  border-radius:50% !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 22px 0 18px !important;
  background:rgba(255,255,255,.98) !important;
  border:1px solid rgba(255,255,255,.82) !important;
  box-shadow:0 10px 26px rgba(0,0,0,.16) !important;
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
  align-self:center !important;
}

.site-header .brand img{
  width:88% !important;
  height:88% !important;
  max-width:88% !important;
  max-height:88% !important;
  object-fit:contain !important;
  display:block !important;
  opacity:1 !important;
  filter:none !important;
  mix-blend-mode:normal !important;
}

/* Home header uses white logo in HTML; show color logo inside the badge instead */
body.is-home .site-header .brand{
  background:rgba(255,255,255,.98) url("/assets/img/blueboz-logo.png") center center / 88% auto no-repeat !important;
}
body.is-home .site-header .brand img{opacity:0 !important;}

.site-header.is-scrolled .brand,
body.is-home .site-header.is-scrolled .brand{
  width:66px !important;
  height:66px !important;
  min-width:66px !important;
  max-width:66px !important;
}
body.is-home .site-header.is-scrolled .brand{background-size:88% auto !important;}

body.is-home .site-header{
  align-items:center !important;
}
body.is-home .site-header .main-nav,
body.is-home .site-header .header-actions{
  align-self:center !important;
  padding-top:0 !important;
}
body.is-home .site-header.is-scrolled{
  align-items:center !important;
}

/* Hero headline: calmer, premium, more readable */
.hero-home h1{
  max-width:980px !important;
  color:#fff !important;
  font-family:var(--sans) !important;
  font-weight:300 !important;
  font-size:clamp(42px,4.45vw,64px) !important;
  line-height:1.18 !important;
  letter-spacing:.035em !important;
  word-spacing:.04em !important;
  text-align:center !important;
  text-wrap:balance;
  margin:0 auto !important;
  text-shadow:0 4px 28px rgba(0,0,0,.48) !important;
}
.hero-center{max-width:1080px !important;}
.hero-logo-white{margin-bottom:24px !important;}
.hero-home p{
  margin-top:24px !important;
  max-width:760px !important;
  font-size:clamp(20px,1.9vw,29px) !important;
  line-height:1.38 !important;
  text-shadow:0 4px 24px rgba(0,0,0,.55) !important;
}

/* Contact page action buttons */
.contact-actions-row,
.contact-card .contact-actions,
.contact-info-card .contact-actions,
.contact-buttons,
.contact-cta-actions{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  margin-top:26px !important;
}

.contact-actions-row .btn,
.contact-card .contact-actions a,
.contact-info-card .contact-actions a,
.contact-buttons a,
.contact-cta-actions a{
  min-width:150px !important;
  height:58px !important;
  padding:0 26px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:16px !important;
  font-weight:500 !important;
  line-height:1 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}

.contact-actions-row .btn-primary,
.contact-card .contact-actions a:first-child,
.contact-info-card .contact-actions a:first-child,
.contact-buttons a:first-child,
.contact-cta-actions a:first-child{
  background:var(--bb-blue) !important;
  color:#fff !important;
  border:1px solid var(--bb-blue) !important;
}

.contact-actions-row .btn:not(.btn-primary),
.contact-card .contact-actions a:nth-child(2),
.contact-info-card .contact-actions a:nth-child(2),
.contact-buttons a:nth-child(2),
.contact-cta-actions a:nth-child(2){
  background:rgba(255,255,255,.72) !important;
  color:var(--bb-blue) !important;
  border:1px solid rgba(31,93,127,.18) !important;
}

.contact-actions-row .btn:hover,
.contact-card .contact-actions a:hover,
.contact-info-card .contact-actions a:hover,
.contact-buttons a:hover,
.contact-cta-actions a:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(24,38,33,.14);
}

/* Sticky mobile conversion bar: call / WhatsApp / directions */
.mobile-quick-contact{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:70;
  display:none;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding:8px;
  border-radius:999px;
  background:rgba(20,31,28,.72);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.mobile-quick-contact a{
  min-height:46px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  font-size:13px;
  font-weight:600;
  letter-spacing:.01em;
  background:rgba(255,255,255,.10);
}
.mobile-quick-contact a:nth-child(2){background:#1f7f54;}
.mobile-quick-contact a:nth-child(3){background:rgba(255,250,242,.94);color:#1e2d28;}

/* Lightbox: ensure arrows are always comfortably clickable */
.lightbox .lightbox-arrow{
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.lightbox .lightbox-close{
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}

/* Reduce motion when users prefer it */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

@media (max-width:1100px){
  .hero-home h1{
    max-width:860px !important;
    font-size:clamp(38px,5.2vw,58px) !important;
    letter-spacing:.028em !important;
    line-height:1.16 !important;
  }
}

@media (max-width:900px){
  .site-header .brand,
  body.is-home .site-header .brand{
    width:62px !important;
    height:62px !important;
    min-width:62px !important;
    max-width:62px !important;
    margin-left:12px !important;
    margin-right:14px !important;
    background-size:88% auto !important;
  }
  .site-header.is-scrolled .brand,
  body.is-home .site-header.is-scrolled .brand{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    max-width:58px !important;
  }
  body.is-home .main-nav.is-open{
    top:84px !important;
  }
}

@media (max-width:760px){
  body{padding-bottom:78px;}
  .mobile-quick-contact{display:grid;}
  .floating-whatsapp{display:none;}
  .contact-actions-row,
  .contact-card .contact-actions,
  .contact-info-card .contact-actions,
  .contact-buttons,
  .contact-cta-actions{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .contact-actions-row .btn,
  .contact-card .contact-actions a,
  .contact-info-card .contact-actions a,
  .contact-buttons a,
  .contact-cta-actions a{
    width:100% !important;
    min-width:100% !important;
  }
}

@media (max-width:720px){
  .hero-home h1{
    max-width:94vw !important;
    font-size:clamp(31px,8.2vw,43px) !important;
    line-height:1.18 !important;
    letter-spacing:.018em !important;
    word-spacing:.02em !important;
  }
  .hero-home p{
    font-size:18px !important;
    line-height:1.4 !important;
    max-width:92vw !important;
  }
}

@media (max-width:520px){
  .site-header .brand,
  body.is-home .site-header .brand{
    width:56px !important;
    height:56px !important;
    min-width:56px !important;
    max-width:56px !important;
    background-size:90% auto !important;
  }
  .mobile-quick-contact a{font-size:12px;}
}

/* Gallery lightbox arrows - works even if the earlier gallery CSS was not uploaded */
body.lightbox-active{overflow:hidden;}
.lightbox{gap:18px;}
.lightbox img{box-shadow:0 24px 80px rgba(0,0,0,.38);}
.lightbox .lightbox-close{
  position:absolute;
  right:22px;
  top:20px;
  border:0;
  border-radius:50%;
  width:48px;
  height:48px;
  background:white;
  color:#0f1b16;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  z-index:3;
  box-shadow:0 12px 32px rgba(0,0,0,.22);
}
.lightbox .lightbox-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:58px;
  height:58px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.92);
  color:#10211a;
  font-size:46px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 18px 44px rgba(0,0,0,.24);
  transition:transform .25s ease,background .25s ease,box-shadow .25s ease;
}
.lightbox .lightbox-arrow:hover{
  background:#fff;
  transform:translateY(-50%) scale(1.06);
  box-shadow:0 22px 54px rgba(0,0,0,.32);
}
.lightbox .lightbox-prev{left:34px;}
.lightbox .lightbox-next{right:34px;}
@media (max-width:720px){
  .lightbox{padding:18px;}
  .lightbox img{max-width:94vw;max-height:82vh;border-radius:18px;}
  .lightbox .lightbox-close{width:44px;height:44px;right:14px;top:14px;}
  .lightbox .lightbox-arrow{width:46px;height:46px;font-size:36px;background:rgba(255,255,255,.96);}
  .lightbox .lightbox-prev{left:12px;}
  .lightbox .lightbox-next{right:12px;}
}
