/* ==========================================================================
   IVENA Site Chrome — global header (.ivh) and footer (.ivf)
   Brand: deep green #21372c · tan #bc9871 · cream #f6ede0 · Bagind / Gotham
   Every rule is scoped under .ivh / .ivf so theme and Elementor kit styles cannot leak in.
   ========================================================================== */

@font-face { font-family: "IV Bagind"; src: url("../fonts/Bagind.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "IV Gotham"; src: url("../fonts/GothamBold Regular.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --ivh-h: 84px;            /* header height; the spacer reserves it */
  --ivh-h-compact: 68px;
}

.ivh, .ivf {
  --iv-green-950: #111c16;
  --iv-green-900: #172820;
  --iv-green: #21372c;
  --iv-green-700: #2b3e35;
  --iv-tan: #bc9871;
  --iv-tan-300: #d8bf9c;
  --iv-cream: #f6ede0;
  --iv-paper: #fbf7f1;
  --iv-ink: #1b2a22;
  --iv-display: "Bagind", "IV Bagind", Georgia, serif;
  --iv-label: "GothamBold Regular", "IV Gotham", "Montserrat", system-ui, sans-serif;
  --iv-body: "Manrope", "OpenSans-Regular", system-ui, -apple-system, "Segoe UI", sans-serif;
  --iv-ease: cubic-bezier(.2, .7, .1, 1);
  --iv-max: 1320px;
  --iv-gutter: clamp(1.25rem, 3.2vw, 2.5rem);
  font-family: var(--iv-body);
  -webkit-font-smoothing: antialiased;
}
.ivh *, .ivh *::before, .ivh *::after, .ivf *, .ivf *::before, .ivf *::after { box-sizing: border-box; }
.ivh :where(ul, ol, li, p, dl, dt, dd, h2, figure), .ivf :where(ul, ol, li, p, dl, dt, dd, h2, figure) { margin: 0; padding: 0; list-style: none; }
.ivh :where(a), .ivf :where(a) { color: inherit; text-decoration: none; }
.ivh :where(img, svg), .ivf :where(img, svg) { display: block; max-width: none; }
.ivh :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; }
/* author display rules must never resurrect hidden UI (the closed drawer would otherwise cover the page) */
.ivh [hidden], .ivf [hidden] { display: none !important; }
.ivh .iv-sr, .ivf .iv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ivh :focus-visible, .ivf :focus-visible { outline: 2px solid var(--iv-tan); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Header
   ========================================================================== */

.ivh-spacer { height: var(--ivh-h); }

.ivh {
  position: fixed; z-index: 999; inset: 0 0 auto 0;
  color: var(--iv-green);
  transition: transform .45s var(--iv-ease);
}
.admin-bar .ivh { top: var(--wp-admin--admin-bar--height, 32px); }
.ivh.is-hidden:not(.is-open) { transform: translateY(calc(-100% - 2px)); }

.ivh__bar {
  position: relative;
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem);
  height: var(--ivh-h);
  padding: 0 max(var(--iv-gutter), calc((100% - var(--iv-max)) / 2));
  background: rgba(251, 247, 241, .9);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(33, 55, 44, .08);
  transition: height .35s var(--iv-ease), box-shadow .35s var(--iv-ease), background-color .35s;
}
.ivh.is-scrolled .ivh__bar { height: var(--ivh-h-compact); box-shadow: 0 10px 30px -18px rgba(17, 28, 22, .35); }

.ivh__brand { flex: none; display: block; }
.ivh .ivh__brand img { height: 46px; width: auto; transition: height .35s var(--iv-ease); }
.ivh.is-scrolled .ivh__brand img { height: 40px; }

/* desktop navigation */
.ivh__nav { flex: 1; display: flex; justify-content: center; }
.ivh__menu { display: flex; align-items: center; gap: clamp(.25rem, 1.2vw, 1.25rem); }
.ivh__item { position: static; display: flex; align-items: center; }
.ivh .ivh__link {
  position: relative; display: block; padding: .8rem .55rem;
  font: 700 .74rem/1 var(--iv-label); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(33, 55, 44, .82);
  transition: color .25s;
}
.ivh .ivh__link::after {
  content: ""; position: absolute; left: .55rem; right: .55rem; bottom: .35rem; height: 1.5px;
  background: var(--iv-tan); transform: scaleX(0); transition: transform .35s var(--iv-ease);
}
.ivh .ivh__link:hover, .ivh .ivh__link[aria-current="page"] { color: var(--iv-green); }
.ivh .ivh__link:hover::after, .ivh .ivh__link[aria-current="page"]::after { transform: scaleX(1); }
.ivh .ivh__toggle { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-left: -.35rem; color: rgba(33, 55, 44, .7); border-radius: 50%; }
.ivh .ivh__toggle svg { width: .8rem; height: .8rem; transition: transform .3s var(--iv-ease); }
.ivh .has-panel.is-open .ivh__toggle svg { transform: rotate(180deg); }

