/* =====================================================================================
   Kitchen theme for bohwiz.com (2026-11-21): the public site wears the same look as the
   manager (bohwiz-manager/src/styles/kitchen-theme.css), which Jose modeled on meez.
   Loaded LAST on every page, so it wins over styles.css and the pages' own <style> blocks.
   Shape and type only: no wording, no prices, no layout of the checkout.
   - Figtree (free; meez's Circular is licensed), tighter headline tracking.
   - Pill buttons, big enough for a thumb (48px on a phone).
   - Filled fields with one bottom rule that turns teal on focus.
   - Flat cards: one soft line instead of a floating shadow.
   Rollback: delete the <link href="/css/kitchen.css"> line (and the Figtree font link) from
   the pages, or empty this file. Nothing else depends on it.
   ===================================================================================== */

:root {
  --kt-font: 'Figtree', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --kt-line: rgba(11, 36, 71, 0.09);
  --kt-field: #f2f4f8;
  /* flat cards: a hairline instead of a floating shadow (hover lifts stay, softer) */
  --shadow-sm: 0 0 0 1px var(--kt-line);
  --shadow: 0 0 0 1px var(--kt-line), 0 2px 6px rgba(11, 36, 71, 0.04);
  --shadow-lg: 0 0 0 1px var(--kt-line), 0 10px 28px rgba(11, 36, 71, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
}

/* ---- Type ---------------------------------------------------------------------------- */
html body,
html body button,
html body input,
html body select,
html body textarea { font-family: var(--kt-font); }
html body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html body h1, html body h2 { letter-spacing: -0.025em; }
html body h3, html body h4 { letter-spacing: -0.015em; }
/* headlines never break mid-word on a phone, and balance their lines */
html body h1, html body h2, html body h3 { text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: manual; }
html body p, html body li { text-wrap: pretty; }

/* ---- Buttons: pills -------------------------------------------------------------------- */
html body .btn,
html body a.btn,
html body button.btn,
html body .header-cta,
html body .nav-manager-link,
html body .order-btn,
html body .fork-btn,
html body .cmp-card-cta,
html body .cta-contact,
html body button[type="submit"] {
  border-radius: 999px !important;
  font-weight: 600;
  letter-spacing: 0;
}
html body .btn-accent { letter-spacing: -0.005em; }
/* one height for every button, so a filled and an outlined button side by side are twins
   (Pricing had "Order Printer" 60px next to "Order Labels" 52px) */
html body .btn, html body a.btn, html body button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 54px;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.25;
}
html body .btn.btn-block, html body .btn.btn-full { display: flex; }
/* header button: text centered in its pill */
html body .header-cta { display: inline-flex !important; align-items: center; justify-content: center; line-height: 1.1; }

