/*
Theme Name: McDonald Golf Services
Theme URI: https://www.ebay.com/usr/mcdonald_golf
Author: McDonald Golf Services
Description: Custom theme for McDonald Golf Services — PING-certified club fitting, caddying, and quality used golf equipment. Classic serif design in cream, olive, and gold.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mcdonald-golf
*/

/* ============ TOKENS ============ */
:root {
  --bg: #F1EBDD;
  --bg-alt: #F7F3E8;
  --ink: #2B271F;
  --muted: #57503F;
  --faint: #7A7261;
  --gold: #8A6D3B;
  --gold-dark: #6E5528;
  --brass: #CBB068;
  --brass-dark: #BEA254;
  --olive: #4A5238;
  --olive-dark: #3A4029;
  --olive-text: #E9E2CE;
  --olive-muted: #CFC8B2;
  --border: #D8CDB4;
  --border-soft: #E2D9C2;
  --input-border: #C4B896;
  --input-bg: #FBF8EF;
  --card-img-bg: #ECE4D0;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
}

/* ============ BASE ============ */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; }
input, textarea, select, button { font-family: var(--font-body); }
input:focus, textarea:focus { outline: none; border-color: var(--gold) !important; }
::placeholder { color: #A79C86; opacity: 1; }
.mgs-wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.mgs-eyebrow {
  font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}

/* ============ HEADER / NAV ============ */
.mgs-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 235, 221, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.admin-bar .mgs-header { top: 32px; }
.mgs-nav {
  max-width: 1120px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.mgs-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.mgs-brand:hover { color: var(--ink); }
.mgs-brand-crest { display: inline-flex; width: 34px; height: 34px; }
.mgs-brand-crest img { width: 100%; height: 100%; object-fit: contain; }
.mgs-brand-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: 0.04em;
}
.mgs-nav-links {
  display: flex; gap: 28px;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
}
.mgs-nav-links a { color: var(--muted); }
.mgs-nav-links a:hover { color: var(--gold); }
.mgs-nav-links .is-current {
  color: var(--gold);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}

/* ============ HERO ============ */
.mgs-hero { border-bottom: 1px solid var(--border); background: var(--bg); }
.mgs-hero-inner {
  max-width: 860px; margin: 0 auto; padding: 84px 32px 72px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.mgs-hero-crest { display: inline-flex; width: 150px; height: 150px; margin-bottom: 28px; }
.mgs-hero-crest img { width: 100%; height: 100%; object-fit: contain; }
.mgs-hero-kicker {
  font-size: 15px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.mgs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 62px); line-height: 1.05; font-weight: 600;
  margin: 0 0 22px; text-wrap: balance;
}
.mgs-hero-sub {
  font-size: 21px; line-height: 1.55; color: var(--muted);
  max-width: 560px; margin: 0 0 36px; text-wrap: pretty;
}
.mgs-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Buttons */
.mgs-btn {
  display: inline-block; padding: 14px 34px; font-size: 15px;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mgs-btn-solid { background: var(--olive); color: var(--bg); border: 1px solid var(--olive); }
.mgs-btn-solid:hover { background: var(--olive-dark); color: var(--bg); }
.mgs-btn-outline { color: var(--olive); border: 1px solid #9A9077; background: transparent; }
.mgs-btn-outline:hover { border-color: var(--olive); color: var(--ink); }
.mgs-btn-brass { background: var(--brass); color: var(--ink); border: 1px solid var(--brass); padding: 15px 40px; }
.mgs-btn-brass:hover { background: var(--brass-dark); color: var(--ink); }

/* ============ CREDIBILITY STRIP ============ */
.mgs-cred { background: var(--olive); color: var(--olive-text); }
.mgs-cred-inner {
  max-width: 1120px; margin: 0 auto; padding: 26px 32px;
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; text-align: center;
}
.mgs-cred-item { display: flex; flex-direction: column; gap: 2px; }
.mgs-cred-value {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600; color: var(--brass);
}
.mgs-cred-label { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }

/* ============ SECTIONS ============ */
.mgs-section-alt { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.mgs-section { background: var(--bg); border-bottom: 1px solid var(--border); }
.mgs-section-head { text-align: center; margin-bottom: 56px; }
.mgs-section-head .mgs-eyebrow { display: block; margin-bottom: 12px; }
.mgs-section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 42px); font-weight: 600; margin: 0;
}

/* ============ SERVICES ============ */
.mgs-services-inner { padding-top: 80px; padding-bottom: 88px; }
.mgs-services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
}
.mgs-service-card {
  background: var(--bg); border: 1px solid var(--border);
  padding: 40px 32px; display: flex; flex-direction: column; gap: 14px;
}
.mgs-service-icon { display: inline-flex; width: 44px; height: 44px; }
.mgs-service-icon svg { width: 100%; height: 100%; }
.mgs-service-title { font-family: var(--font-display); font-size: 27px; font-weight: 600; margin: 0; }
.mgs-service-text { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ============ ABOUT ============ */
.mgs-about-inner {
  padding-top: 80px; padding-bottom: 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px; align-items: center;
}
.mgs-about-photo { min-height: 380px; display: flex; }
.mgs-about-photo img {
  width: 100%; min-height: 380px; height: 100%; object-fit: cover;
  border: 1px solid var(--border); display: block;
}
.mgs-about-copy { display: flex; flex-direction: column; gap: 18px; }
.mgs-about-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 40px); font-weight: 600; margin: 0; line-height: 1.1;
}
.mgs-about-copy p { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ============ REVIEWS ============ */
.mgs-reviews-inner { padding-top: 80px; padding-bottom: 88px; }
.mgs-reviews-inner .mgs-section-head { margin-bottom: 52px; }
.mgs-reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
}
.mgs-review {
  background: var(--bg); border: 1px solid var(--border);
  padding: 36px 32px; margin: 0; display: flex; flex-direction: column; gap: 16px;
}
.mgs-review-stars { color: var(--brass); font-size: 18px; letter-spacing: 4px; }
.mgs-review-quote {
  font-family: var(--font-display);
  font-size: 21px; line-height: 1.45; font-style: italic;
  margin: 0; color: var(--ink); text-wrap: pretty;
}
.mgs-review-name { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.mgs-reviews-note {
  text-align: center; margin: 40px 0 0;
  font-size: 16px; color: var(--faint); font-style: italic;
}

/* ============ SHOP / EBAY CTA ============ */
.mgs-shop { background: var(--olive); color: var(--olive-text); }
.mgs-shop-inner {
  max-width: 760px; margin: 0 auto; padding: 84px 32px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.mgs-shop .mgs-eyebrow { color: var(--brass); }
.mgs-shop-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 44px); font-weight: 600; margin: 0; line-height: 1.1;
  color: var(--bg);
}
.mgs-shop-text {
  font-size: 19px; line-height: 1.6; color: var(--olive-muted);
  max-width: 540px; margin: 0; text-wrap: pretty;
}
.mgs-shop-ctas { margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ============ CONTACT ============ */
.mgs-contact { background: var(--bg); }
.mgs-contact-inner { max-width: 640px; margin: 0 auto; padding: 84px 32px 72px; }
.mgs-contact-head { text-align: center; margin-bottom: 44px; }
.mgs-contact-head .mgs-eyebrow { display: block; margin-bottom: 12px; }
.mgs-contact-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 42px); font-weight: 600; margin: 0 0 14px;
}
.mgs-contact-head p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }
.mgs-form { display: flex; flex-direction: column; gap: 18px; }
.mgs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mgs-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.mgs-form input, .mgs-form textarea {
  border: 1px solid var(--input-border); background: var(--input-bg);
  padding: 13px 14px; font-size: 17px; color: var(--ink);
}
.mgs-form textarea { resize: vertical; }
.mgs-form .mgs-btn { border: 1px solid var(--olive); }
.mgs-form-sent {
  background: var(--bg-alt); border: 1px solid var(--brass);
  padding: 48px 32px; text-align: center;
}
.mgs-form-sent-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.mgs-form-sent-text { font-size: 17px; color: var(--muted); }
.mgs-hp { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* ============ FOOTER ============ */
.mgs-footer { border-top: 1px solid var(--border); background: var(--bg); }
.mgs-footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 36px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.mgs-footer-brand { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 16px; }
.mgs-footer-crest { display: inline-flex; width: 26px; height: 26px; }
.mgs-footer-crest img { width: 100%; height: 100%; object-fit: contain; }
.mgs-footer-links { display: flex; gap: 24px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.mgs-footer-links a { color: var(--faint); }
.mgs-footer-links a:hover { color: var(--gold); }
.mgs-footer-center { justify-content: center; }

/* ============ INVENTORY PAGE ============ */
.mgs-inv-head { border-bottom: 1px solid var(--border); background: var(--bg); }
.mgs-inv-head-inner { max-width: 1120px; margin: 0 auto; padding: 56px 32px 40px; text-align: center; }
.mgs-inv-head .mgs-eyebrow { display: block; margin-bottom: 12px; }
.mgs-inv-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 50px); font-weight: 600; margin: 0 0 14px; line-height: 1.05;
}
.mgs-inv-head p {
  font-size: 19px; line-height: 1.55; color: var(--muted);
  max-width: 520px; margin: 0 auto; text-wrap: pretty;
}
.mgs-filterbar {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  position: sticky; top: 63px; z-index: 40;
}
.admin-bar .mgs-filterbar { top: 95px; }
.mgs-filterbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.mgs-filter-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.mgs-filter-btn {
  border: 1px solid var(--input-border); background: var(--bg); color: var(--muted);
  padding: 7px 16px; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.mgs-filter-btn.is-active { background: var(--olive); color: var(--bg); border-color: var(--olive); }
.mgs-sort {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.mgs-sort select {
  border: 1px solid var(--input-border); background: var(--input-bg);
  padding: 8px 10px; font-size: 15px; color: var(--ink);
}
.mgs-inv-grid-section { background: var(--bg); flex: 1; }
.mgs-inv-grid-inner { max-width: 1120px; margin: 0 auto; padding: 48px 32px 72px; }
.mgs-inv-count { font-size: 15px; color: var(--faint); margin-bottom: 24px; font-style: italic; }
.mgs-inv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px;
}
.mgs-card {
  display: flex; flex-direction: column;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--ink);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.mgs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(43, 39, 31, 0.10);
  color: var(--ink);
}
.mgs-card-media {
  height: 190px; background: var(--card-img-bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.mgs-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mgs-card-media .mgs-card-crest { display: inline-flex; width: 54px; height: 54px; opacity: 0.5; }
.mgs-card-condition {
  position: absolute; top: 10px; left: 10px;
  background: var(--bg); border: 1px solid var(--brass); color: var(--gold);
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px;
}
.mgs-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mgs-card-cat { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.mgs-card-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600; line-height: 1.2; text-wrap: balance;
}
.mgs-card-spec { font-size: 14.5px; color: var(--faint); }
.mgs-card-foot {
  margin-top: auto; padding-top: 10px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--border-soft);
}
.mgs-card-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.mgs-card-link { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ============ GENERIC PAGE (fallback templates) ============ */
.mgs-page-inner { max-width: 760px; margin: 0 auto; padding: 64px 32px 88px; }
.mgs-page-inner h1 { font-family: var(--font-display); font-size: 44px; font-weight: 600; }
.mgs-page-inner p { font-size: 18px; line-height: 1.65; color: var(--muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 700px) {
  .mgs-nav { padding: 12px 20px; gap: 14px; flex-wrap: wrap; justify-content: center; }
  .mgs-nav-links { gap: 18px; }
  .mgs-brand-name { font-size: 18px; }
  .mgs-wrap { padding-left: 20px; padding-right: 20px; }
  .mgs-hero-inner { padding: 56px 20px 52px; }
  .mgs-form-row { grid-template-columns: 1fr; }
  .mgs-cred-inner { gap: 32px; }
  .mgs-filterbar { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mgs-card, .mgs-btn, .mgs-filter-btn { transition: none; }
  .mgs-card:hover { transform: none; }
}