/* products panel */
.ivh__panel {
  position: absolute; left: 50%; top: calc(100% - 1px);
  width: min(980px, calc(100vw - 2 * var(--iv-gutter)));
  padding-top: .75rem; /* hover bridge between the bar and the card */
  transform: translate(-50%, 8px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--iv-ease), transform .3s var(--iv-ease), visibility 0s .3s;
}
.ivh .has-panel.is-open .ivh__panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .25s var(--iv-ease), transform .3s var(--iv-ease), visibility 0s;
}
.ivh__panel-inner {
  display: grid; grid-template-columns: 15rem 1fr; gap: 2rem;
  padding: 2rem;
  background: var(--iv-paper);
  border: 1px solid rgba(33, 55, 44, .08); border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(17, 28, 22, .45);
}
.ivh__panel-intro { display: flex; flex-direction: column; gap: .8rem; padding-right: 1.5rem; border-right: 1px solid rgba(33, 55, 44, .1); }
.ivh .ivh__eyebrow, .ivh .ivh__family-name { font: 700 .66rem/1.2 var(--iv-label); letter-spacing: .22em; text-transform: uppercase; color: #9a7650; }
.ivh .ivh__panel-title { font: 400 1.65rem/1.15 var(--iv-display); color: var(--iv-green); }
.ivh .ivh__panel-all { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font: 700 .7rem/1 var(--iv-label); letter-spacing: .14em; text-transform: uppercase; color: var(--iv-green); }
.ivh .ivh__panel-all svg { width: .9rem; height: .9rem; transition: transform .3s var(--iv-ease); }
.ivh .ivh__panel-all:hover svg { transform: translateX(3px); }
.ivh__families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.ivh__family ul { display: grid; gap: .25rem; margin-top: .6rem; }
.ivh .ivh__product { display: flex; align-items: center; gap: .7rem; padding: .35rem .5rem .35rem .35rem; margin-left: -.35rem; border-radius: 12px; transition: background-color .2s; }
.ivh .ivh__product:hover, .ivh .ivh__product[aria-current="page"] { background: rgba(188, 152, 113, .14); }
.ivh .ivh__product img, .ivh .ivh__thumb { flex: none; width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; }
.ivh .ivh__thumb { display: grid; place-items: center; border: 1px solid rgba(188, 152, 113, .35); }
.ivh .ivh__thumb::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--iv-tan); }
.ivh .ivh__product span { font: 400 1.08rem/1.15 var(--iv-display); color: var(--iv-green); }

/* actions */
.ivh__actions { flex: none; display: flex; align-items: center; gap: .6rem; }
.ivh__socials { display: flex; gap: .35rem; }
.ivh .ivh__social {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid rgba(33, 55, 44, .16); color: var(--iv-green);
  transition: background-color .25s, color .25s, border-color .25s;
}
.ivh .ivh__social svg { width: .95rem; height: .95rem; fill: currentColor; }
.ivh .ivh__social:hover { background: var(--iv-green); border-color: var(--iv-green); color: var(--iv-cream); }
.ivh .ivh__cta {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.35rem; margin-left: .35rem;
  border-radius: 999px; background: var(--iv-green); color: var(--iv-cream);
  font: 700 .72rem/1 var(--iv-label); letter-spacing: .15em; text-transform: uppercase;
  transition: background-color .25s, color .25s, transform .25s var(--iv-ease);
}
.ivh .ivh__cta:hover, .ivh .ivh__cta[aria-current="page"] { background: var(--iv-tan); color: var(--iv-green-950); }
.ivh .ivh__cta:hover { transform: translateY(-1px); }

/* burger */
.ivh .ivh__burger { display: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(33, 55, 44, .16); place-items: center; }
.ivh__burger-lines { position: relative; display: block; width: 1.1rem; height: .7rem; }
.ivh__burger-lines span { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: var(--iv-green); transition: transform .35s var(--iv-ease), top .35s var(--iv-ease); }
.ivh__burger-lines span:first-child { top: 0; }
.ivh__burger-lines span:last-child { top: calc(100% - 1.6px); }
.ivh.is-open .ivh__burger-lines span:first-child { top: calc(50% - .8px); transform: rotate(45deg); }
.ivh.is-open .ivh__burger-lines span:last-child { top: calc(50% - .8px); transform: rotate(-45deg); }