/* ---- Fields: filled boxes with one bottom rule ------------------------------------------ */
html body input[type="text"], html body input[type="email"], html body input[type="tel"],
html body input[type="number"], html body input[type="search"], html body input[type="url"],
html body input[type="password"], html body input:not([type]),
html body input[type="date"], html body input[type="time"], html body input[type="datetime-local"],
html body select, html body textarea {
  /* !important: several pages style their own form fields with more specific rules */
  background-color: var(--kt-field) !important;
  border: 1px solid transparent !important;
  border-bottom: 1.5px solid var(--gray-300, #c4cad4) !important;
  border-radius: 12px 12px 4px 4px !important;
  color: var(--navy, #0B2447);
  box-shadow: none !important;
  font-size: max(16px, 1em); /* 16px+ stops iPhone Safari zooming into a field */
  transition: border-color .2s ease, background-color .2s ease;
}
html body input:focus, html body select:focus, html body textarea:focus {
  outline: none;
  background-color: #fff !important;
  border-color: var(--kt-line) !important;
  border-bottom-color: var(--teal, #19A7CE) !important;
  box-shadow: 0 1px 0 0 var(--teal, #19A7CE) !important;
}
/* dropdowns draw their own chevron so Safari gives them the same height as text boxes */
html body select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6577' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px !important;
}
/* fields on the dark navy sections stay readable */
html body .hero input, html body .cta-section input, html body footer input,
html body [class*="dark"] input { color: var(--navy, #0B2447); }

/* ---- Cards ------------------------------------------------------------------------------ */
html body .service-card,
html body .why-card,
html body .client-logo-card,
html body .contact-form {
  border: 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}
html body .service-card:hover,
html body .why-card:hover { box-shadow: var(--shadow-lg); }

/* ---- Tablets and phones: header controls are thumb-sized ---------------------------------- */
@media (max-width: 1100px) {
  html body .header-cta { min-height: 44px; padding-top: 0 !important; padding-bottom: 0 !important; }
  html body .mobile-menu-btn { min-width: 44px; min-height: 44px; flex-direction: column; align-items: center; justify-content: center; }
}

/* ---- Phones ----------------------------------------------------------------------------- */
@media (max-width: 600px) {
  /* every button is a comfortable thumb target */
  html body .btn, html body a.btn, html body button.btn, html body .order-btn { min-height: 48px; }
  html body .header-cta { min-height: 44px; padding-top: 0 !important; padding-bottom: 0 !important; }
  /* the menu button was 36px: Apple's minimum is 44 */
  html body .mobile-menu-btn { min-width: 44px; min-height: 44px; flex-direction: column; align-items: center; justify-content: center; }
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]),
  html body select { min-height: 48px; }
}

/* the blog footer's contact block ran 3-11px past a 320px iPhone SE (also before this theme) */
@media (max-width: 400px) {
  html body .footer-contact { max-width: 100%; min-width: 0; flex-wrap: wrap; }
  html body .footer-contact p, html body .footer-contact a { min-width: 0; overflow-wrap: anywhere; }
}

/* ---- Phone and tablet cards for wide tables (js/kitchen.js) ----------------------------------
   Each row becomes a card: its first cell is the title, every other cell a labeled line.
   Tablets show two cards per row. */
@media (max-width: 1024px) {
  html body .kt-cards-box { overflow: visible !important; box-shadow: none !important; background: transparent !important; border: 0 !important; }
  html body table.kt-cards, html body table.kt-cards tbody { display: block; width: 100% !important; min-width: 0 !important; table-layout: auto; }
  html body table.kt-cards thead, html body table.kt-cards tr.kt-head { display: none; }
  html body table.kt-cards tr {
    display: block;
    margin: 0 0 12px;
    padding: 4px 18px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(11, 36, 71, 0.09);
  }
  html body table.kt-cards td, html body table.kt-cards th {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    padding: 12px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(11, 36, 71, 0.07) !important;
    background: transparent !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: break-word;
  }
  html body table.kt-cards tr > :first-child { font-weight: 700; font-size: 1.02rem; color: var(--navy, #0B2447); padding-top: 14px !important; }
  html body table.kt-cards tr > :last-child { border-bottom: 0 !important; }
  html body table.kt-cards td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600, #5a6577);
  }
}

/* Inline text buttons look the same but get a full 44px tap area (Schedule a Call "Change",
   order page "What's covered") */
@media (max-width: 1100px) {
  html body .tz-line button, html body button.wlink {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-top: -12px;
    margin-bottom: -12px;
  }
}

/* Checkout pop-up (order-printer / order-labels): pill buttons like the rest of the site, and
   the title keeps clear of the close button (it overlapped "Care+?" on a 320px iPhone SE). */
html body #ask button.yes, html body #ask button.no { border-radius: 999px !important; }
html body #ask h3 { padding-left: 30px; padding-right: 30px; }

@media (min-width: 601px) and (max-width: 1024px) {
  html body table.kt-cards tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  html body table.kt-cards tr { margin: 0; }
}

/* Cost table on phones: column names stay whole words ("DATECODEGENI/E" broke mid-word) */
@media (max-width: 700px) {
  html body .cost-table-grid thead th {
    overflow-wrap: normal !important; word-break: normal !important;
    text-transform: none !important; letter-spacing: 0 !important; font-size: 0.8rem !important;
  }
  html body .cost-table-grid tbody td { overflow-wrap: break-word !important; }
}

/* Scrolled header is solid: at 92% the page text showed through behind the logo on iPhones */
html body .site-header.scrolled { background: var(--navy, #0B2447) !important; }

/* Plain links use the brand teal instead of the browser's default blue. :where() keeps this at
   zero priority, so every link a page colors on purpose (white on navy etc.) keeps its color. */
:where(a):not(:where([class])) { color: #0e86ab; }
:where(a):visited:not(:where([class])) { color: #0e86ab; }

/* Order page printer choice: every option one thumb-sized height (Zebra/Bixolon were 38px) */
html body #pick button.popt {
  min-height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ---- Phone/tablet menu (hamburger) ---------------------------------------------------------
   Jose 2026-11-22: the open menu still had the old look (square "Order Printer", Manager Login
   text against the left edge, a see-through panel that stopped halfway down the screen).
   Now: a solid navy sheet filling the screen below the header, calm full-width rows with
   hairline dividers, and the two buttons as pills of one height. */
html body .main-nav.open {
  background: var(--navy, #0B2447) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  /* --kt-hdr = the header's real bottom edge, set by js/kitchen.js when the menu opens */
  min-height: calc(100dvh - var(--kt-hdr, 72px));
  max-height: calc(100dvh - var(--kt-hdr, 72px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0 !important;
  padding: 20px 24px 32px !important;
  /* navy below the sheet covers the last pixels Safari leaves at the screen's bottom edge */
  box-shadow: 0 60px 0 0 var(--navy, #0B2447) !important;
}
html body .main-nav.open a {
  display: flex !important;
  align-items: center;
  min-height: 56px;
  padding: 0 4px !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html body .main-nav.open a.nav-order-link,
html body .main-nav.open a.nav-manager-link {
  justify-content: center;
  min-height: 54px;
  width: 100%;
  max-width: 480px;
  align-self: center !important;
  border-radius: 999px !important;
  border-bottom: 0;
  font-size: 1.05rem !important;
  text-align: center;
}
html body .main-nav.open a.nav-order-link {
  margin: 4px auto 12px !important;
  background: linear-gradient(135deg, var(--teal, #19A7CE) 0%, var(--teal-bright, #1fc5f0) 100%) !important;
}
html body .main-nav.open a.nav-manager-link {
  margin: 24px auto 0 !important;
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}
/* the row before Manager Login keeps no divider (the pill stands on its own) */
html body .main-nav.open a:has(+ a.nav-manager-link) { border-bottom: 0; }
/* while the menu is open the header itself is solid too */
html body .site-header:has(.main-nav.open) { background: var(--navy, #0B2447) !important; }
