/*
Theme Name: ReNu Custom
Author: Kevin Campbell
Version: 1.0
*/

/* =========================
   Design Tokens
========================= */
:root{
  --bg:#F6FAFA;
  --surface:#FFFFFF;

  --text:#0F172A;
  --muted:#475569;

  --line:rgba(15,23,42,.10);
  --shadow:0 16px 40px rgba(2,6,23,.08);
  --radius:18px;

  --primary:#0EA5A6;
  --primaryHover:#0B8A8B;

  --accent:#2563EB;
  --accentHover:#1D4ED8;

  --focus: 0 0 0 4px rgba(14,165,166,.22);

  /* Glass pills (default = on dark/hero/video) */
  --glass-pill-bg: rgba(255,255,255,.12);
  --glass-pill-border: rgba(255,255,255,.20);
  --glass-pill-text: rgba(255,255,255,.92);
  --glass-pill-shadow: 0 14px 40px rgba(2,6,23,.22);
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth;}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(14,165,166,.10), transparent 55%),
    radial-gradient(900px 420px at 80% 0%, rgba(37,99,235,.10), transparent 55%),
    var(--bg);
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Interior pages: stronger soft canvas (EXCEPT home) */
body:not(.home){
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(14,165,166,.18), transparent 60%),
    radial-gradient(1100px 540px at 80% 0%, rgba(37,99,235,.14), transparent 55%),
    linear-gradient(180deg, #eaf6f6 0%, #edf7fb 40%, #e9f5f1 100%) !important;
}

/* Links */
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accentHover)}

.container{max-width:1180px;margin:0 auto;padding:0 18px}

/* Generic card utility (used on contact) */
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  font-weight:800;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow: 0 10px 26px rgba(14,165,166,.20);}
.btn:active{transform: translateY(0); filter: brightness(.98);}
.btn:focus{outline:none; box-shadow: var(--focus);}
:focus-visible{outline:none; box-shadow: var(--focus); border-radius:12px;}

.btn-primary{
  background:var(--primary);
  color:#fff;
  border-color:transparent;
  box-shadow: 0 10px 26px rgba(14,165,166,.25);
}
.btn-primary:hover{background:var(--primaryHover); box-shadow: 0 14px 34px rgba(14,165,166,.32);}

/* =========================
   Header (Sticky)
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:#fff;
  border-bottom:1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
  backdrop-filter:saturate(140%) blur(4px);
}

/* WP admin bar pushes sticky header down */
body.admin-bar .site-header{ top:32px; }
@media (max-width:782px){
  body.admin-bar .site-header{ top:46px; }
}

.header-grid{
  display:grid;
  grid-template-columns: 240px 1fr 240px;
  align-items:center;
  gap:18px;
  padding:10px 0;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 210px;
}
.brand-logo{
  width:44px;height:44px;
  border-radius:8px;
  background: radial-gradient(circle at 30% 30%, #5EEAD4 0%, #0EA5A6 40%, #2563EB 100%);
  box-shadow: 0 10px 24px rgba(2,6,23,.12);
  position:relative;
  overflow:hidden;
}
@media (prefers-reduced-motion: no-preference){
  .brand-logo::after{
    content:"";
    position:absolute;
    top:-20%;
    left:-60%;
    width:50%;
    height:140%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-18deg);
    opacity:.35;
    animation: logoShimmer 5.5s ease-in-out infinite;
  }
  @keyframes logoShimmer{
    0%, 55% { left:-60%; }
    70%, 100% { left:120%; }
  }
}

.brand-name{
  font-weight:900;
  line-height:1.0;
  color:#0f172a;
  font-size:22px;
}
.brand-name span{font-weight:900}

/* Nav */
.main-nav{display:flex; justify-content:center;}
.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:0;
}
.menu > li{position:relative; display:flex; align-items:center;}
.menu > li > a{
  padding:8px 18px;
  font-weight:700;
  color:#0f172a;
  position:relative;
  transition: color .2s ease;
}

/* divider */
.menu > li + li::before{
  content:"";
  display:block;
  width:1px;
  height:20px;
  background:rgba(15,23,42,.18);
}

