/*
Theme Name: Moore's CustomZ
Theme URI: https://moorescustomz.com
Author: Sentra Systems
Author URI: https://sentrasystems.com
Description: Moore's CustomZ custom WordPress theme powered by Sentra Systems. Built for a premium custom fabrication and finishing studio with serialized commission records, authenticity registry integration, and future Sentra service connectivity.
Version: 2.0.0
Requires at least: 6.1
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: moorescustomz
Tags: custom-theme, dark-theme, sentra-powered, custom-fabrication, automotive, motorcycles, firearms, murals, full-width
*/

/* =========================================================
   DESIGN TOKENS - Premium Studio Architecture
   ========================================================= */
:root{
  /* Colors */
  --ink: #0b0d12;
  --background: #0b0d12;

  --surface: #151a22;
  --surface-2: #1c212b;
  --surface-3: #10141c;

  --border: #272d3a;
  --border-soft: rgba(255,255,255,0.08);
  --border-accent: rgba(122,77,255,0.2);

  --foreground: #f4f5f7;
  --muted: #a2a8b4;
  --muted-2: #7f8795;

  --plum: #5b2dbb;
  --plum-soft: #7a4dff;
  --plum-deep: #2b174f;

  --gold: #c9a35c;
  --gold-soft: #e4cd9a;

  --white: #ffffff;
  --black: #000000;

  /* Architectural Shadows */
  --shadow-frame: 0 1px 0 rgba(255,255,255,0.03), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-edge: 0 2px 0 rgba(122,77,255,0.15), 0 8px 32px rgba(0,0,0,0.5);
  --shadow-depth: 0 12px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 4px 24px rgba(122,77,255,0.3);

  /* Geometry */
  --r-tight: 2px;
  --r-s: 4px;
  --r-m: 6px;
  --r-l: 8px;

  /* Gradients */
  --g-studio-depth:
    radial-gradient(circle at 20% 10%, rgba(122,77,255,0.12) 0%, rgba(13,16,22,0) 45%),
    radial-gradient(circle at 80% 0%, rgba(201,163,92,0.08) 0%, rgba(13,16,22,0) 50%),
    linear-gradient(180deg, #0b0d12 0%, #090a0e 100%);

  --g-booth-spotlight:
    radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,0.04) 0%, rgba(13,16,22,0) 60%),
    radial-gradient(900px 500px at 20% 10%, rgba(122,77,255,0.1) 0%, rgba(13,16,22,0) 55%),
    radial-gradient(900px 500px at 85% 15%, rgba(201,163,92,0.06) 0%, rgba(13,16,22,0) 60%),
    linear-gradient(180deg, #0b0d12 0%, #080910 100%);

  --g-accent-plum: linear-gradient(135deg, #5b2dbb 0%, #7a4dff 100%);
  --g-accent-gold: linear-gradient(135deg, #c9a35c 0%, #e4cd9a 100%);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Times New Roman", Times, Georgia, "Iowan Old Style", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Type scale */
  --fs-body: 1.125rem;
  --fs-body-lg: 1.22rem;
  --fs-lead: 1.35rem;
  --fs-h6: 1.05rem;
  --fs-h5: 1.18rem;
  --fs-h4: 1.35rem;
  --fs-h3: clamp(1.55rem, 2.2vw, 1.9rem);
  --fs-h2: clamp(2.0rem, 3.2vw, 2.6rem);
  --fs-h1: clamp(2.6rem, 4.5vw, 3.5rem);
  --fs-hero: clamp(3.2rem, 6.2vw, 5.2rem);

  /* Spacing system */
  --sp-0: 0px;
  --sp-10: 0.75rem;
  --sp-15: 0.95rem;
  --sp-20: 1.25rem;
  --sp-30: 1.75rem;
  --sp-40: 2.5rem;
  --sp-50: 3.5rem;
  --sp-60: 5rem;
  --sp-70: 7rem;
  --sp-80: 9rem;
  --sp-90: 11rem;

  /* Layout widths */
  --content: 900px;
  --wide: 1520px;
}

/* =========================================================
   BASE / RESET
   ========================================================= */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background: var(--g-studio-depth);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: var(--plum-soft); text-decoration:none; }
a:hover{ color: var(--gold-soft); text-decoration: underline; }
:focus{ outline:none; }
:focus-visible{ box-shadow: 0 0 0 2px rgba(122,77,255,0.4); }
button, a{ touch-action: manipulation; }

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container{
  width: min(calc(100% - (var(--sp-30) * 2)), var(--content));
  margin-inline: auto;
}
.container-wide{
  width: min(calc(100% - (var(--sp-30) * 2)), var(--wide));
  margin-inline: auto;
}
.section{ padding: var(--sp-70) 0; }
.section-tight{ padding: var(--sp-50) 0; }

hr.sep{
  border:0;
  height:1px;
  background: rgba(255,255,255,0.10);
  margin: var(--sp-50) 0;
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
  margin: 0 0 var(--sp-15);
  color: var(--foreground);
  font-weight: 400;
}
h1{ font-size: var(--fs-h1); line-height: 1.12; }
h2{ font-size: var(--fs-h2); line-height: 1.18; }
h3{ font-size: var(--fs-h3); line-height: 1.22; }
h4{ font-size: var(--fs-h4); line-height: 1.3; }
h5{ font-size: var(--fs-h5); line-height: 1.35; }
h6{ font-size: var(--fs-h6); line-height: 1.4; }

.lead{
  font-size: var(--fs-lead);
  color: var(--muted);
  margin: 0;
}

.kicker{
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  color: var(--foreground);
  font-size: 0.92rem;
}

/* =========================================================
   PANELS - Clean Architectural Frames
   ========================================================= */
.panel{
  border-radius: var(--r-l);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow-frame);
}
.panel.pad{
  padding: var(--sp-40);
}
.panel.edge{
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(122,77,255,0.2);
}

