/*
Theme Name: M Freeman Outeur
Theme URI: https://mfreeman.co.za/
Author: StudioM
Description: 'n Redigeerbare Afrikaanse outeurs- en winkeltema vir M Freeman / Marinke Freeman, met aparte boekkatalogusse, skooltoneel, skryfkursusse, hulpbronne, nuusbrief en WooCommerce-ondersteuning.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: mfreeman
*/

:root {
  --mf-ivory: #fbf7f1;
  --mf-paper: #f4ede5;
  --mf-peach: #dfa48d;
  --mf-blush: #c99091;
  --mf-mauve: #a98284;
  --mf-sage: #a9ad9f;
  --mf-taupe: #8b7c73;
  --mf-charcoal: #272321;
  --mf-ink: #3b3532;
  --mf-white: #fffdf9;
  --mf-border: rgba(39,35,33,.14);
  --mf-shadow: 0 18px 45px rgba(73,55,48,.10);
  --mf-radius: 24px;
  --mf-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mf-ivory);
  color: var(--mf-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mf-charcoal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mf-mauve); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.mf-container { width: min(calc(100% - 40px), var(--mf-max)); margin-inline: auto; }
.mf-narrow { width: min(calc(100% - 40px), 780px); margin-inline: auto; }
.mf-section { padding: 84px 0; position: relative; }
.mf-section--paper { background: var(--mf-paper); }
.mf-section--white { background: var(--mf-white); }
.mf-kicker {
  margin: 0 0 12px;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mf-mauve);
}
h1,h2,h3,h4,h5,h6 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--mf-charcoal);
  line-height: 1.12;
  margin: 0 0 .55em;
  font-weight: 500;
}
h1 { font-size: clamp(2.55rem, 7vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1.2em; }

.mf-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,247,241,.93);
  border-bottom: 1px solid var(--mf-border);
  backdrop-filter: blur(12px);
}
.admin-bar .mf-site-header { top: 32px; }
.mf-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.mf-brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.mf-brand img { width: 114px; height: 66px; object-fit: contain; }
.mf-brand-text { font-family: Georgia, serif; font-size: 1.5rem; }
.mf-primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.mf-primary-nav li { position: relative; }
.mf-primary-nav a { text-decoration: none; font-size: .92rem; font-weight: 650; letter-spacing: .015em; }
.mf-primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  min-width: 240px;
  padding: 12px;
  background: var(--mf-white);
  border: 1px solid var(--mf-border);
  border-radius: 16px;
  box-shadow: var(--mf-shadow);
}
.mf-primary-nav .sub-menu li + li { margin-top: 3px; }
.mf-primary-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: 10px; }
.mf-primary-nav .sub-menu a:hover { background: var(--mf-paper); }
.mf-primary-nav li:hover > .sub-menu,
.mf-primary-nav li:focus-within > .sub-menu { display: block; }
.mf-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--mf-border);
  border-radius: 50%;
  background: var(--mf-white);
  cursor: pointer;
}
.mf-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--mf-charcoal); margin: 4px auto; }

