/*
Theme Name: MacVault Custom
Theme URI: https://www.macvault.store/
Author: MacVault
Description: Custom-built WordPress theme replicating macvault.store. No prebuilt theme, no page builder. Includes a Products post type (model, condition, PTA status, expected price range, included items), Apple / PlayStation store landing pages, buying-guide blog templates and the homepage section layout of the live site.
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: macvault
*/

:root{
  --ink:#102A43;
  --deep:#07111D;
  --blue:#0A84FF;
  --blue-dark:#0057D8;
  --blue-hover:#0071E3;
  --mist:#F4F9FF;
  --line:#DCE8F3;
  --muted:#475467;
  --faint:#667085;
  --card:#FFFFFF;
  --radius:20px;
  --shadow:0 18px 50px rgba(5,20,44,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.6;font-size:16.5px}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue-dark);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}
h1,h2,h3{line-height:1.1;margin:0 0 .5em;font-weight:600;letter-spacing:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif}
h1{font-size:clamp(34px,4.5vw,44px);line-height:1.05}
h2{font-size:clamp(1.5rem,2.6vw,2rem)}
h3{font-size:1.15rem;font-weight:700}
p{margin:0 0 1em}
.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:600;color:var(--blue-dark);margin-bottom:.6rem}
.lead{font-size:1.15rem;color:var(--muted);max-width:62ch}
.section{padding:72px 0}
.section--mist{background:var(--mist)}
.section-head{max-width:70ch;margin-bottom:34px}