/* drawer (tablet & phone) */
.ivh__drawer {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--ivh-h);
  display: flex; flex-direction: column; gap: 2rem;
  padding: 1.5rem var(--iv-gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  background:
    linear-gradient(rgba(23, 40, 32, .9), rgba(17, 28, 22, .96)),
    url("../img/pattern.webp") center / 900px auto;
  color: var(--iv-cream);
  opacity: 0; transform: translateY(-10px);
  transition: opacity .3s var(--iv-ease), transform .35s var(--iv-ease);
}
.admin-bar .ivh__drawer { top: calc(var(--ivh-h) + var(--ivh-admin-visible, var(--wp-admin--admin-bar--height, 46px))); }
.ivh.is-open .ivh__drawer { opacity: 1; transform: none; }
.ivh__dnav > ul > li { border-bottom: 1px solid rgba(246, 237, 224, .12); }
.ivh .ivh__dlink, .ivh .ivh__dtoggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 1.05rem 0; font: 400 clamp(1.6rem, 1.2rem + 2vw, 2.1rem)/1.1 var(--iv-display); color: var(--iv-cream); text-align: left;
}
.ivh .ivh__dlink[aria-current="page"] { color: var(--iv-tan-300); }
.ivh .ivh__dtoggle svg { width: 1.2rem; height: 1.2rem; color: var(--iv-tan); transition: transform .3s var(--iv-ease); }
.ivh .ivh__dtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ivh__dsub { padding: 0 0 1.4rem; display: grid; gap: .4rem; }
.ivh .ivh__dsub .ivh__family-name { margin-top: .8rem; color: var(--iv-tan); }
.ivh__dsub ul { display: grid; gap: .1rem; }
.ivh .ivh__dsub a { display: block; padding: .35rem 0; font: 400 1.2rem/1.2 var(--iv-display); color: rgba(246, 237, 224, .85); }
.ivh .ivh__dsub a[aria-current="page"] { color: var(--iv-tan-300); }
.ivh .ivh__dsub .ivh__panel-all { display: inline-flex; margin-top: 1rem; padding: .35rem 0; font: 700 .7rem/1 var(--iv-label); letter-spacing: .14em; color: var(--iv-tan-300); }
.ivh__dfoot { margin-top: auto; display: grid; gap: .6rem; }
.ivh .ivh__dcontact { font: 700 .78rem/1.4 var(--iv-label); letter-spacing: .08em; color: rgba(246, 237, 224, .8); word-break: break-all; }
.ivh__dsocials { display: flex; gap: .5rem; margin-top: .6rem; }
.ivh__dsocials .ivh__social { border-color: rgba(246, 237, 224, .25); color: var(--iv-cream); }
.ivh__dsocials .ivh__social:hover { background: var(--iv-cream); color: var(--iv-green); }

html.ivh-lock, html.ivh-lock body { overflow: hidden; }

@media (max-width: 1100px) {
  :root { --ivh-h: 68px; --ivh-h-compact: 60px; }
  .ivh__nav, .ivh__socials { display: none; }
  .ivh__bar { justify-content: space-between; }
  .ivh .ivh__burger { display: grid; }
  .ivh .ivh__brand img { height: 38px; }
  .ivh.is-scrolled .ivh__brand img { height: 34px; }
  .ivh.is-scrolled .ivh__drawer { top: var(--ivh-h-compact); }
}
@media (max-width: 560px) {
  :root { --ivh-h: 62px; --ivh-h-compact: 56px; }
  .ivh .ivh__cta { display: none; }
  .ivh .ivh__brand img { height: 34px; }
  .ivh.is-scrolled .ivh__brand img { height: 30px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ivf {
  position: relative; isolation: isolate;
  background: var(--iv-green-950);
  color: rgba(246, 237, 224, .82);
  font-size: .95rem; line-height: 1.6;
  overflow: hidden;
}
.ivf::before { /* brand leaf pattern, kept quiet */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background: url("../img/pattern.webp") center / 1200px auto;
}
.ivf::after { /* soft light from the top-left, echoing the story's warm key light */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 10% 0%, rgba(188, 152, 113, .12), transparent 60%), linear-gradient(180deg, rgba(17, 28, 22, .55), rgba(17, 28, 22, .92));
}
.ivf__wrap { max-width: calc(var(--iv-max) + 2 * var(--iv-gutter)); margin: 0 auto; padding: 0 var(--iv-gutter); }

.ivf__lead {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(188, 152, 113, .22);
}
.ivf .ivf__eyebrow { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font: 700 .7rem/1.3 var(--iv-label); letter-spacing: .24em; text-transform: uppercase; color: var(--iv-tan); }
.ivf .ivf__eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.ivf .ivf__statement { max-width: 22ch; font: 400 clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem)/1.08 var(--iv-display); color: var(--iv-cream); text-wrap: balance; }
.ivf__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.ivf .ivf__btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; padding: 0 1.5rem;
  border-radius: 999px; border: 1px solid rgba(246, 237, 224, .35); color: var(--iv-cream);
  font: 700 .74rem/1 var(--iv-label); letter-spacing: .15em; text-transform: uppercase;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--iv-ease);
}
.ivf .ivf__btn svg { width: .95rem; height: .95rem; }
.ivf .ivf__btn:hover { border-color: var(--iv-cream); background: rgba(246, 237, 224, .08); transform: translateY(-1px); }
.ivf .ivf__btn--primary { background: var(--iv-tan); border-color: var(--iv-tan); color: var(--iv-green-950); }
.ivf .ivf__btn--primary:hover { background: var(--iv-tan-300); border-color: var(--iv-tan-300); }