section, footer{
  scroll-margin-top: 110px;
}

/* =========================================================
   HEADER - ARCHITECTURAL STRUCTURE
   ========================================================= */

.mc-header {
  position: relative;
  z-index: 999;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-frame);
}

/* ARCHITECTURAL GRID - 3 defined zones */
.mc-header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
}

/* ===== ZONE 1: BRAND LOCKUP ===== */
.mc-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mc-brand-lockup{
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.mc-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 0;
  transition: opacity 0.2s ease;
}

.mc-brand-link:hover {
  opacity: 0.85;
}

.mc-logo-main {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--foreground);
  line-height: 1;
  margin: 0;
}

.mc-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1;
  margin: 0;
}

.mc-logo-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mc-logo-mark{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--g-accent-plum);
  box-shadow: var(--shadow-edge);
}

.mc-logo-mark.mc-logo-image{
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
}

.mc-logo-mark img.custom-logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.mc-logo .custom-logo-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mc-logo .custom-logo{
  width: auto;
  height: 52px;
  max-width: 220px;
  border-radius: 12px;
  background: transparent;
}

.mc-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(122,77,255,0.35);
  background: rgba(122,77,255,0.08);
  color: var(--foreground);
  cursor: pointer;
}
.mc-nav-toggle:hover{
  background: rgba(122,77,255,0.18);
  border-color: rgba(122,77,255,0.55);
}

.mc-nav-toggle-bars{
  display: inline-block;
  width: 18px;
  height: 12px;
  position: relative;
}
.mc-nav-toggle-bars::before,
.mc-nav-toggle-bars::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mc-nav-toggle-bars::before{ top: 0; }
.mc-nav-toggle-bars::after{ bottom: 0; }
.mc-nav-toggle-bars::after{
  box-shadow: 0 -5px 0 0 var(--foreground);
}

.mc-header.nav-open .mc-nav-toggle-bars::before{
  transform: translateY(5px) rotate(45deg);
}
.mc-header.nav-open .mc-nav-toggle-bars::after{
  transform: translateY(-5px) rotate(-45deg);
  box-shadow: none;
}

/* ===== ZONE 2: NAVIGATION BAR ===== */
nav {
  display: flex;
  align-items: center;
  justify-self: center;
}

.mc-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-s);
  padding: 4px;
}

.mc-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mc-menu a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-tight);
  transition: all 0.2s ease;
}

.mc-menu-auth{
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--r-tight);
  border: 1px solid rgba(122,77,255,0.35);
  background: rgba(122,77,255,0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mc-menu-auth:hover{
  background: rgba(122,77,255,0.18);
  border-color: rgba(122,77,255,0.55);
}

.mc-menu a:hover {
  color: var(--foreground);
  background: rgba(122,77,255,0.1);
  text-decoration: none;
}

.mc-menu a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background: var(--g-accent-plum);
  transition: width 0.2s ease;
}

.mc-menu a:hover::after {
  width: 40%;
}

/* ===== ZONE 3: ACTION SLOT ===== */
.mc-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--foreground);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(122,77,255,0.3);
  border-radius: var(--r-s);
  transition: all 0.2s ease;
}

.mc-btn-outline:hover {
  color: var(--white);
  background: rgba(122,77,255,0.15);
  border-color: rgba(122,77,255,0.5);
  box-shadow: 0 0 20px rgba(122,77,255,0.2);
  text-decoration: none;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor:pointer;
  user-select:none;
  transition: all 0.2s ease;
}