/* underline hover */
.menu > li > a::after{
  content:"";
  position:absolute;
  left:18px; right:18px; bottom:4px;
  height:2px;
  background: rgba(14,165,166,.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  border-radius:999px;
}
.menu > li > a:hover::after{ transform: scaleX(1); }

/* dropdown caret */
.menu-item-has-children > a::after{
  /* keep underline + add caret using a second pseudo would be cleaner,
     but we’ll keep your behavior minimal: caret via span-like */
}
.menu-item-has-children > a::before{
  content:"▼";
  font-size:10px;
  margin-left:8px;
  opacity:.75;
  position:absolute;
  right:8px;
  top:50%;
  transform: translateY(-50%);
  pointer-events:none;
  display:none;
}

/* Dropdown */
.menu li .sub-menu{
  display:none;
  position:absolute;
  top:44px;
  left:0;
  min-width:260px;
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
  border-radius:12px;
  padding:8px;
  box-shadow:0 18px 50px rgba(2,6,23,.12);
}
.menu li:hover > .sub-menu{display:block}
.sub-menu{
  list-style:none;
  margin:0;
  padding:0;
}
.sub-menu a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  font-weight:700;
  color:#0f172a;
}
.sub-menu a:hover{background:rgba(14,165,166,.10)}

/* CTA */
.header-actions{display:flex; justify-content:flex-end;}

@media (max-width:900px){
  .header-grid{grid-template-columns: 1fr auto;}
  .main-nav{display:none;}
  .brand-name{font-size:20px}
}

/* =========================
   Home Hero Video (front-page)
========================= */
.hero.hero-video{
  position: relative;
  overflow: hidden;
  background:#000;
  min-height: clamp(560px, 78vh, 820px);
  margin:0;
}

.hero-video .hero-bgvideo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:0;
  opacity:.75;
  filter: saturate(1.12) contrast(1.10) brightness(1.05);
}

.hero-video .hero-video-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(900px 520px at 50% 20%, rgba(14,165,166,.20), transparent 55%),
    linear-gradient(to bottom, rgba(2,6,23,.38), rgba(2,6,23,.58));
}

.hero-video .hero-inner{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(48px, 6vw, 90px) 18px;
  text-align:center;
}

.hero-video .hero-content{
  width: min(880px, 92vw);
  color: rgba(255,255,255,.92);
}

.hero-video .hero-content h1{
  margin:0 0 14px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color:#fff;
  text-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.hero-video .hero-content p{
  margin:0 auto 22px;
  max-width: 62ch;
  color: rgba(255,255,255,.86);
  font-size: clamp(16px, 1.5vw, 18px);
  text-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.hero-video .hero-actions{display:flex;justify-content:center;margin-top:10px;}
.hero-video .hero-cta{padding:14px 26px; font-size:15px; font-weight:900;}

/* hero chips */
.hero-trust-chips{
  list-style:none;
  padding:0;
  margin: 18px 0 0;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}
.hero-trust-chips li{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  min-height:44px;
  border-radius: 999px;
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  box-shadow: var(--glass-pill-shadow);
  color: var(--glass-pill-text);
  font-weight: 900;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (prefers-reduced-motion: reduce){
  .hero-video .hero-bgvideo{display:none;}
  .hero.hero-video{
    background:
      radial-gradient(900px 520px at 50% 20%, rgba(14,165,166,.18), transparent 55%),
      linear-gradient(to bottom, #0b1220, #0a1523);
  }
}

/* =========================
   Page Hero (Services/Contact)
========================= */
.page-hero{
  padding:70px 0 0;
  background:
    radial-gradient(900px 420px at 50% -160px, rgba(14,165,166,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.20)) !important;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.page-hero-inner{
  text-align:center;
  padding:0 18px 26px;
  max-width:860px;
  margin:0 auto;
}
.page-hero-inner h1{
  margin:0 0 10px;
  font-size:clamp(30px, 4.2vw, 44px);
  letter-spacing:-.02em;
}
.page-hero-inner p{margin:0;color:var(--muted)}

/* Divider */
.wave-divider{
  height:44px;
  background:
    radial-gradient(120px 26px at 10% 50%, rgba(14,165,166,.18), transparent 70%),
    radial-gradient(140px 30px at 40% 50%, rgba(37,99,235,.16), transparent 70%),
    radial-gradient(160px 34px at 75% 50%, rgba(14,165,166,.14), transparent 70%);
  opacity:.9;
}

/* Sections */
.section{padding:70px 0}

/* =========================
   Glass Pills (Services + Contact)
========================= */
.glass-pills{
  list-style:none;
  margin: 18px 0 0;
  padding: 0;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  justify-content:center;
  align-items:center;
}

.glass-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  box-shadow: var(--glass-pill-shadow);
  color: var(--glass-pill-text);
  text-decoration:none;
  font-weight: 900;
  letter-spacing: .1px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.glass-pill:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.36);
  box-shadow: 0 18px 55px rgba(2,6,23,.28);
}
.glass-pill:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(14,165,166,.22), 0 18px 55px rgba(2,6,23,.28);
}

.glass-pill .pill-ico{
  width: 28px;height: 28px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 14px;
}

/* Readable on light pages */
.pills-on-light{
  --glass-pill-bg: rgba(15,23,42,.06);
  --glass-pill-border: rgba(15,23,42,.10);
  --glass-pill-text: rgba(15,23,42,.92);
  --glass-pill-shadow: 0 14px 40px rgba(2,6,23,.08);
}
.pills-on-light .glass-pill:hover{
  background: rgba(14,165,166,.10);
  border-color: rgba(14,165,166,.18);
}

@media (max-width: 720px){
  .glass-pills{ justify-content:flex-start; }
  .glass-pill{ width: 100%; justify-content:flex-start; }
}

/* =========================
   Contact Page Layout + Form
========================= */
.muted{color:var(--muted)}

.contact-wrap{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items:start;
}

.contact-left{padding: 6px 0;}

.contact-h2{
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.02em;
}

.contact-pills{ justify-content:flex-start; }
.contact-footnote{ margin-top: 14px; }

.contact-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.35)) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(2,6,23,.12) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-form{
  margin-top: 14px;
  display:grid;
  gap: 12px;
}

