/*
Theme Name: Izuba Workshops
Theme URI: https://izubaworkshops.com.au
Description: Izuba Workshops site, built from the Claude Design project. Pages are pre-rendered HTML kept interactive by a small vanilla runtime (no React).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: izuba
*/

/* ---- fallback fonts sized like the web fonts (no layout shift on font swap) ---- */
@font-face { font-family: BricolageFallback; font-weight: 100 450; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Roboto"), local("Roboto-Regular"); size-adjust: 104%; ascent-override: 89.4%; descent-override: 26.0%; line-gap-override: 0%; }
@font-face { font-family: BricolageFallback; font-weight: 451 550; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Roboto"), local("Roboto-Regular"); size-adjust: 105.5%; ascent-override: 88.2%; descent-override: 25.6%; line-gap-override: 0%; }
@font-face { font-family: BricolageFallback; font-weight: 551 650; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 101%; ascent-override: 92.1%; descent-override: 26.7%; line-gap-override: 0%; }
@font-face { font-family: BricolageFallback; font-weight: 651 750; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 102%; ascent-override: 91.2%; descent-override: 26.5%; line-gap-override: 0%; }
@font-face { font-family: BricolageFallback; font-weight: 751 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 100.5%; ascent-override: 92.5%; descent-override: 26.9%; line-gap-override: 0%; }
@font-face { font-family: AntonFallback; src: local("Impact"); size-adjust: 94.5%; ascent-override: 124.9%; descent-override: 34.9%; line-gap-override: 0%; }
@font-face { font-family: AntonFallbackArial; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 69.6%; ascent-override: 169.5%; descent-override: 47.4%; line-gap-override: 0%; }

/* ---- global (from the design's <helmet>) ---- */
html{scroll-behavior:smooth}body{margin:0;background:#FFFFFF;-webkit-font-smoothing:antialiased}a{color:#CE5A43;text-decoration:none}a:hover{color:#2B1A12}@keyframes izTick{to{transform:translateX(-50%)}}@keyframes izRow{to{transform:translateX(-50%)}}@keyframes izSpin{to{transform:rotate(360deg)}}

/* ---- runtime markers ---- */
iz-if, iz-for { display: contents; }
[hidden] { display: none !important; }

/* ---- width-driven layout (was computed from window.innerWidth in the design) ---- */
:root {
  --iz-bkCols: repeat(4, minmax(0, 1fr));
  --iz-fqNavDir: column;
  --iz-fqCols: minmax(200px, 260px) minmax(0, 1fr);
  --iz-ctCols: minmax(0, .9fr) minmax(0, 1.1fr);
  --iz-wkCols: minmax(0, 1.35fr) minmax(320px, 1fr);
  --iz-pvCols: minmax(0, 1fr) minmax(0, 1fr);
  --iz-coCols: minmax(0, 1.5fr) minmax(300px, 1fr);
  --iz-acCols: minmax(0, 1fr) minmax(0, 1fr);
  --iz-poPos: sticky;
  --iz-poDir: column;
  --iz-poCols: minmax(200px, 260px) minmax(0, 1fr);
  --iz-svc-on: 4 1 0%;
  --iz-svc-off: 1 1 0%;
}
@media (max-width: 1179px) { [data-w="storyWide"] { display: none !important; } }
@media (min-width: 1180px) { [data-w="storyNarrow"] { display: none !important; } }
@media (max-width: 1119px) { [data-w="isWide"] { display: none !important; } }
@media (max-width: 899px) {
  :root {
    --iz-bkCols: repeat(2, minmax(0, 1fr));
    --iz-ctCols: minmax(0, 1fr);
    --iz-wkCols: minmax(0, 1fr);
    --iz-pvCols: minmax(0, 1fr);
    --iz-coCols: minmax(0, 1fr);
    --iz-acCols: minmax(0, 1fr);
  }
}
/* header: burger menu up to 1023px (the desktop nav does not fit on portrait tablets) */
@media (min-width: 1024px) { [data-w="isMobile"] { display: none !important; } }
@media (max-width: 1023px) { [data-w="isDesktop"] { display: none !important; } }
@media (max-width: 819px) {
  :root {
    --iz-fqNavDir: row;
    --iz-fqCols: minmax(0, 1fr);
    --iz-poPos: static;
    --iz-poDir: row;
    --iz-poCols: minmax(0, 1fr);
    --iz-svc-on: 1 1 100%;
    --iz-svc-off: 1 1 100%;
  }
}
@media (max-width: 519px) { :root { --iz-bkCols: minmax(0, 1fr); } }
@media (max-width: 479px) { [data-w="showBook"] { display: none !important; } }

/* ---- logged-in admin bar: keep the sticky header below it ---- */
.admin-bar #iz-root header { top: 32px !important; }
@media (max-width: 782px) { .admin-bar #iz-root header { top: 46px !important; } }

/* ---- fallback layout for regular WordPress content (posts, extra pages) ---- */
.iz-fallback { max-width: 760px; margin: 0 auto; padding: 64px clamp(18px, 4vw, 40px); font: 400 17px/1.6 'Bricolage Grotesque', BricolageFallback, sans-serif; color: #2B1A12; }
.iz-fallback h1, .iz-fallback h2 { font-family: Anton, AntonFallback, AntonFallbackArial, sans-serif; font-weight: 400; text-transform: uppercase; line-height: 1.05; }
.iz-fallback .iz-back { display: inline-block; margin-bottom: 32px; font-weight: 600; }

/* ---- hover states (style-hover in the design) ---- */
.izh1izg8km:hover { background: rgb(184, 78, 57) !important; color: rgb(255, 251, 244) !important; }
.izhq5mf4m:hover { background: rgb(243, 246, 249) !important; color: rgb(43, 26, 18) !important; }
.izhgmxiaj:hover { transform: scale(1.08) !important; }
.izh1eiwsrp:hover { color: rgb(255, 190, 152) !important; }
.izh1wgg1qe:hover { background: rgb(255, 255, 255) !important; color: rgb(43, 26, 18) !important; }
.izh1ctna2e:hover { background: rgb(243, 246, 249) !important; }
.izht13ix8:hover { background: rgb(206, 90, 67) !important; color: rgb(255, 251, 244) !important; }
.izhjrdvn4:hover { background: rgb(43, 26, 18) !important; color: rgb(255, 251, 244) !important; }
.izh1hpq5x3:hover { background: rgba(255, 251, 244, 0.15) !important; color: rgb(255, 251, 244) !important; }
.izhgmxi8p:hover { transform: scale(1.06) !important; }
.izh12sv6dn:hover { transform: scale(1.08) rotate(-3deg) !important; }
.izh1ck0ujq:hover { color: rgb(206, 90, 67) !important; }
.izh1d71dy5:hover { background: rgb(255, 227, 211) !important; }
.izh1dzvy7h:hover { transform: scale(1.03) !important; box-shadow: rgba(43, 26, 18, 0.22) 0px 24px 50px !important; }
.izh1gropkk:hover { transform: translateY(-8px) rotate(-1.5deg) !important; box-shadow: rgba(43, 26, 18, 0.18) 0px 18px 36px !important; }
.izh1rhllwv:hover { background: rgba(255, 251, 244, 0.12) !important; }
.izh1eizthr:hover { color: rgb(255, 251, 244) !important; }
.izh16zrpwb:hover { transform: translateY(-3px) !important; }
.izhgmxi7s:hover { transform: scale(1.05) !important; }
.izh11hpsay:hover { color: rgb(43, 26, 18) !important; }
.izh1gbicha:hover { transform: translateX(4px) !important; }
.izhmfvdrv:hover { background: rgb(43, 26, 18) !important; transform: translateY(-2px) !important; }
.izh104tgyd:hover { color: rgb(255, 190, 152) !important; transform: translateY(-2px) !important; }
.izhgmxi9m:hover { transform: scale(1.07) !important; }
.izhrms7f5:hover { transform: translateY(-8px) rotate(-1.5deg) !important; }
.izh1i5qmkg:hover { background: rgb(255, 251, 244) !important; color: rgb(43, 26, 18) !important; transform: translateY(-2px) !important; }
.izhlhsvy1:hover { transform: rotate(0deg) scale(1.03) translateY(-6px) !important; }
.izh16zqy62:hover { transform: translateY(-2px) !important; }
.izh1ibctc4:hover { transform: scale(1.1) !important; }
.izhls9xng:hover { background: rgb(206, 90, 67) !important; color: rgb(255, 251, 244) !important; transform: translateY(-2px) !important; }
.izhva73iu:hover { background: rgb(255, 255, 255) !important; color: rgb(43, 26, 18) !important; transform: translateY(-2px) !important; }
.izhqcgqzk:hover { gap: 14px !important; color: rgb(206, 90, 67) !important; }
.izh1lizx2u:hover { background: rgb(255, 255, 255) !important; transform: translateY(-2px) !important; }
.izh1u8iy9q:hover { transform: rotate(0deg) scale(1.06) !important; box-shadow: rgba(43, 26, 18, 0.22) 0px 24px 48px !important; z-index: 3 !important; }
.izh9acf0g:hover { background: rgb(43, 26, 18) !important; color: rgb(255, 251, 244) !important; transform: translateY(-2px) !important; }
.izh1oerpie:hover { background: rgb(243, 246, 249) !important; color: rgb(43, 26, 18) !important; transform: translateY(-2px) !important; }
.izhxdbmxw:hover { background: rgba(255, 251, 244, 0.12) !important; color: rgb(255, 251, 244) !important; transform: translateY(-2px) !important; }
.izh114k0jm:hover { background: rgba(255, 251, 244, 0.14) !important; transform: translateY(-3px) !important; }
.izhw3zdd8:hover { transform: translateY(-6px) rotate(-1deg) !important; }
.izhi1ydb3:hover { color: rgb(43, 26, 18) !important; transform: translateY(-6px) rotate(1deg) !important; }
.izh13g38yx:hover { transform: rotate(0deg) translateX(10px) scale(1.06) !important; }
.izhm74kd2:hover { transform: rotate(0deg) translateX(-10px) scale(1.06) !important; }
.izh1gouu2u:hover { transform: rotate(0deg) scale(1.03) !important; }
.izh1qlh6wa:hover { color: rgb(206, 90, 67) !important; transform: translateX(4px) !important; }

/* ==========================================================================
   Responsive layer (phones & tablets) — appended to style.css by build_theme.py.
   The design's markup uses inline styles, so these rules target them by their
   (browser-serialised) inline style and need !important to win.
   ========================================================================== */

/* ---- Hero booking widget: 4 fields + "Book & pay" button ---- */
@media (max-width: 1023px) {
  #iz-root [style*="minmax(150px, 1fr)"]:has(select):has(> a:last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  #iz-root [style*="minmax(150px, 1fr)"]:has(select):has(> a:last-child) > a:last-child {
    grid-column: 1 / -1;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 14px 18px !important;
  }
  #iz-root [style*="minmax(150px, 1fr)"]:has(select):has(> a:last-child) > :nth-child(4) {
    border-right: none !important;
  }
}
@media (max-width: 599px) {
  #iz-root [style*="minmax(150px, 1fr)"]:has(select):has(> a:last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #iz-root [style*="minmax(150px, 1fr)"]:has(select):has(> a:last-child) > :nth-child(2) {
    border-right: none !important;
  }
  #iz-root [style*="minmax(150px, 1fr)"]:has(select):has(> a:last-child) > :nth-child(-n+4) {
    padding: 10px 12px !important;
  }
  #iz-root [style*="minmax(150px, 1fr)"]:has(select):has(> a:last-child) select {
    font-size: 13.5px !important;
  }
}