/* Header — floating white pill bar, like the live site */
.site-header{position:sticky;top:12px;z-index:50;background:transparent}
.site-header .wrap{display:flex;align-items:center;gap:26px;min-height:72px;background:#fff;border:1px solid rgba(16,42,67,.08);border-radius:18px;box-shadow:0 10px 30px rgba(5,20,44,.08);padding:10px 12px 10px 20px;margin-top:12px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.25rem;color:var(--ink)}
.brand img{height:40px;width:auto}
.brand:hover{text-decoration:none}
.main-nav{margin-left:auto}
.main-nav ul{display:flex;gap:26px;list-style:none;margin:0;padding:0}
.main-nav a{color:var(--ink);font-weight:600}
.main-nav a:hover{color:var(--blue);text-decoration:none}
.nav-toggle{display:none;margin-left:auto;background:none;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font:inherit;cursor:pointer}
.btn{display:inline-block;background:var(--blue);color:#fff;padding:12px 22px;border-radius:999px;font-weight:600;border:1px solid var(--blue)}
.btn:hover{background:var(--blue-hover);border-color:var(--blue-hover);text-decoration:none}
.btn--blue{background:var(--blue);border-color:var(--blue)}
.btn--blue:hover{background:var(--blue-hover);border-color:var(--blue-hover)}
.btn--ghost{background:#fff;color:var(--blue-dark);border:1px solid rgba(10,132,255,.25)}
.header-cta{margin-left:8px}

/* Hero */
.hero{background:linear-gradient(180deg,var(--mist),#fff);padding:84px 0 64px}
.hero h1{font-size:clamp(48px,6vw,78px);line-height:.98;max-width:1080px}
.section-head h2{font-size:clamp(34px,4.5vw,58px);line-height:1.02}
.hero .chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.chip{background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 16px;font-weight:600;font-size:.92rem;box-shadow:var(--shadow)}
.store-panels{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:44px}
.store-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}
.store-panel h2{font-size:clamp(32px,3.4vw,44px);line-height:1.05}
.store-panel .panel-link{font-weight:700}

/* Cards */
.grid{display:grid;gap:22px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}
.card .num{font-size:1.6rem;font-weight:800;color:var(--blue);margin-bottom:8px}
.product-card{display:flex;flex-direction:column}
.product-card .thumb{border-radius:12px;overflow:hidden;background:var(--mist);margin:-24px -24px 18px}
.product-card .thumb img{width:100%;height:210px;object-fit:cover}
.card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.cat-label{font-weight:700;color:var(--muted);font-size:.9rem;text-transform:capitalize}
.badge{background:#E7F6EC;color:#12703A;border-radius:999px;padding:3px 12px;font-size:.8rem;font-weight:700;white-space:nowrap}
.badge--warn{background:#FFF4DE;color:#8A5A00}
.product-card h3 a{color:var(--ink)}
.summary{color:var(--muted);margin-bottom:10px}
.facts{list-style:none;margin:0 0 14px;padding:0}
.facts li{padding:3px 0;color:var(--ink)}
.facts li strong{font-weight:700}
.price{font-weight:800;font-size:1.05rem;margin-top:auto}
.highlight-facts{color:var(--muted);font-size:.95rem;margin-top:6px}

/* Compare */
.compare-card ul{margin:0;padding-left:20px}
.compare-card li{margin-bottom:12px}
.compare-card--brand{background:var(--deep);color:#fff;border-color:var(--deep)}
.compare-card--brand h3{color:#fff}

/* Banner */
.banner{background:var(--mist);border:1px solid var(--line);border-radius:var(--radius);padding:32px;display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}
.banner h3{font-size:1.35rem;margin-bottom:.3em}
.banner p{margin:0;color:var(--muted);max-width:60ch}

/* Guides */
.guide-card{display:flex;flex-direction:column}
.guide-card .thumb{border-radius:12px;overflow:hidden;margin:-24px -24px 18px}
.guide-card .thumb img{width:100%;height:170px;object-fit:cover}
.guide-card h3 a{color:var(--ink)}
.guide-card .excerpt{color:var(--muted)}
.read-link{font-weight:700;margin-top:auto}

/* FAQ */
.faq-list details{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 22px;margin-bottom:12px}
.faq-list summary{font-weight:700;cursor:pointer}
.faq-list details p{margin:.8em 0 0;color:var(--muted)}

/* Contact block */
.contact-block{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:start}
.contact-facts{background:var(--mist);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.contact-facts p{margin-bottom:.6em}

/* Store landing */
.store-hero{background:linear-gradient(180deg,var(--mist),#fff);padding:72px 0 48px}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:30px}
.feature{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.feature h3{font-size:1rem}
.feature p{color:var(--muted);margin:0;font-size:.95rem}
.filter-bar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 18px;margin:26px 0}
.filter-bar .spacer{flex:1}
.filter-bar select,.filter-bar input{font:inherit;padding:8px 10px;border:1px solid var(--line);border-radius:10px}

/* Single product */
.back-link{font-weight:600;display:inline-block;margin:26px 0 6px}
.product-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:28px;align-items:start;margin-top:14px}
.price-panel{background:var(--mist);border:1px solid var(--line);border-radius:var(--radius);padding:26px;position:sticky;top:96px}
.price-panel .amount{font-size:1.5rem;font-weight:800}
.facts-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.facts-table td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top}
.facts-table tr td:first-child{font-weight:700;width:34%;background:var(--mist)}
.facts-table tr:last-child td{border-bottom:none}

/* Blog single */
.article-head{max-width:820px;margin:0 auto;padding:56px 20px 0;text-align:left}
.byline{color:var(--faint);margin:10px 0 22px}
.article-hero{max-width:1000px;margin:0 auto;padding:0 20px}
.article-hero img{border-radius:var(--radius);width:100%}
.article-body{max-width:820px;margin:0 auto;padding:34px 20px 10px}
.article-body h2{margin-top:1.4em}
.article-body ul,.article-body ol{padding-left:22px}
.article-body li{margin-bottom:.5em}
/* Compat: CTA buttons inside migrated live article bodies keep their pill look */
.article-body a[class*="bg-[#0a84ff]"]{display:inline-block;background:var(--blue);color:#fff;padding:12px 24px;border-radius:999px;font-weight:600;border:1px solid var(--blue)}
.article-body a[class*="bg-[#0a84ff]"]:hover{background:var(--blue-hover);border-color:var(--blue-hover);text-decoration:none}
.article-body a[class*="hover:border-[#0a84ff]"]{display:inline-block;background:#fff;color:var(--blue-dark);padding:12px 24px;border-radius:999px;font-weight:600;border:1px solid rgba(10,132,255,.25)}
.article-body a[class*="hover:border-[#0a84ff]"]:hover{text-decoration:none;border-color:var(--blue)}
.business-block{max-width:820px;margin:40px auto 0;padding:26px;background:var(--mist);border:1px solid var(--line);border-radius:var(--radius)}
.business-block p{margin-bottom:.5em}

/* Footer */
.site-footer{background:var(--deep);color:#D9E6F2;margin-top:80px}
.site-footer .wrap{padding:54px 20px 34px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:30px}
.site-footer a{color:#fff}
.site-footer .brand{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:34px;padding-top:20px;font-size:.92rem;color:#9FB4C8}

/* Responsive */
@media (max-width:960px){
  .grid-3,.grid-4,.feature-grid{grid-template-columns:repeat(2,1fr)}
  .store-panels,.grid-2,.contact-block,.product-layout,.footer-grid{grid-template-columns:1fr}
  .price-panel{position:static}
}
@media (max-width:680px){
  .grid-3,.grid-4,.grid-2,.feature-grid{grid-template-columns:1fr}
  .nav-toggle{display:block}
  .main-nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:14px 20px}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;gap:14px}
  .header-cta{display:none}
  .section{padding:52px 0}
}