.form-row{
  display:grid;
  gap: 6px;
}
.form-row label{
  font-weight: 900;
  font-size: 13px;
  color: rgba(15,23,42,.78);
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.16);
  background: rgba(255,255,255,.65);
  padding: 12px 12px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.contact-form textarea{resize: vertical; min-height: 140px;}

.contact-form input:focus,
.contact-form textarea:focus{
  background: rgba(255,255,255,.85);
  box-shadow: var(--focus);
  border-color: rgba(14,165,166,.35);
}

.contact-submit{
  margin-top: 6px;
  justify-content:center;
}

@media (max-width: 900px){
  .contact-wrap{ grid-template-columns: 1fr; }
}

/* Notices + auto-hide animation */
.notice{
  margin: 14px auto 0;
  max-width: 820px;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 30px rgba(2,6,23,.06);
  transition: opacity .35s ease, transform .35s ease;
}
.notice.success{ border-color: rgba(14,165,166,.25); }
.notice.error{ border-color: rgba(239,68,68,.25); }

.notice.is-hiding{
  opacity: 0;
  transform: translateY(-6px);
  pointer-events:none;
}

/* =========================
   Scroll Reveal (used on pages)
========================= */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity:0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
  }
  .reveal.is-visible{opacity:1;transform: translateY(0);}

  .reveal-stagger .reveal-item{
    opacity:0;
    transform: translateY(16px);
    transition: opacity .65s ease, transform .65s ease;
  }
  .reveal-stagger.is-visible .reveal-item{opacity:1;transform: translateY(0);}

  .reveal-stagger.is-visible .reveal-item:nth-child(1){transition-delay:.05s}
  .reveal-stagger.is-visible .reveal-item:nth-child(2){transition-delay:.12s}
  .reveal-stagger.is-visible .reveal-item:nth-child(3){transition-delay:.19s}
  .reveal-stagger.is-visible .reveal-item:nth-child(4){transition-delay:.26s}
}