/* ---- Card grids: pick a column count that leaves no orphan card ---- */
/* exactly 3 items -> one row of 3 from 600px */
@media (min-width: 600px) and (max-width: 1179px) {
  #iz-root [style*="grid-template-columns: repeat(auto-fit"]:has(> :nth-child(3):last-child):not(:has(> [style*="position: absolute"])) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
/* exactly 4 items -> 2 x 2 on tablets, 4 in a row from 900px */
@media (min-width: 560px) and (max-width: 899px) {
  #iz-root [style*="grid-template-columns: repeat(auto-fit"]:not([style*="minmax(150px"]):has(> :nth-child(4):last-child):not(:has(> [style*="position: absolute"])) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 900px) and (max-width: 1179px) {
  #iz-root [style*="grid-template-columns: repeat(auto-fit"]:not([style*="minmax(150px"]):has(> :nth-child(4):last-child):not(:has(> [style*="position: absolute"])) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ---- Footer: brand block on its own row, then the 4 link columns ---- */
@media (min-width: 560px) and (max-width: 1179px) {
  #iz-root [style*="minmax(170px, 1fr)"]:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  #iz-root [style*="minmax(170px, 1fr)"]:has(> :nth-child(5):last-child) > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 559px) {
  #iz-root [style*="minmax(170px, 1fr)"]:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #iz-root [style*="minmax(170px, 1fr)"]:has(> :nth-child(5):last-child) > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---- Newsletter: form takes the full row once it wraps under the title ---- */
@media (max-width: 1023px) {
  #iz-root [style*="flex: 0 1 440px"] { flex: 1 1 100% !important; }
}

/* ---- Phones ---- */
@media (max-width: 599px) {
  /* "How it goes" step cards: no desktop min-height */
  #iz-root [style*="minmax(240px, 1fr)"] > [style*="min-height"] { min-height: 0 !important; }
  /* "Fancy something else?" cards: landscape photos instead of tall portraits */
  #iz-root [style*="minmax(220px, 1fr)"] [style*="aspect-ratio: 4 / 5"] { aspect-ratio: 4 / 3 !important; }
}
@media (max-width: 440px) {
  /* big Anton page titles: long words (e.g. CUSTOMISATION) must fit */
  #iz-root h1[style*="clamp(60px, 9vw"] { font-size: clamp(38px, 13.2vw, 60px) !important; }
}
@media (max-width: 360px) {
  /* Public / Private toggle */
  #iz-root button[style*="padding: 14px clamp(18px, 3vw, 30px)"] { padding: 12px 12px !important; font-size: 14px !important; }
  /* cart lines: smaller thumbnail so the price fits */
  #iz-root [style*="width: 96px; height: 96px"] { width: 64px !important; height: 64px !important; }
  #iz-root [data-iz-for][style*="gap: 16px"][style*="padding: 12px"] { gap: 10px !important; }
}

/* ---- Image + text rows (e.g. private-event occasions): stay side by side on tablets ---- */
@media (min-width: 600px) and (max-width: 899px) {
  #iz-root [style*="flex: 1 1 380px"]:has(+ [style*="flex: 1 1 340px"]) { flex-basis: 260px !important; }
  #iz-root [style*="flex: 1 1 380px"] + [style*="flex: 1 1 340px"] { flex-basis: 260px !important; }
  #iz-root [style*="flex: 1 1 340px"]:has(+ [style*="flex: 1 1 380px"]) { flex-basis: 260px !important; }
  #iz-root [style*="flex: 1 1 340px"] + [style*="flex: 1 1 380px"] { flex-basis: 260px !important; }
}

/* ---- Phones: small extras ---- */
@media (max-width: 559px) {
  /* home key figures (400+, 90 min, 4, $10): 2 x 2 instead of a tall single column */
  #iz-root [style*="minmax(200px, 1fr)"]:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 599px) {
  /* private-event enquiry: Date + Guests side by side, Workshop on its own full row */
  #iz-root [style*="minmax(150px, 1fr)"]:not(:has(> a:last-child)):has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #iz-root [style*="minmax(150px, 1fr)"]:not(:has(> a:last-child)):has(> :nth-child(3):last-child) > :last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 360px) {
  /* contact cards: long e-mail address may wrap instead of pushing the arrow out */
  #iz-root [style*="flex-direction: column; flex: 1 1 0%"] { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 559px) {
  /* "Four workshops" cards: 2 x 2 with their portrait photos instead of 4 stacked */
  #iz-root [style*="minmax(220px, 1fr)"]:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #iz-root [style*="minmax(220px, 1fr)"]:has(> :nth-child(4):last-child) [style*="aspect-ratio: 4 / 5"] { aspect-ratio: 4 / 5 !important; }
  #iz-root [style*="minmax(220px, 1fr)"]:has(> :nth-child(4):last-child) [style*="justify-content: space-between; align-items: baseline"] { flex-wrap: wrap !important; row-gap: 2px !important; }
}
@media (max-width: 599px) {
  /* cart lines: name/date take the full width beside the photo, quantity + price drop to a second line */
  #iz-root [style*="gap: 16px"]:has(> [style*="width: 96px; height: 96px"]) { flex-wrap: wrap !important; gap: 10px 14px !important; }
  #iz-root [style*="gap: 16px"]:has(> [style*="width: 96px; height: 96px"]) > [style*="width: 96px; height: 96px"] { width: 72px !important; height: 72px !important; }
  #iz-root [style*="gap: 16px"]:has(> [style*="width: 96px; height: 96px"]) > [style*="flex: 1 1 0%"] { flex: 1 1 calc(100% - 86px) !important; }
  #iz-root [style*="gap: 16px"]:has(> [style*="width: 96px; height: 96px"]) > [style*="flex: 1 1 0%"] + :not(:last-child) { margin-left: 86px; }
  #iz-root [style*="gap: 16px"]:has(> [style*="width: 96px; height: 96px"]) > :last-child { margin-left: auto; }
}

/* ---- footer: Bonbon Piment credit ---- */
#iz-root .iz-credit:hover { color: #FFFBF4 !important; }
#iz-root .iz-credit:focus-visible { outline: 2px solid #FFBE98; outline-offset: 3px; border-radius: 6px; }
/* bottom row: items centred, and the credit kept clear of the floating chat button (60px + 22px from the right) */
#iz-root footer [style*="justify-content: space-between; gap: 12px; padding-top: 18px"] { align-items: center; }
#iz-root footer span:has(> .iz-credit) { margin-right: 92px; }
