/*
Theme Name: MowerCheck
Theme URI: https://mowercheck.com/
Author: MowerCheck
Description: Lightweight custom WordPress theme for MowerCheck — robot mower troubleshooting, yard guidance, technology explainers, and buyer guides.
Version: 1.1.8
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: mowercheck
*/

:root {
  --mc-green: #1f7a4d;
  --mc-green-dark: #155d3a;
  --mc-green-soft: #edf7f1;
  --mc-ink: #18212f;
  --mc-muted: #657184;
  --mc-line: #e4e8ec;
  --mc-bg: #ffffff;
  --mc-bg-soft: #f7faf8;
  --mc-radius: 14px;
  --mc-shadow: 0 10px 30px rgba(25, 55, 40, 0.08);
  --mc-max: 1180px;
  --mc-footer-bg: #fbfcfb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mc-bg);
  color: var(--mc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mc-green-dark); text-decoration: none; }
a:hover { color: var(--mc-green); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.mc-wrap { width: min(calc(100% - 32px), var(--mc-max)); margin-inline: auto; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute!important; width: 1px;
}
.screen-reader-text:focus { clip: auto!important; clip-path:none; height:auto; width:auto; background:#fff; color:#111; padding:12px; z-index:99999; }

/* Header */
.mc-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mc-line);
}
.mc-header-inner { min-height: 74px; display:flex; align-items:center; gap: 28px; }
.mc-brand { display:flex; align-items:center; gap:10px; color:var(--mc-ink); flex-shrink:0; }
.mc-brand-mark { width:34px; height:34px; border-radius:50% 50% 50% 12px; background:linear-gradient(145deg,var(--mc-green),#62b26f); transform:rotate(-8deg); position:relative; }
.mc-brand-mark::after { content:""; position:absolute; width:2px; height:22px; background:#fff; left:16px; top:6px; transform:rotate(28deg); border-radius:2px; }
.mc-brand-text { display:flex; flex-direction:column; line-height:1; }
.mc-brand-name { font-size:1.55rem; font-weight:800; letter-spacing:-.04em; }
.mc-brand-name span { color:var(--mc-green); }
.mc-brand-tagline { margin-top:5px; font-size:.72rem; color:var(--mc-muted); letter-spacing:.01em; }
.mc-primary-nav { margin-left:auto; }
.mc-primary-nav ul { margin:0; padding:0; list-style:none; display:flex; gap:26px; align-items:center; }
.mc-primary-nav a { color:var(--mc-ink); font-weight:650; font-size:.94rem; }
.mc-primary-nav a:hover { color:var(--mc-green); }
.mc-search-toggle { display:inline-grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid var(--mc-line); border-radius:50%; color:var(--mc-ink); background:#fff; cursor:pointer; transition:.18s ease; }
.mc-search-toggle:hover, .mc-search-toggle.is-active { color:var(--mc-green-dark); border-color:#b8d5c4; background:var(--mc-green-soft); }
.mc-search-panel { position:absolute; top:100%; left:0; right:0; z-index:60; padding:14px 0; background:rgba(255,255,255,.99); border-bottom:1px solid var(--mc-line); box-shadow:0 14px 28px rgba(24,33,47,.09); }
.mc-search-panel[hidden] { display:none; }
.mc-header-search-form { display:flex; gap:10px; max-width:760px; margin-left:auto; }
.mc-header-search-input { flex:1; min-width:0; height:48px; padding:0 16px; border:1px solid #cfd6dc; border-radius:10px; background:#fff; color:var(--mc-ink); outline:none; }
.mc-header-search-input:focus { border-color:var(--mc-green); box-shadow:0 0 0 3px rgba(31,122,77,.12); }
.mc-header-search-submit { min-width:104px; height:48px; padding:0 18px; border:0; border-radius:10px; background:var(--mc-green); color:#fff; font-weight:800; cursor:pointer; }
.mc-header-search-submit:hover { background:var(--mc-green-dark); }
.mc-menu-toggle { display:none; margin-left:auto; border:1px solid var(--mc-line); background:#fff; border-radius:10px; padding:9px 12px; font-weight:700; }

/* Hero */
.mc-hero {
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(248,252,249,.99) 0%, rgba(248,252,249,.97) 43%, rgba(248,252,249,.30) 68%, rgba(248,252,249,.08) 100%),
    radial-gradient(circle at 86% 22%, rgba(70,148,92,.18), transparent 30%),
    linear-gradient(135deg,#f7fbf8,#e9f4ec);
  border-bottom:1px solid var(--mc-line);
}
.mc-hero-inner { min-height:410px; display:grid; grid-template-columns:1.12fr .88fr; align-items:center; gap:34px; }
.mc-hero-inner.mc-hero-no-visual { grid-template-columns:1fr; }
.mc-hero-copy { min-width:0; }
.mc-eyebrow { display:inline-flex; align-items:center; border-radius:7px; background:#dfeee3; color:#215f3d; font-size:.76rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; padding:6px 9px; }
.mc-hero h1 { margin:16px 0 14px; font-size:clamp(2.45rem,4.2vw,56px); line-height:1.03; letter-spacing:-.05em; max-width:720px; text-wrap:balance; }
.mc-hero p { margin:0; color:var(--mc-muted); font-size:1.08rem; max-width:660px; }
.mc-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.mc-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:0 20px; border-radius:8px; font-weight:800; border:1px solid transparent; transition:.2s ease; }
.mc-btn-primary { background:var(--mc-green); color:#fff; box-shadow:0 8px 20px rgba(31,122,77,.18); }
.mc-btn-primary:hover { background:var(--mc-green-dark); color:#fff; transform:translateY(-1px); }
.mc-btn-secondary { border-color:#b9c2ca; background:#fff; color:var(--mc-ink); }
.mc-btn-secondary:hover { border-color:var(--mc-green); color:var(--mc-green-dark); }
.mc-hero-visual { min-height:370px; position:relative; display:flex; align-items:flex-end; justify-content:center; }
.mc-hero-visual::before {
  content:""; position:absolute; inset:18% 2% 10% 7%; border-radius:46% 46% 14% 14% / 60% 60% 12% 12%;
  background: radial-gradient(circle at 50% 35%, #fff 0 12%, transparent 13%), linear-gradient(#dae8dd 0 54%, #b9d7ac 54% 100%);
  opacity:.95; box-shadow:inset 0 -35px 70px rgba(32,110,59,.13);
}
.mc-mower-illustration { position:relative; width:min(86%,500px); height:180px; margin-bottom:58px; filter:drop-shadow(0 28px 20px rgba(0,0,0,.18)); }
.mc-mower-body { position:absolute; left:12%; right:8%; bottom:26px; height:112px; border-radius:42% 48% 24% 20% / 58% 54% 28% 24%; background:linear-gradient(150deg,#3d4650,#151b22 72%); border:1px solid #5b6672; }
.mc-mower-panel { position:absolute; width:42%; height:48%; left:31%; top:10%; background:linear-gradient(145deg,#626c75,#252c33); border-radius:38% 40% 22% 22%; border:1px solid #707b85; }
.mc-mower-accent { position:absolute; left:63%; top:27%; width:16%; height:7px; border-radius:8px; background:#e06d2f; }
.mc-wheel { position:absolute; bottom:0; width:82px; height:82px; border-radius:50%; background:radial-gradient(circle,#4c565e 0 20%,#1b2026 21% 58%,#0e1115 59% 100%); border:4px solid #2d333a; }
.mc-wheel.one { left:14%; } .mc-wheel.two { right:7%; }
.mc-hero-note { position:absolute; right:2%; top:20%; font-weight:750; font-size:1.05rem; transform:rotate(-4deg); color:#28342d; }

/* Trust strip */
.mc-trust { background:#f0f8f3; border-bottom:1px solid var(--mc-line); }
.mc-trust-inner { display:grid; grid-template-columns:repeat(3,1fr); min-height:72px; align-items:center; }
.mc-trust-item { padding:12px 26px; display:flex; gap:12px; align-items:center; }
.mc-trust-item + .mc-trust-item { border-left:1px solid #d5e2d8; }
.mc-trust-icon { color:var(--mc-green); font-size:1.35rem; font-weight:900; }
.mc-trust-item strong { display:block; font-size:.95rem; }
.mc-trust-item span { display:block; color:var(--mc-muted); font-size:.82rem; }

/* Home sections */
.mc-section { padding:34px 0 0; }
.mc-section:last-of-type { padding-bottom:48px; }
.mc-section-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-end; margin-bottom:14px; }
.mc-section-head h2 { margin:0; font-size:1.55rem; line-height:1.15; letter-spacing:-.025em; }
.mc-section-head p { margin:4px 0 0; color:var(--mc-muted); font-size:.94rem; }
.mc-section-link { font-size:.86rem; font-weight:800; white-space:nowrap; }
.mc-card-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.mc-info-card { min-height:118px; padding:18px 12px; border:1px solid var(--mc-line); border-radius:10px; background:#fff; text-align:center; box-shadow:0 1px 0 rgba(0,0,0,.015); transition:.18s ease; color:var(--mc-ink); }
.mc-info-card:hover { transform:translateY(-2px); border-color:#b8d6c1; box-shadow:var(--mc-shadow); color:var(--mc-ink); }
.mc-info-card-static:hover { transform:none; border-color:var(--mc-line); box-shadow:0 1px 0 rgba(0,0,0,.015); color:var(--mc-ink); }
.mc-icon { width:34px; height:34px; display:grid; place-items:center; margin:0 auto 10px; color:var(--mc-green-dark); }
.mc-icon svg { width:30px; height:30px; stroke:currentColor; }
.mc-info-card strong { display:block; font-size:.92rem; line-height:1.2; }
.mc-info-card small { display:block; margin-top:5px; color:var(--mc-muted); line-height:1.3; font-size:.76rem; }
.mc-tech-grid { grid-template-columns:repeat(4,1fr); }
.mc-tech-grid .mc-info-card { min-height:92px; display:flex; align-items:center; text-align:left; gap:12px; padding:15px 18px; }
.mc-tech-grid .mc-icon { margin:0; flex:0 0 auto; }

/* Article cards */
.mc-article-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.mc-article-card { border:1px solid var(--mc-line); border-radius:10px; overflow:hidden; background:#fff; transition:.18s ease; }
.mc-article-card:hover { transform:translateY(-2px); box-shadow:var(--mc-shadow); }
.mc-article-thumb { aspect-ratio:16/7; background:linear-gradient(135deg,#d7ebdc,#a8cfac); overflow:hidden; }
.mc-article-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.mc-article-body { padding:14px; }
.mc-chip { display:inline-flex; background:#edf5ef; color:#27633f; border:1px solid #d4e6d8; border-radius:999px; padding:3px 7px; font-size:.65rem; font-weight:800; text-transform:uppercase; letter-spacing:.03em; }
.mc-article-card h3 { margin:9px 0 7px; font-size:1rem; line-height:1.25; }
.mc-article-card h3 a { color:var(--mc-ink); }
.mc-article-card p { margin:0; color:var(--mc-muted); font-size:.82rem; line-height:1.45; }

/* Content */
.mc-content-wrap { width:min(calc(100% - 32px), 820px); margin:52px auto; }
.mc-content-wrap.wide { width:min(calc(100% - 32px), var(--mc-max)); }
.entry-header h1 { font-size:clamp(2.2rem,5vw,3.6rem); line-height:1.06; letter-spacing:-.045em; margin:0 0 16px; }
.entry-meta { color:var(--mc-muted); font-size:.9rem; margin-bottom:26px; }
.entry-content { font-size:1.04rem; }
.entry-content h2 { margin-top:2.2em; font-size:1.75rem; letter-spacing:-.025em; }
.entry-content h3 { margin-top:1.8em; font-size:1.3rem; }
.entry-content table { width:100%; border-collapse:collapse; margin:24px 0; font-size:.94rem; }
.entry-content th, .entry-content td { padding:12px 14px; border:1px solid var(--mc-line); text-align:left; vertical-align:top; }
.entry-content th { background:var(--mc-bg-soft); }
.entry-content blockquote { margin:28px 0; padding:18px 22px; border-left:4px solid var(--mc-green); background:var(--mc-green-soft); }
.entry-content a { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }

.mc-post-list { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.mc-pagination { margin-top:34px; }

/* Footer */
.mc-site-footer { margin-top:50px; border-top:1px solid var(--mc-line); background:var(--mc-footer-bg); }
.mc-footer-inner { min-height:120px; display:grid; grid-template-columns:1fr auto 1fr; gap:28px; align-items:center; }
.mc-footer-links { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; font-size:.84rem; }
.mc-footer-note { color:var(--mc-muted); font-size:.75rem; text-align:right; line-height:1.45; }


/* v1.1 customization + polish */
.mc-custom-logo-wrap { display:flex; flex-direction:column; align-items:flex-start; line-height:1; }
.mc-custom-logo { display:block; width:auto; height:auto; max-height:52px; }
.mc-logo-tagline { margin-left:2px; }
.mc-btn-icon { font-size:.85rem; line-height:1; }
.mc-hero-visual.has-image::before { display:none; }
.mc-hero-visual.has-image { align-items:center; min-height:330px; }
.mc-hero-custom-image { width:100%; height:330px; object-fit:cover; border-radius:24px; box-shadow:var(--mc-shadow); border:1px solid rgba(31,122,77,.12); }
.mc-hero-visual.has-image .mc-hero-note { z-index:2; right:5%; top:10%; background:rgba(255,255,255,.86); border-radius:10px; padding:8px 11px; backdrop-filter:blur(5px); }
.mc-home-editor { padding:38px 0 4px; }
.mc-home-editor-inner { max-width:900px; }
.mc-home-editor-inner > :first-child { margin-top:0; }
.mc-home-editor-inner > :last-child { margin-bottom:0; }
.mc-article-grid-3 { grid-template-columns:repeat(3,1fr); }
.mc-footer-brand { align-self:center; }

@media (max-width: 980px) {
  .mc-primary-nav { display:none; position:absolute; left:0; right:0; top:74px; background:#fff; border-bottom:1px solid var(--mc-line); padding:18px 20px; }
  .mc-primary-nav.is-open { display:block; }
  .mc-primary-nav ul { flex-direction:column; align-items:flex-start; gap:14px; }
  .mc-menu-toggle { display:inline-flex; }
  .mc-search-toggle { margin-left:0; }
  .mc-hero-inner { grid-template-columns:1fr; padding:58px 0 28px; }
  .mc-hero-visual { min-height:270px; }
  .mc-hero-custom-image { height:280px; }
  .mc-card-grid { grid-template-columns:repeat(3,1fr); }
  .mc-tech-grid { grid-template-columns:repeat(2,1fr); }
  .mc-article-grid, .mc-article-grid-3 { grid-template-columns:repeat(2,1fr); }
  .mc-footer-inner { grid-template-columns:1fr; padding:28px 0; }
  .mc-footer-links { justify-content:flex-start; }
  .mc-footer-note { text-align:left; }
}

@media (max-width: 640px) {
  .mc-wrap { width:min(calc(100% - 24px), var(--mc-max)); }
  .mc-brand-tagline { display:none; }
  .mc-brand-name { font-size:1.3rem; }
  .mc-header-inner { min-height:64px; gap:12px; }
  .mc-primary-nav { top:64px; }
  .mc-search-toggle { width:38px; height:38px; }
  .mc-hero-inner { padding-top:42px; }
  .mc-hero h1 { font-size:2.45rem; text-wrap:initial; }
  .mc-hero-visual { min-height:220px; }
  .mc-mower-illustration { transform:scale(.8); }
  .mc-hero-note { display:none; }
  .mc-trust-inner { grid-template-columns:1fr; padding:8px 0; }
  .mc-trust-item + .mc-trust-item { border-left:0; border-top:1px solid #d5e2d8; }
  .mc-section-head { align-items:flex-start; flex-direction:column; gap:6px; }
  .mc-card-grid, .mc-tech-grid, .mc-article-grid, .mc-post-list { grid-template-columns:1fr 1fr; }
  .mc-info-card { min-height:108px; }
  .mc-search-panel { padding:12px 0; }
  .mc-header-search-form { max-width:none; margin:0; }
  .mc-header-search-input { height:46px; font-size:16px; }
  .mc-header-search-submit { height:46px; min-width:88px; padding:0 14px; }
}

@media (max-width: 430px) {
  .mc-card-grid, .mc-tech-grid, .mc-article-grid, .mc-post-list { grid-template-columns:1fr; }
  .mc-hero-actions { flex-direction:column; }
  .mc-btn { width:100%; }
}
.mc-footer-links li { list-style:none; margin:0; padding:0; }

/* v1.1.2 Popular Guides card polish */
.mc-article-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
}
.mc-article-thumb {
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  min-height:0;
  background:linear-gradient(135deg,#d7ebdc,#a8cfac);
  overflow:hidden;
}
.mc-article-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transition:transform .25s ease;
}
.mc-article-card:hover .mc-article-thumb img { transform:scale(1.025); }
.mc-article-body {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:16px;
}
.mc-article-card h3 {
  margin:10px 0 8px;
  font-size:1rem;
  line-height:1.32;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.mc-article-card p {
  margin:0;
  color:var(--mc-muted);
  font-size:.82rem;
  line-height:1.5;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

@media (max-width: 980px) {
  .mc-article-thumb { aspect-ratio:16 / 9; }
}

@media (max-width: 430px) {
  .mc-article-thumb { aspect-ratio:16 / 9; }
  .mc-article-body { padding:16px 16px 18px; }
  .mc-article-card h3 { font-size:1.08rem; }
  .mc-article-card p { font-size:.9rem; }
}

/* v1.1.3 Dedicated Guides library */
.mc-guides-page { margin-top:46px; }
.mc-guides-hero { max-width:820px; margin-bottom:26px; }
.mc-guides-hero .mc-eyebrow { margin-bottom:14px; }
.mc-guides-hero h1 {
  margin:0 0 12px;
  font-size:clamp(2.4rem,5vw,4rem);
  line-height:1.03;
  letter-spacing:-.05em;
}
.mc-guides-hero p {
  max-width:760px;
  margin:0;
  color:var(--mc-muted);
  font-size:1.05rem;
  line-height:1.65;
}
.mc-guide-filters {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 28px;
  padding-bottom:22px;
  border-bottom:1px solid var(--mc-line);
}
.mc-guide-filters a {
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border:1px solid var(--mc-line);
  border-radius:999px;
  background:#fff;
  color:var(--mc-ink);
  font-size:.86rem;
  font-weight:800;
  transition:.18s ease;
}
.mc-guide-filters a:hover,
.mc-guide-filters a.is-active {
  color:var(--mc-green-dark);
  border-color:#b8d6c1;
  background:var(--mc-green-soft);
}
.mc-guides-grid { align-items:stretch; }
.mc-empty-guides { padding:34px; border:1px solid var(--mc-line); border-radius:12px; background:var(--mc-bg-soft); }
.mc-empty-guides h2 { margin-top:0; }
.mc-pagination ul { display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0; }
.mc-pagination a, .mc-pagination span {
  display:grid;
  place-items:center;
  min-width:40px;
  min-height:40px;
  padding:6px 10px;
  border:1px solid var(--mc-line);
  border-radius:8px;
  background:#fff;
}
.mc-pagination .current { background:var(--mc-green); color:#fff; border-color:var(--mc-green); }

@media (max-width:640px) {
  .mc-guides-page { margin-top:32px; }
  .mc-guides-hero p { font-size:.98rem; }
  .mc-guide-filters { gap:8px; }
  .mc-guide-filters a { font-size:.8rem; min-height:38px; padding:7px 12px; }
}


/* v1.1.4 Customizable category/archive pages */
.mc-archive-page { margin-top:44px; }
.mc-archive-header { max-width:900px; margin-bottom:26px; }
.mc-archive-title {
  margin:0 0 12px;
  line-height:1.05;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.mc-archive-description {
  max-width:780px;
  margin:0 0 8px;
  color:var(--mc-muted);
  font-size:1rem;
  line-height:1.65;
}
.mc-archive-description p { margin:0; }
.mc-archive-page .mc-article-card h3 { -webkit-line-clamp:3; }

@media (max-width: 980px) {
  .mc-archive-page .mc-post-list { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 640px) {
  .mc-archive-page { margin-top:30px; }
  .mc-archive-page .mc-post-list { grid-template-columns:1fr !important; }
  .mc-archive-title { font-size:clamp(2rem,10vw,2.65rem) !important; }
}