@media (prefers-reduced-motion: reduce){
  .reveal,
  .reveal-stagger .reveal-item{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

/* =========================
   Footer + Social Icons
========================= */
.site-footer{
  background:#0b1220;
  color:#e5e7eb;
  padding:56px 0 22px;
  margin-top:30px;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap:24px;
  align-items:start;
}

.footer-brand{display:flex;gap:12px;align-items:flex-start}
.footer-logo{
  width:44px;height:44px;border-radius:12px;
  background: radial-gradient(circle at 30% 30%, #5EEAD4 0%, #0EA5A6 40%, #2563EB 100%);
}
.footer-name{font-weight:900;font-size:18px}
.footer-title{font-weight:900;margin-bottom:10px}

.footer-col a{
  display:block;
  color:#e5e7eb;
  opacity:.92;
  padding:6px 0;
}
.footer-col a:hover{opacity:1}
.footer-muted{color:#9ca3af;font-size:13px}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:18px;
  margin-top:22px;
  border-top:1px solid rgba(255,255,255,.10);
  flex-wrap:wrap;
}

/* Social icons in footer (real colors) */
.footer-social{
  display:flex;
  gap:14px;
  margin-top:16px;
}

.footer-social .social{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.20);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.footer-social .social:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.footer-social svg{
  width:18px;
  height:18px;
  fill: currentColor;
}

/* Brand colors */
.social.facebook{ color:#1877F2; }
.social.linkedin{ color:#0A66C2; }
.social.x{ color:#ffffff; }

/* Instagram gradient */
.social.instagram{
  color:#fff;
  background:
    radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
  border:none;
}

/* Hover fill */
.social.facebook:hover{ background:#1877F2; color:#fff; }
.social.linkedin:hover{ background:#0A66C2; color:#fff; }
.social.x:hover{ background:#000; color:#fff; }
.social.instagram:hover{ filter: brightness(1.08); }

@media (max-width: 980px){
  .footer-grid{grid-template-columns:1fr}
}
/* =========================================
   CONTACT: make the form card feel integrated
   (paste at VERY bottom of style.css)
========================================= */

/* Give the whole contact row a shared soft panel */
.contact-wrap{
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(14,165,166,.10), transparent 60%),
    radial-gradient(900px 420px at 80% 0%, rgba(37,99,235,.08), transparent 62%),
    rgba(255,255,255,.18);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 28px 90px rgba(2,6,23,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Align the card vertically with the left column */
.contact-right{
  align-self: start;
}

/* The “box” itself: less white, more glass */
.contact-card{
  background: rgba(255,255,255,.42) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: 0 18px 60px rgba(2,6,23,.10) !important;
  border-radius: 24px;
  padding: 22px;
}

/* Subtle top gradient so it blends into the background */
.contact-card::before{
  content:"";
  display:block;
  height: 10px;
  margin: -22px -22px 14px;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(to bottom, rgba(255,255,255,.40), rgba(255,255,255,0));
}

/* Inputs: reduce the “white form” vibe */
.contact-form input,
.contact-form textarea{
  background: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(15,23,42,.12) !important;
}

/* Labels: a touch softer */
.form-row label{
  color: rgba(15,23,42,.70) !important;
}

/* Button: match pill/CTA softness and spacing */
.contact-submit{
  width: 100%;
  padding: 14px 18px;
  box-shadow: 0 18px 45px rgba(14,165,166,.22);
}

/* Mobile: remove the big panel padding so it doesn't feel boxed-in */
@media (max-width: 900px){
  .contact-wrap{ padding: 18px; }
}
/* =========================================
   CONTACT: reduce "too many boxes"
   (paste at VERY bottom of style.css)
========================================= */

/* Keep the nice shared glass panel, but soften it a touch */
.contact-wrap{
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.14) !important;
  box-shadow: 0 24px 70px rgba(2,6,23,.07) !important;
}

/* Right card: keep it, but slightly less “panel-y” */
.contact-card{
  background: rgba(255,255,255,.38) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 18px 55px rgba(2,6,23,.09) !important;
}

/* REMOVE the extra “cap” bar that adds another visual box */
.contact-card::before{
  display:none !important;
}

/* The big win: make fields feel “embedded” instead of boxed */
.contact-form input,
.contact-form textarea{
  background: rgba(255,255,255,.18) !important;   /* less boxy */
  border: 1px solid rgba(15,23,42,.10) !important; /* subtle */
  box-shadow: none !important;
}

/* Give focus a clean glow (no heavy borders) */
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(14,165,166,.35) !important;
  box-shadow: 0 0 0 4px rgba(14,165,166,.18) !important;
  background: rgba(255,255,255,.28) !important;
}

/* Optional: make inputs a bit “pill” like the chips (looks cleaner) */
.contact-form input{
  border-radius: 999px !important;
}
.contact-form textarea{
  border-radius: 18px !important;
}

/* Labels: lighter so they don't look like their own blocks */
.form-row label{
  font-weight: 800 !important;
  color: rgba(15,23,42,.65) !important;
}
/* =========================================
   MOBILE HAMBURGER + DROPDOWN NAV
   (paste at bottom of style.css)
========================================= */

/* Shell to hold button + nav */
.nav-shell{
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle{
  display:none;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
}

.nav-toggle:focus-visible{
  outline:none;
  box-shadow: var(--focus);
}

/* Hamburger bars */
.nav-toggle-bars{
  display:block;
  width:22px;
  height:2px;
  background: rgba(15,23,42,.82);
  margin:0 auto;
  position:relative;
  border-radius:999px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background: rgba(15,23,42,.82);
  border-radius:999px;
}
.nav-toggle-bars::before{ top:-7px; }
.nav-toggle-bars::after{ top:7px; }

/* Hide "current page" item in nav (About hides on About, etc.) */
.menu > li.current-menu-item,
.menu > li.current_page_item,
.menu > li.current-menu-ancestor{
  /* ancestor is optional; comment out if you DON'T want parent hidden when on child pages */
  /* display:none; */
}

/* Only hide the exact current page item */
.menu > li.current-menu-item,
.menu > li.current_page_item{
  display:none;
}

/* Also remove its divider so you don’t get odd separators */
.menu > li.current-menu-item + li::before,
.menu > li.current_page_item + li::before{
  display:none;
}

/* =========================================
   MOBILE HAMBURGER + DROPDOWN NAV (FINAL)
========================================= */

/* Desktop: show normal nav, hide hamburger */
.nav-toggle{ display:none; }

/* Mobile */
@media (max-width: 900px){

  /* Show hamburger */
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border-radius:14px;
    border:1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor:pointer;
  }

  .nav-toggle:focus-visible{
    outline:none;
    box-shadow: var(--focus);
  }

  /* Bars */
  .nav-toggle-bars{
    display:block;
    width:22px;
    height:2px;
    background: rgba(15,23,42,.82);
    margin:0 auto;
    position:relative;
    border-radius:999px;
  }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after{
    content:"";
    position:absolute;
    left:0;
    width:22px;
    height:2px;
    background: rgba(15,23,42,.82);
    border-radius:999px;
  }
  .nav-toggle-bars::before{ top:-7px; }
  .nav-toggle-bars::after{ top:7px; }

  /* Hide desktop horizontal nav behavior */
  .main-nav{ display:block; }

  /* The dropdown panel: target YOUR nav exactly */
  #primary-menu.main-nav{
    position:absolute;
    top: calc(100% + 10px);

    /* Key: give breathing room from screen edge */
    right: 12px;
    left: auto;

    width: min(92vw, 360px);
    box-sizing: border-box;

    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(2,6,23,.14);

    /* Panel padding */
    padding: 14px;

    opacity:0;
    pointer-events:none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 99999;
  }

  /* Open state (this is what your JS will toggle) */
  .site-header.nav-open #primary-menu.main-nav{
    opacity:1;
    pointer-events:auto;
    transform: translateY(0);
  }

  /* Make menu vertical */
  #primary-menu .menu{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin:0;
    padding: 8px;              /* inner cushion so text never hugs edge */
    list-style:none;
    box-sizing:border-box;
  }

  /* Remove desktop dividers */
  #primary-menu .menu > li + li::before{ display:none; }

  /* Links spacing */
  #primary-menu .menu > li > a{
    display:block;
    width:100%;
    padding: 12px 16px;        /* <- THIS fixes your “too close to edge” */
    border-radius: 12px;
    font-weight: 800;
    color:#0f172a;
    box-sizing:border-box;
  }

  #primary-menu .menu > li > a:hover{
    background: rgba(14,165,166,.10);
  }

  /* Submenus on mobile: stack neatly */
  #primary-menu .menu li .sub-menu{
    position: static;
    display:block;
    box-shadow:none;
    border:none;
    padding: 6px 0 0;
    background: transparent;
    min-width: 0;
    margin:0;
  }

  #primary-menu .sub-menu a{
    padding:10px 16px;
    border-radius: 12px;
    background: rgba(15,23,42,.04);
    display:block;
  }

  #primary-menu .sub-menu a:hover{
    background: rgba(14,165,166,.10);
  }

  /* Hide current page item on mobile dropdown (optional) */
  #primary-menu .menu > li.current-menu-item,
  #primary-menu .menu > li.current_page_item{
    display:none;
  }

  /* Center Book Now on mobile (your existing request) */
  .header-actions{
    grid-column: 1 / -1;
    justify-content:center;
    margin-top:6px;
  }
}

/* When logged in, WP admin bar pushes sticky header */
body.admin-bar .site-header{ top: 32px; }
@media (max-width: 782px){
  body.admin-bar .site-header{ top: 46px; }
}
