/*
Theme Name: McBean's Orchids
Theme URI: https://www.mcbeansorchids.com
Author: WWebDesign
Description: Lean custom theme for McBean's Orchids — code-registered ACF blocks, native WooCommerce, no page builder. Pixel-faithful rebuild of the original Flatsome site.
Version: 1.1.1
Requires PHP: 8.0
Requires at least: 6.4
Text Domain: mcbeans
*/

/* ============================================================
   Design tokens — extracted from the LIVE site (CDP + screenshots).
   Reproduce the current rendering exactly; do not "improve" them.
   ============================================================ */
:root {
  /* Type */
  --mcb-font-body: Chenla, helvetica, arial, sans-serif;
  --mcb-font-head: Chenla, helvetica, arial, sans-serif;
  --mcb-fs-base: 16px;
  --mcb-lh-base: 1;          /* Foundation body {line-height:1}; p and lists set their own 1.6 */
  --mcb-lh-copy: 1.6;        /* p, ul, ol, dl */
  --mcb-fw-head: 700;

  /* Colour */
  --mcb-text: #777777;
  --mcb-heading: #555555;
  /* Plain links (Theme Options: a {color:black}; a:hover, a:focus {color:#777; underline}). */
  --mcb-a: #000000;
  --mcb-a-hover: #777777;
  /* Flatsome's primary colour, which live paints on the post-date badge, the sticky-post box and
     the paging buttons. Those components read it as --mcb-link, so it stays #2f2f36. */
  --mcb-link: #2f2f36;
  --mcb-link-hover: #000000;
  --mcb-page-bg: #cccccc;
  --mcb-content-bg: #ffffff;

  /* Buttons (square, uppercase, dark) */
  --mcb-btn-bg: #2f2f36;
  --mcb-btn-color: #ffffff;
  --mcb-btn-radius: 0px;

  /* Layout */
  --mcb-content-max: 1080px;
  --mcb-header-height: 180px;

  /* Chrome */
  --mcb-footer-bg: #333333;
  --mcb-promo-bg: #1e8e8e;
}

/* ============================================================
   Base reset / element defaults (match Flatsome rendering)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--mcb-font-body);
  font-size: var(--mcb-fs-base);
  line-height: var(--mcb-lh-base);
  color: var(--mcb-text);
  background: var(--mcb-page-bg);
  /* No overflow-x clip: live's body is visible, so a page that runs a few px wide (the news index
     at 390) pans sideways as there, and a classic scrollbar shows when the tip spacer needs it. */
  /* flatsome.css body {cursor:default}: the arrow over text, not the I-beam. Links, buttons and
     text fields keep their own cursors (UA / the rules that set them). */
  cursor: default;
  /* Flatsome body.antialiased — thinner glyphs on macOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Foundation small (<=48em): body {background:none !important}, so below a short page the
   canvas is white, not the #ccc page grey. */
@media (max-width: 768px) {
  body { background: none; }
}
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--mcb-a); text-decoration: none; }
a:hover, a:focus { color: var(--mcb-a-hover); text-decoration: underline; }
/* Foundation: a:focus {outline:none}; a:active, a:hover {outline:0}. A focused link shows only
   the underline above, never the browser's focus ring (parity with live; WCAG 2.4.7 would want
   the ring back, which is deleting these two lines). */
a:focus { outline: none; }
a:active, a:hover { outline: 0; }

/* Foundation headings, mobile first: 1em / .875 / .9375 / .8125 / 1 / 1em on a 1.2125em line,
   then 26 / 24 / 20 / 18px on a 1.4 line from 48em (768px) up. Margins .2em above, .5em below. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--mcb-font-head);
  font-weight: var(--mcb-fw-head);
  font-style: normal;
  color: var(--mcb-heading);
  text-rendering: optimizeLegibility;
  margin: .2em 0 .5em;
  line-height: 1.2125em;
}
h1 { font-size: 1em; }
h2 { font-size: .875em; }
h3 { font-size: .9375em; }
h4 { font-size: .8125em; }
h5, h6 { font-size: 1em; }
@media (min-width: 768px) {
  h1, h2, h3, h4, h5, h6 { line-height: 1.4; }
  h1 { font-size: 1.625em; }
  h2 { font-size: 1.5em; }
  h3 { font-size: 1.25em; }
  h4 { font-size: 1.125em; }
}
/* Headings that live zeroes the top margin of: page/post titles (h1.entry-title {margin:0 0 5px})
   and [title] section titles (h3.section-title {margin:0 auto 30px}). Their bottom margins are
   set with the components in assets/content.css; this only keeps the .2em above off them. */
.mcb-page__title, .mcb-title { margin-top: 0; }

/* Foundation copy: p {line-height:1.6; margin-bottom:1.25em}; lists keep a 1.6 line too
   (their margins and indents are set per context in assets/content.css). */
p {
  margin: 0 0 1.25em;
  font-size: 1em; font-weight: normal;
  line-height: var(--mcb-lh-copy);
  text-rendering: optimizeLegibility;
}
ul, ol, dl { line-height: var(--mcb-lh-copy); }

/* Foundation sub/sup: 75% on a zero line, nudged with position, so a ° or ² never opens up
   the paragraph's line (the UA's vertical-align:super does). */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -.5em; }
sub { bottom: -.25em; }

/* Content frame: white content column over the grey page background */
.mcb-page-wrapper { background: var(--mcb-content-bg); }
.mcb-container {
  max-width: var(--mcb-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Buttons */
.mcb-button, .button, button, input[type="submit"] {
  display: inline-block;
  background: var(--mcb-btn-bg);
  color: var(--mcb-btn-color);
  border: 0;
  border-radius: var(--mcb-btn-radius);
  text-transform: uppercase;
  font-family: var(--mcb-font-head);
  line-height: 2.4em;
  padding: 0 1em;
  cursor: pointer;
}
.mcb-button:hover, .button:hover { color: #fff; opacity: 0.9; }

/* Foundation label {cursor:pointer}: the hand over every form label (review form, quantity,
   checkout), not the body's arrow. Only the cursor: each form's label type is set in its lane. */
label { cursor: pointer; }

/* Foundation text-field focus: #fafafa fill, #999 border and a 5px #999 glow, no outline.
   (The header search input carries its own copy in assets/header.css.) */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
textarea:focus {
  background: #fafafa; border-color: #999; box-shadow: 0 0 5px #999; outline: none;
}
