/*
Theme Name: MCM Engraving
Theme URI: https://mcmengraving.com
Author: MCM Engraving
Description: Conversion-focused storefront for MCM Engraving pet memorials, personalized keepsakes, veterinary partners, and the MCM Memory Garden.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: mcm-engraving
*/

:root {
  --ink: #25292c;
  --ink-soft: #596064;
  --copper: #b66a3c;
  --copper-dark: #8d4d2c;
  --cream: #fbf7f1;
  --paper: #fffdfa;
  --sage: #687665;
  --line: #e5ddd3;
  --white: #fff;
  --shadow: 0 18px 48px rgba(37, 41, 44, .10);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--copper-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
button, input, select, textarea { font: inherit; }
button, .button, .mcm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .8rem 1.25rem;
  border: 2px solid var(--copper);
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
button:hover, .button:hover, .mcm-button:hover {
  transform: translateY(-2px);
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: #fff;
  box-shadow: 0 10px 25px rgba(141, 77, 44, .22);
}
.mcm-button--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.mcm-button--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.mcm-button--light { background: #fff; border-color: #fff; color: var(--ink); }
.mcm-button--light:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.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;
}
.screen-reader-text:focus { width: auto; height: auto; clip: auto; margin: 0; padding: .7rem 1rem; z-index: 100000; background: #fff; }
.mcm-wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.mcm-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.mcm-section--cream { background: var(--cream); }
.mcm-section--dark { background: var(--ink); color: #fff; }
.mcm-eyebrow { margin: 0 0 .7rem; color: var(--copper); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.mcm-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: 1.03; letter-spacing: -.035em; }
.mcm-section-title { margin: 0 0 .8rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.08; letter-spacing: -.025em; }
.mcm-lead { max-width: 760px; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.mcm-section--dark .mcm-lead { color: rgba(255,255,255,.76); }
.mcm-grid { display: grid; gap: 1.4rem; }
.mcm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mcm-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Header */
.mcm-topbar { padding: .48rem 1rem; background: var(--ink); color: #fff; text-align: center; font-size: .84rem; font-weight: 750; letter-spacing: .035em; }
.mcm-topbar a { color: #fff; }
.mcm-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(37,41,44,.08); background: rgba(255,253,250,.94); backdrop-filter: blur(14px); }
.mcm-header__inner { min-height: 88px; display: flex; align-items: center; gap: 2rem; }
.mcm-brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.mcm-brand img { width: 270px; max-height: 76px; object-fit: contain; object-position: left center; }
.mcm-nav { margin-left: auto; }
.mcm-nav ul { display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.mcm-nav a { color: var(--ink); font-size: .92rem; font-weight: 800; text-decoration: none; }
.mcm-nav a:hover, .mcm-nav .current-menu-item > a { color: var(--copper); }
.mcm-header__cta { white-space: nowrap; }
.mcm-menu-toggle { display: none; padding: .55rem .7rem; min-height: 44px; border-radius: 12px; }

/* Hero */
.mcm-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 15% 30%, #f4e7dc 0, transparent 30%), linear-gradient(135deg, #fffdfa, #f7efe6); }
.mcm-hero::after { content: ""; position: absolute; inset: auto -10vw -28vw auto; width: 55vw; height: 55vw; border: 1px solid rgba(182,106,60,.18); border-radius: 50%; }
.mcm-hero__inner { min-height: 710px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
.mcm-hero__copy { position: relative; z-index: 2; }
.mcm-hero__copy p { max-width: 650px; }
.mcm-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.7rem; }
.mcm-trust-row { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; margin-top: 2rem; color: var(--ink-soft); font-size: .88rem; font-weight: 750; }
.mcm-trust-row span::before { content: "✓"; margin-right: .4rem; color: var(--sage); font-weight: 900; }
.mcm-hero__visual { position: relative; z-index: 1; }
.mcm-hero__visual::before { content: ""; position: absolute; inset: 8% 4% 2% 4%; background: #fff; border-radius: 42% 42% 48% 48%; box-shadow: var(--shadow); transform: rotate(2deg); }
.mcm-hero__visual img { position: relative; display: block; max-height: 590px; margin-inline: auto; object-fit: contain; filter: drop-shadow(0 15px 25px rgba(37,41,44,.12)); }

/* Cards and content */
.mcm-card { position: relative; overflow: hidden; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(37,41,44,.05); }
.mcm-card--feature { min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.mcm-card__number { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #f5e5d9; color: var(--copper-dark); font-weight: 900; }
.mcm-card h3 { margin: .8rem 0 .45rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.15; }
.mcm-card p { margin: 0 0 1rem; color: var(--ink-soft); }
.mcm-card a:not(.mcm-button) { font-weight: 850; }
.mcm-card--copper { border: 0; background: linear-gradient(145deg, #c57a4d, #9a5430); color: #fff; }
.mcm-card--copper p, .mcm-card--copper a { color: rgba(255,255,255,.88); }
.mcm-card--ink { border: 0; background: var(--ink); color: #fff; }
.mcm-card--ink p, .mcm-card--ink a { color: rgba(255,255,255,.78); }
.mcm-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--cream); color: var(--copper); font-size: 1.7rem; }
.mcm-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.mcm-split__media { position: relative; }
.mcm-split__media img { display: block; width: 100%; border-radius: 34px; box-shadow: var(--shadow); }
.mcm-note { padding: 1rem 1.15rem; border-left: 4px solid var(--copper); background: var(--cream); color: var(--ink-soft); }
.mcm-checklist { padding: 0; list-style: none; }
.mcm-checklist li { position: relative; margin: .72rem 0; padding-left: 1.8rem; }
.mcm-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--copper); font-weight: 900; }
.mcm-steps { counter-reset: mcmstep; }
.mcm-step { padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 58px 1fr; gap: 1rem; }
.mcm-step::before { counter-increment: mcmstep; content: counter(mcmstep); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; }
.mcm-step h3 { margin: 0 0 .25rem; }
.mcm-step p { margin: 0; color: var(--ink-soft); }

/* Calls to action */
.mcm-cta { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem); border-radius: 32px; background: var(--ink); color: #fff; }
.mcm-cta::after { content: ""; position: absolute; right: -120px; bottom: -150px; width: 360px; height: 360px; border: 55px solid rgba(182,106,60,.25); border-radius: 50%; }
.mcm-cta > * { position: relative; z-index: 1; }
.mcm-cta p { max-width: 720px; color: rgba(255,255,255,.76); }
.mcm-community { background: linear-gradient(145deg, #eef1ec, #fffdfa); }
.mcm-community__mark { font-family: Georgia, serif; font-size: clamp(4rem, 10vw, 9rem); line-height: 1; color: rgba(104,118,101,.16); }

/* Forms */
.mcm-form { padding: clamp(1.4rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.mcm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mcm-field { margin-bottom: 1rem; }
.mcm-field--full { grid-column: 1 / -1; }
.mcm-field label { display: block; margin-bottom: .35rem; color: var(--ink); font-size: .88rem; font-weight: 850; }
.mcm-field input, .mcm-field select, .mcm-field textarea {
  width: 100%; min-height: 50px; padding: .72rem .85rem; border: 1px solid #cfc5ba; border-radius: 12px; background: #fff; color: var(--ink);
}
.mcm-field textarea { min-height: 135px; resize: vertical; }
.mcm-field input:focus, .mcm-field select:focus, .mcm-field textarea:focus { outline: 3px solid rgba(182,106,60,.18); border-color: var(--copper); }
.mcm-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); }
.mcm-consent input { width: auto; min-height: 0; margin-top: .25rem; }
.mcm-alert { margin: 1rem 0; padding: 1rem; border-radius: 12px; background: #eef6ec; border: 1px solid #b9d3b4; }
.mcm-alert--error { background: #fff0ee; border-color: #e6b4aa; }
.mcm-hp { position: absolute !important; left: -9999px !important; }

/* Memory Garden */
.mcm-garden-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mcm-memory { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.mcm-memory img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mcm-memory__body { padding: 1.25rem; }
.mcm-memory h3 { margin: 0 0 .35rem; font-family: Georgia, serif; font-size: 1.55rem; }
.mcm-memory p { margin: 0; color: var(--ink-soft); }

/* Standard pages, shop, footer */
.mcm-page-hero { padding: clamp(3.5rem, 8vw, 7rem) 0; background: var(--cream); text-align: center; }
.mcm-page-hero .mcm-lead { margin-inline: auto; }
.mcm-content { width: min(calc(100% - 2rem), 820px); margin-inline: auto; padding-block: 4rem 6rem; }
.mcm-content h2, .mcm-content h3 { font-family: Georgia, serif; line-height: 1.2; }
.woocommerce .products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.mcm-footer { padding: 4rem 0 2rem; background: #1f2224; color: rgba(255,255,255,.74); }
.mcm-footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 3rem; }
.mcm-footer img { width: 280px; filter: brightness(0) invert(1); }
.mcm-footer h2, .mcm-footer h3 { color: #fff; }
.mcm-footer a { color: rgba(255,255,255,.88); }
.mcm-footer ul { margin: 0; padding: 0; list-style: none; }
.mcm-footer li { margin: .45rem 0; }
.mcm-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }

@media (max-width: 980px) {
  .mcm-header__inner { min-height: 76px; }
  .mcm-brand img { width: 225px; }
  .mcm-menu-toggle { display: inline-flex; margin-left: auto; }
  .mcm-nav { position: absolute; display: none; top: 100%; left: 1rem; right: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .mcm-nav.is-open { display: block; }
  .mcm-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .mcm-nav a { display: block; padding: .75rem; }
  .mcm-header__cta { display: none; }
  .mcm-hero__inner, .mcm-split { grid-template-columns: 1fr; }
  .mcm-hero__inner { min-height: 0; }
  .mcm-hero__visual { max-width: 680px; margin-inline: auto; }
  .mcm-grid--3, .mcm-garden-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .mcm-brand img { width: 190px; }
  .mcm-grid--3, .mcm-grid--2, .mcm-garden-grid, .mcm-form__grid, .mcm-footer__grid { grid-template-columns: 1fr; }
  .mcm-actions .mcm-button { width: 100%; }
  .mcm-hero__inner { padding-top: 3rem; }
  .mcm-hero__visual img { max-height: 460px; }
  .mcm-footer__bottom { flex-direction: column; }
  .woocommerce .products { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.mcm-hero__visual img{object-fit:contain}.mcm-product-price{font-size:1.8rem;font-weight:700;margin:1rem 0 .3rem}.mcm-purchase-note{font-size:.94rem;opacity:.85}.mcm-shop-feature{margin-bottom:2rem}.mcm-shop-feature img{width:100%;max-height:560px;object-fit:contain;border-radius:16px}.mcm-product-thumb{width:100%;height:240px;object-fit:contain;background:#fff;border-radius:10px;margin-bottom:1rem}