.mf-hero {
  min-height: min(780px, calc(100vh - 84px));
  display: grid;
  align-items: center;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 15% 22%, rgba(223,164,141,.34), transparent 34%),
    radial-gradient(circle at 85% 25%, rgba(169,173,159,.28), transparent 31%),
    radial-gradient(circle at 65% 88%, rgba(201,144,145,.25), transparent 33%),
    var(--mf-ivory);
}
.mf-hero::before,
.mf-hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 46% 54% 61% 39% / 46% 38% 62% 54%;
  filter: blur(2px);
  opacity: .25;
  pointer-events: none;
}
.mf-hero::before { background: var(--mf-peach); left: -120px; top: 160px; transform: rotate(22deg); }
.mf-hero::after { background: var(--mf-sage); right: -130px; bottom: 70px; transform: rotate(-18deg); }
.mf-hero-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); align-items: center; gap: 70px; position: relative; z-index: 2; }
.mf-hero-copy { padding: 88px 0; }
.mf-hero-copy .mf-lead { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 720px; color: #5b514c; }
.mf-hero-logo {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mf-hero-logo::before {
  content: "";
  position: absolute;
  inset: 10% 3%;
  border-radius: 52% 48% 44% 56% / 50% 40% 60% 50%;
  background: rgba(255,253,249,.58);
  box-shadow: var(--mf-shadow);
  transform: rotate(-3deg);
}
.mf-hero-logo img { width: min(100%, 470px); position: relative; z-index: 1; filter: drop-shadow(0 14px 30px rgba(70,49,43,.08)); }
.mf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mf-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--mf-charcoal);
  background: var(--mf-charcoal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  transition: .2s ease;
}
.mf-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { transform: translateY(-2px); background: var(--mf-mauve); border-color: var(--mf-mauve); color: #fff; }
.mf-button--ghost { background: transparent; color: var(--mf-charcoal); }
.mf-button--ghost:hover { color: #fff; }
.mf-button--light { background: var(--mf-white); color: var(--mf-charcoal); border-color: var(--mf-white); }

.mf-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.mf-section-head > div { max-width: 760px; }
.mf-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.mf-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mf-card {
  background: var(--mf-white);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(73,55,48,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mf-card:hover { transform: translateY(-4px); box-shadow: var(--mf-shadow); }
.mf-card__image { aspect-ratio: 4 / 5; background: var(--mf-paper); overflow: hidden; display: block; }
.mf-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mf-card:hover .mf-card__image img { transform: scale(1.025); }
.mf-card__body { padding: 24px; }
.mf-card__meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--mf-mauve); margin-bottom: 8px; }
.mf-card__title { font-size: 1.55rem; margin-bottom: 9px; }
.mf-card__excerpt { color: #675d58; font-size: .95rem; }
.mf-card__footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.mf-status { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--mf-paper); font-size: .75rem; font-weight: 700; }
.mf-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 30px; background: linear-gradient(145deg, #f6eee6, #ead9d2); color: var(--mf-taupe); text-align: center; }

.mf-split-catalogues { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.mf-catalogue {
  min-height: 390px;
  padding: 44px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--mf-border);
}
.mf-catalogue:first-child { background: linear-gradient(145deg, #f4ded3, #f7eee7); }
.mf-catalogue:last-child { background: linear-gradient(145deg, #e4e3dd, #f3eee8); }
.mf-catalogue::before { content:""; width: 230px; height: 230px; position: absolute; border-radius: 47% 53% 60% 40%; background: rgba(255,255,255,.45); top: -70px; right: -50px; transform: rotate(20deg); }
.mf-catalogue > * { position: relative; z-index: 1; }
.mf-catalogue p { max-width: 520px; }

.mf-newsletter {
  background: var(--mf-charcoal);
  color: #f7f1eb;
  border-radius: 34px;
  padding: clamp(34px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.8fr);
  gap: 50px;
  align-items: center;
}
.mf-newsletter h2 { color: #fff; }
.mf-newsletter .mf-kicker { color: var(--mf-peach); }
.mf-form-row { display: flex; gap: 10px; }
.mf-form-row input[type="email"] { flex: 1; min-width: 0; }
.mf-field,
.mf-form input[type="text"],
.mf-form input[type="email"],
.mf-form textarea,
.mf-form select,
.mf-newsletter input[type="email"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(39,35,33,.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--mf-charcoal);
}
.mf-form textarea { min-height: 180px; resize: vertical; }
.mf-consent { display: flex; gap: 9px; align-items: flex-start; font-size: .82rem; margin-top: 12px; opacity: .9; }
.mf-consent input { margin-top: 5px; }
.mf-notice { padding: 12px 15px; border-radius: 12px; margin-bottom: 18px; background: #eef6ed; border: 1px solid #bfd2bc; color: #304c2e; }
.mf-notice--error { background: #fbefed; border-color: #e1beb7; color: #6b342a; }

.mf-page-hero { padding: 88px 0 54px; background: linear-gradient(180deg, var(--mf-paper), var(--mf-ivory)); }
.mf-page-hero p { max-width: 720px; font-size: 1.08rem; color: #625853; }
.mf-content { padding: 60px 0 90px; }
.mf-content > *:first-child { margin-top: 0; }
.mf-content figure { margin: 2em 0; }

.mf-product-link { font-size: .88rem; font-weight: 700; text-decoration: none; }
.mf-tax-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.mf-chip { display:inline-flex; padding: 8px 13px; border-radius:999px; background:var(--mf-paper); border:1px solid var(--mf-border); font-size:.82rem; }

.mf-single-grid { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 60px; align-items: start; }
.mf-single-cover { position: sticky; top: 118px; }
.mf-single-cover img { width: 100%; border-radius: 18px; box-shadow: var(--mf-shadow); }
.mf-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 26px 0; }
.mf-detail { padding: 16px; border:1px solid var(--mf-border); border-radius:16px; background: var(--mf-white); }
.mf-detail strong { display:block; font-size:.75rem; text-transform:uppercase; letter-spacing:.1em; color: var(--mf-mauve); margin-bottom:3px; }

.mf-contact-grid { display:grid; grid-template-columns: .75fr 1.25fr; gap:50px; }
.mf-socials { display:flex; flex-wrap:wrap; gap:10px; }
.mf-social-link {
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid var(--mf-border);
  background:var(--mf-white);
  color:var(--mf-charcoal);
  text-decoration:none;
  transition:.2s ease;
}
.mf-social-link:hover { transform: translateY(-2px); background:var(--mf-charcoal); color:#fff; }
.mf-social-link svg { width:19px; height:19px; fill:currentColor; }

.mf-site-footer { background: #211e1c; color: #d9d1cb; padding: 62px 0 26px; }
.mf-footer-grid { display:grid; grid-template-columns: 1.2fr .8fr .8fr; gap:46px; }
.mf-site-footer h3 { color:#fff; font-size:1.2rem; }
.mf-footer-logo { width: 150px; filter: brightness(0) invert(1); opacity:.92; margin-bottom:18px; }
.mf-footer-nav ul { list-style:none; padding:0; margin:0; }
.mf-footer-nav li + li { margin-top:8px; }
.mf-footer-nav a { color:#ded6d0; text-decoration:none; }
.mf-footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:42px; padding-top:22px; display:flex; justify-content:space-between; gap:20px; font-size:.82rem; }
.mf-site-footer .mf-social-link { background:transparent; border-color:rgba(255,255,255,.17); color:#fff; }

.mf-shop-categories { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin-bottom:44px; }
.mf-shop-category { padding:22px 16px; min-height:150px; display:flex; align-items:flex-end; border-radius:20px; text-decoration:none; background:var(--mf-paper); border:1px solid var(--mf-border); font-weight:700; }
.mf-shop-category:hover { background:#eadbd2; }

.woocommerce ul.products { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
.woocommerce ul.products::before,.woocommerce ul.products::after { display:none !important; }
.woocommerce ul.products li.product { width:auto !important; margin:0 !important; background:#fff; border:1px solid var(--mf-border); border-radius:20px; padding:16px; }
.woocommerce ul.products li.product a img { border-radius:14px; }
.woocommerce div.product { padding:50px 0 90px; }

.mf-empty { padding:32px; border:1px dashed rgba(39,35,33,.2); border-radius:18px; text-align:center; background:rgba(255,255,255,.45); }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width: 980px) {
  .mf-menu-toggle { display:block; }
  .mf-primary-nav { display:none; position:absolute; top:100%; left:0; right:0; background:var(--mf-white); border-bottom:1px solid var(--mf-border); box-shadow:var(--mf-shadow); padding:18px 20px 26px; }
  .mf-primary-nav.is-open { display:block; }
  .mf-primary-nav ul { display:block; }
  .mf-primary-nav li + li { margin-top:4px; }
  .mf-primary-nav a { display:block; padding:10px 8px; }
  .mf-primary-nav .sub-menu { display:block; position:static; box-shadow:none; border:0; padding:0 0 0 16px; margin:0; background:transparent; }
  .mf-hero-grid, .mf-newsletter, .mf-contact-grid, .mf-single-grid { grid-template-columns:1fr; }
  .mf-hero-copy { padding-bottom:20px; }
  .mf-hero-logo { min-height:320px; padding-bottom:60px; }
  .mf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mf-shop-categories { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .mf-footer-grid { grid-template-columns:1fr 1fr; }
  .mf-single-cover { position:static; max-width:430px; }
}
@media (max-width: 700px) {
  body { font-size:16px; }
  .mf-container,.mf-narrow { width:min(calc(100% - 28px), var(--mf-max)); }
  .mf-section { padding:64px 0; }
  .mf-header-inner { min-height:72px; }
  .mf-brand img { width:92px; height:54px; }
  .mf-split-catalogues,.mf-grid,.mf-grid--2,.mf-shop-categories,.mf-footer-grid,.mf-details { grid-template-columns:1fr; }
  .mf-catalogue { min-height:320px; padding:30px; }
  .mf-section-head { align-items:flex-start; flex-direction:column; }
  .mf-form-row { flex-direction:column; }
  .mf-footer-bottom { flex-direction:column; }
  .woocommerce ul.products { grid-template-columns:1fr !important; }
  .admin-bar .mf-site-header { top:46px; }
}