.btn-primary{
  background: var(--g-accent-plum);
  color: var(--white);
  border-color: rgba(122,77,255,0.3);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover{
  background: var(--plum-soft);
  box-shadow: 0 8px 32px rgba(122,77,255,0.4);
  transform: translateY(-1px);
  text-decoration:none;
}

.btn-outline{
  background: transparent;
  color: var(--plum-soft);
  border-color: rgba(122,77,255,0.3);
}

.btn-outline:hover{
  background: rgba(122,77,255,0.1);
  border-color: rgba(122,77,255,0.5);
  color: var(--foreground);
  box-shadow: 0 0 20px rgba(122,77,255,0.2);
  text-decoration:none;
}

/* =========================================================
   AUTH MODAL
   ========================================================= */
.mc-auth-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-auth-modal[hidden]{
  display: none;
}
.mc-auth-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(5,7,10,0.78);
  backdrop-filter: blur(6px);
}
.mc-auth-panel{
  position: relative;
  width: min(92vw, 520px);
  padding: var(--sp-40);
  border-radius: var(--r-l);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-depth);
  z-index: 1;
}
.mc-auth-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
  color: var(--foreground);
  font-size: 1.2rem;
  cursor: pointer;
}
.mc-auth-panel h3{
  margin-top: 0;
}
.mc-auth-sub{
  color: var(--muted);
  margin: 0 0 var(--sp-20);
}
.mc-auth-message{
  min-height: 22px;
  font-size: 0.95rem;
  margin-bottom: var(--sp-20);
  color: var(--muted);
}
.mc-auth-message[data-type="error"]{ color: #ff9b9b; }
.mc-auth-message[data-type="success"]{ color: #9be7a1; }
.mc-auth-form{
  display: grid;
  gap: var(--sp-15);
}
.mc-auth-form[hidden]{
  display: none;
}
.mc-auth-state{
  display: grid;
  gap: var(--sp-15);
  margin-bottom: var(--sp-20);
  padding: var(--sp-20);
  border-radius: var(--r-s);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
}
.mc-auth-state[hidden]{
  display: none;
}
.mc-auth-staff{
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--r-s);
  border: 1px solid rgba(155,231,161,0.35);
  background: rgba(155,231,161,0.12);
  color: #9be7a1;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mc-auth-actions{
  display: grid;
  gap: 12px;
  margin-top: var(--sp-10);
}
.mc-auth-actions .btn{
  width: 100%;
}
.mc-auth-form label{
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.mc-auth-form input{
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  border-radius: var(--r-s);
  padding: 10px 12px;
  color: var(--foreground);
  font-size: 1rem;
}
.mc-auth-divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--sp-30) 0 var(--sp-20);
  color: var(--muted-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.mc-auth-divider::before,
.mc-auth-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.mc-auth-oauth{
  display: grid;
  gap: 12px;
}
.mc-auth-provider{
  width: 100%;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  color: var(--foreground);
  padding: 12px 14px;
  border-radius: var(--r-s);
  font-weight: 600;
  cursor: pointer;
}
.mc-auth-provider:hover{
  background: rgba(255,255,255,0.08);
}
.mc-auth-open{
  overflow: hidden;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  background: var(--g-booth-spotlight);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-inner{
  padding: var(--sp-80) 0 var(--sp-60);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-40);
  align-items: end;
}
.hero-title{
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero-actions{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: var(--sp-30);
}
.hero-meta{
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:flex-start;
}
.meta-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   FEATURE STRIP
   ========================================================= */
.strip{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-20);
}
.strip .tile{
  padding: 20px;
  border-radius: var(--r-l);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s ease;
}
.strip .tile:hover {
  border-color: rgba(122,77,255,0.2);
  background: rgba(122,77,255,0.05);
}
.strip .tile .label{
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-2);
}
.strip .tile .value{
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--foreground);
}

/* =========================================================
   SERVICES
   ========================================================= */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-30);
}
.card{
  position: relative;
  padding: var(--sp-40);
  border-radius: var(--r-l);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  box-shadow: var(--shadow-frame);
  transition: all 0.3s ease;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  top: -50%;
  left: -30%;
  width: 160%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(122,77,255,0.08), transparent 70%);
  pointer-events:none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: rgba(122,77,255,0.3);
  box-shadow: var(--shadow-edge);
}
.card:hover::before {
  opacity: 1;
}
.card h3{
  margin-bottom: 12px;
}
.card p{
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-20);
}
.g-item{
  border-radius: var(--r-l);
  overflow:hidden;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  position: relative;
  min-height: 180px;
  transition: all 0.3s ease;
}
.g-item img{
  width:100%;
  height:100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s ease;
  opacity: 0.92;
}
.g-item:hover {
  border-color: rgba(122,77,255,0.3);
  box-shadow: var(--shadow-edge);
}
.g-item:hover img{
  transform: scale(1.05);
  opacity: 1;
}
.g-span-6{ grid-column: span 6; }
.g-span-4{ grid-column: span 4; }
.g-span-3{ grid-column: span 3; }