.ivf__grid {
  display: grid; grid-template-columns: 1.35fr 1fr .8fr 1.25fr; gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.75rem, 6vw, 4rem) 0;
}
.ivf .ivf__badge {
  display: inline-block; width: 7.5rem; padding: .55rem;
  background: #fff; border: 2px solid var(--iv-tan); border-radius: 18px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6);
}
.ivf .ivf__badge img { width: 100%; height: auto; }
.ivf .ivf__about { max-width: 28ch; margin-top: 1.4rem; color: rgba(246, 237, 224, .7); }
.ivf__socials { display: flex; gap: .45rem; margin-top: 1.4rem; }
.ivf .ivf__social {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid rgba(246, 237, 224, .22); color: var(--iv-cream);
  transition: background-color .25s, color .25s, border-color .25s;
}
.ivf .ivf__social svg { width: 1rem; height: 1rem; fill: currentColor; }
.ivf .ivf__social:hover { background: var(--iv-cream); border-color: var(--iv-cream); color: var(--iv-green); }

.ivf .ivf__heading { margin: 0 0 1.25rem; font: 700 .68rem/1.2 var(--iv-label); letter-spacing: .24em; text-transform: uppercase; color: var(--iv-tan); }
.ivf__list { display: grid; gap: .55rem; }
.ivf .ivf__list a { position: relative; color: rgba(246, 237, 224, .78); transition: color .2s; }
.ivf .ivf__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--iv-tan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--iv-ease); }
.ivf .ivf__list a:hover, .ivf .ivf__list a[aria-current="page"] { color: var(--iv-cream); }
.ivf .ivf__list a:hover::after { transform: scaleX(1); }
.ivf__contact { display: grid; gap: 1.1rem; }
.ivf .ivf__contact dt { font: 700 .62rem/1.2 var(--iv-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 237, 224, .5); margin-bottom: .3rem; }
.ivf .ivf__contact dd { color: rgba(246, 237, 224, .86); overflow-wrap: anywhere; }
.ivf .ivf__contact a { border-bottom: 1px solid rgba(188, 152, 113, .45); transition: border-color .2s, color .2s; }
.ivf .ivf__contact a:hover { color: var(--iv-cream); border-color: var(--iv-tan); }

.ivf__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(246, 237, 224, .1);
  font-size: .82rem; color: rgba(246, 237, 224, .5);
}
.ivf .ivf__top { display: inline-flex; align-items: center; gap: .6rem; font: 700 .66rem/1 var(--iv-label); letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 237, 224, .65); transition: color .2s; }
.ivf .ivf__top svg { width: 2.2rem; height: 2.2rem; padding: .6rem; border-radius: 50%; border: 1px solid rgba(246, 237, 224, .22); transition: background-color .25s, color .25s; }
.ivf .ivf__top:hover { color: var(--iv-cream); }
.ivf .ivf__top:hover svg { background: var(--iv-cream); color: var(--iv-green); }

@media (max-width: 1024px) {
  .ivf__grid { grid-template-columns: 1fr 1fr; }
  .ivf__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 1.5rem; align-items: center; }
  .ivf .ivf__about { margin-top: 0; }
  .ivf__socials { grid-column: 2; margin-top: .8rem; }
}
@media (max-width: 600px) {
  .ivf__lead { flex-direction: column; align-items: flex-start; }
  .ivf__grid { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .ivf__brand { grid-template-columns: 1fr; }
  .ivf .ivf__badge { width: 6.25rem; }
  .ivf .ivf__about { margin-top: 1.2rem; }
  .ivf__socials { grid-column: 1; }
  .ivf__col:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .ivh, .ivh *, .ivf * { transition: none !important; }
}
/* Keep the logged-in homepage toolbar from wrapping over the mobile menu. */
@media (max-width:782px) {
 body.page-id-874 #wpadminbar #wp-admin-bar-root-default { display:flex; flex-wrap:nowrap; width:calc(100% - 52px); height:46px; overflow:hidden; }
 body.page-id-874 #wpadminbar #wp-admin-bar-root-default > li { flex-shrink:0; }
 body.page-id-874 #wpadminbar #wp-admin-bar-top-secondary { position:absolute; right:0; top:0; }
}