/* =========================================================
   CTA / FOOTER
   ========================================================= */
.cta{
  background: radial-gradient(circle at 20% 20%, rgba(122,77,255,0.08), rgba(0,0,0,0) 60%),
              radial-gradient(circle at 90% 20%, rgba(201,163,92,0.06), rgba(0,0,0,0) 65%),
              rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer{
  padding: var(--sp-50) 0;
  color: var(--muted-2);
}
.footer small{
  display:block;
  color: var(--muted-2);
}

/* =========================================================
   MOBILE ACTIONS BAR
   ========================================================= */
.mc-mobile-actions{
  display: none;
}
.mc-mobile-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.mc-mobile-action-primary{
  background: var(--g-accent-plum);
  color: var(--white);
  border-color: rgba(122,77,255,0.4);
  box-shadow: var(--shadow-accent);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px){
  .mc-header-inner {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 16px;
  }
}

@media (max-width: 980px){
  .mc-header{
    position: sticky;
    top: 0;
  }

  .mc-header-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    min-height: auto;
  }

  .mc-nav-toggle{
    display: inline-flex;
  }

  nav {
    justify-self: stretch;
    width: 100%;
  }

  .mc-menu {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .mc-cta {
    justify-self: stretch;
  }

  .mc-btn-outline {
    width: 100%;
  }

  .hero-grid{ grid-template-columns: 1fr; }
  .strip{ grid-template-columns: repeat(2, 1fr); }
  .cards{ grid-template-columns: 1fr; }
  .gallery-grid{
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }
  .g-span-6,.g-span-4,.g-span-3{ grid-column: auto / span 1; }

  .mc-menu,
  .mc-cta{
    display: none;
  }

  .mc-header.nav-open .mc-menu,
  .mc-header.nav-open .mc-cta{
    display: flex;
  }

  .mc-header.nav-open nav{
    border: 1px solid var(--border-soft);
    border-radius: var(--r-s);
    padding: 6px;
    background: rgba(255,255,255,0.02);
  }

  .mc-header.nav-open .mc-menu{
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
  }

  .mc-header.nav-open .mc-menu li{
    width: 100%;
  }

  .mc-header.nav-open .mc-menu a{
    justify-content: center;
  }

  .mc-header.nav-open .mc-menu .mc-menu-auth{
    justify-content: center;
    width: 100%;
  }

  .mc-header.nav-open .mc-cta{
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 720px) {
  :root{
    --fs-body: 1rem;
    --fs-lead: 1.1rem;
    --fs-hero: clamp(2.2rem, 9vw, 3.2rem);
    --sp-30: 1.2rem;
    --sp-40: 2rem;
    --sp-50: 2.6rem;
    --sp-60: 3.6rem;
    --sp-70: 4.4rem;
    --sp-80: 5.2rem;
  }

  body{
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .hero-inner{
    padding: var(--sp-60) 0 var(--sp-40);
  }

  .panel.pad,
  .card{
    padding: var(--sp-30);
  }

  .hero-actions{
    gap: 10px;
  }

  .btn{
    width: 100%;
  }

  .badge{
    width: 100%;
    justify-content: center;
  }

  .mc-mobile-actions{
    position: fixed;
    inset: auto 0 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11,13,18,0.96);
    border-top: 1px solid var(--border-soft);
    box-shadow: var(--shadow-depth);
    z-index: 1000;
  }

  .mc-mobile-action{
    font-size: 0.72rem;
    padding: 12px 10px;
  }

  .gallery-grid{
    grid-template-columns: 1fr;
  }

  .mc-logo .custom-logo{
    height: 40px;
  }

  .mc-auth-modal{
    align-items: flex-start;
    padding: 16px;
    overflow-y: auto;
  }

  .mc-auth-panel{
    width: 100%;
    margin: 24px auto;
    padding: var(--sp-30);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .mc-auth-divider{
    margin: var(--sp-20) 0;
  }

  .mc-auth-oauth{
    grid-template-columns: 1fr;
  }

  .mc-auth-provider{
    min-height: 48px;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .mc-header-inner {
    padding: 16px;
  }

  .mc-nav-toggle{
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .mc-logo-main {
    font-size: 1.3rem;
    letter-spacing: 1.5px;
  }

  .mc-logo-sub {
    font-size: 0.6rem;
  }

  .mc-logo-mark{
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .mc-menu {
    gap: 1px;
    padding: 3px;
  }

  .mc-menu a {
    font-size: 0.75rem;
    padding: 8px 14px;
  }

  .strip {
    grid-template-columns: 1fr;
  }

  .g-item{
    min-height: 200px;
  }
}
