
/*
Theme Name: KMM Deluxe Gold v5
Theme URI: https://kenmillermedia.com/
Author: Ken Miller Media
Description: Premium local-service agency theme with navy + gold branding, deluxe header/footer, and mobile-optimized navigation.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kmm-deluxe-gold
*/

:root {
  --kmm-navy: #06142e;
  --kmm-navy-soft: #0a1e3f;
  --kmm-gold: #ffd95b;
  --kmm-white: #ffffff;
  --kmm-text-soft: #e8f2ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5fa;
  color: #111827;
  line-height: 1.6;
}

/* ================= HEADER ================= */

.kmm-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(to bottom, rgba(6,20,46,0.98), rgba(6,20,46,0.96));
  backdrop-filter: blur(10px);
  color: var(--kmm-white);
}

.kmm-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.kmm-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kmm-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.kmm-tagline {
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.kmm-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.kmm-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.kmm-nav a {
  color: var(--kmm-white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.kmm-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--kmm-gold);
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.kmm-nav a:hover::after {
  width: 100%;
}

.kmm-header-cta {
  background: var(--kmm-gold);
  color: #111827;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  white-space: nowrap;
  border: 2px solid rgba(0,0,0,0.2);
}

/* ================= MOBILE NAV ================= */

.kmm-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.kmm-toggle-bar {
  width: 24px;
  height: 2.4px;
  border-radius: 999px;
  background: var(--kmm-white);
  display: block;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* full-screen panel */
.kmm-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  z-index: 9998;
}

.kmm-mobile-panel {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, #10264f 0, #040815 55%, #040815 100%);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.19,0.82,0.25,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 70px 26px 32px;
  color: var(--kmm-white);
}

.kmm-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.kmm-mobile-brand {
  font-size: 1.15rem;
  font-weight: 700;
}

.kmm-mobile-close {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
}

.kmm-mobile-close span {
  position: relative;
  width: 16px;
  height: 2px;
  background: transparent;
}

.kmm-mobile-close span::before,
.kmm-mobile-close span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--kmm-white);
  border-radius: 999px;
}

.kmm-mobile-close span::before {
  transform: rotate(45deg);
}
.kmm-mobile-close span::after {
  transform: rotate(-45deg);
}

.kmm-mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kmm-mobile-menu a {
  color: var(--kmm-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.kmm-mobile-cta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(148,163,184,0.4);
}

.kmm-mobile-cta a {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: var(--kmm-gold);
  color: #111827;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

/* menu-open state */
body.kmm-menu-open {
  overflow: hidden;
}

body.kmm-menu-open .kmm-mobile-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.kmm-menu-open .kmm-mobile-panel {
  transform: translateX(0);
}

/* hide header brand while mobile menu open so it never overlaps */
@media (max-width: 900px) {
  body.kmm-menu-open .kmm-header-inner {
    visibility: hidden;
  }
}

/* ================= HERO ================= */

.kmm-main {
  min-height: 100vh;
}

.kmm-hero {
  background:
    radial-gradient(circle at top left, rgba(255,217,91,0.18) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(103,178,255,0.18) 0, transparent 55%),
    linear-gradient(135deg, #020617 0, #020617 18%, #081636 60%, #020617 100%);
  color: var(--kmm-white);
  padding: 82px 20px 72px;
}

.kmm-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 56px;
  align-items: center;
}

.kmm-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(199,227,255,0.9);
  margin-bottom: 14px;
}

.kmm-hero h1 {
  font-size: clamp(2.35rem, 3.4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 18px;
  text-shadow: 0 16px 40px rgba(0,0,0,0.9);
}

.kmm-hero h1 span {
  color: var(--kmm-gold);
}

.kmm-hero-lead {
  max-width: 32rem;
  font-size: 1rem;
  color: var(--kmm-text-soft);
  margin-bottom: 22px;
}

.kmm-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.kmm-pill {
  border-radius: 999px;
  padding: 6px 13px;
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e7eb;
}

.kmm-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.kmm-btn-primary {
  background: var(--kmm-gold);
  color: #111827;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.75);
  border: 2px solid rgba(0,0,0,0.55);
}

.kmm-btn-outline {
  background: transparent;
  color: var(--kmm-text-soft);
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid rgba(148,163,184,0.7);
}

.kmm-hero-note {
  font-size: 0.8rem;
  color: rgba(203,213,225,0.9);
}

.kmm-hero-right {
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,0.98));
  border-radius: 22px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 14px 60px rgba(0,0,0,0.9);
}

.kmm-hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(148,163,184,0.92);
  margin-bottom: 8px;
}

.kmm-hero-card {
  background: linear-gradient(145deg, #020617, #020617 35%, #0b193a 100%);
  border-radius: 18px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(31,41,55,0.85);
}

.kmm-hero-card-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.kmm-hero-card-tag {
  font-size: 0.75rem;
  color: rgba(203,213,225,0.96);
  margin-bottom: 12px;
}

.kmm-hero-metric-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.kmm-hero-metric {
  flex: 1;
}

.kmm-hero-metric strong {
  display: block;
  font-size: 1.1rem;
  color: var(--kmm-gold);
}

.kmm-hero-metric span {
  font-size: 0.72rem;
  color: rgba(148,163,184,0.9);
}

.kmm-hero-mini {
  font-size: 0.78rem;
  color: rgba(148,163,184,0.95);
}

/* ================= SECTIONS ================= */

.kmm-section {
  padding: 64px 20px;
  background: #f3f5fa;
}

.kmm-section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.kmm-section-header {
  margin-bottom: 26px;
}

.kmm-section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}

.kmm-section-title {
  font-size: 1.7rem;
  margin: 6px 0 0;
  color: #020617;
}

.kmm-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.kmm-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 14px 30px rgba(15,23,42,0.06);
  border: 1px solid rgba(226,232,240,0.9);
}

.kmm-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.kmm-card p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #4b5563;
}

.kmm-card small {
  font-size: 0.78rem;
  color: #6b7280;
}

.kmm-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 34px;
}

.kmm-cta-band {
  background: linear-gradient(135deg, #0a1e3f, #020617);
  color: var(--kmm-white);
  border-radius: 24px;
  padding: 26px 26px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

/* ================= FOOTER ================= */

.kmm-footer {
  background: #020617;
  color: rgba(226,232,240,0.95);
  padding: 54px 20px 26px;
}

.kmm-footer-inner {
  max-width: 1240px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr;
  gap: 30px;
}

.kmm-footer h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--kmm-white);
}

.kmm-footer p {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.kmm-footer a {
  color: rgba(226,232,240,0.96);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
}

.kmm-footer a:hover {
  color: var(--kmm-gold);
}

.kmm-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(55,65,81,0.9);
  padding-top: 14px;
  font-size: 0.8rem;
  color: rgba(148,163,184,0.9);
}

/* ================= CONTENT PAGES ================= */

/* hide automatic page/post titles */
h1.entry-title,
.entry-header {
  display: none;
}

.kmm-content {
  max-width: 900px;
  margin: 40px auto 70px;
  padding: 0 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.06);
  border: 1px solid rgba(226,232,240,0.9);
}

.kmm-content-inner {
  padding: 26px 26px 30px;
}

/* Gutenberg content defaults */
.kmm-content p {
  margin-bottom: 1em;
}

.kmm-content h2,
.kmm-content h3,
.kmm-content h4 {
  color: #020617;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .kmm-nav {
    display: none;
  }
  .kmm-header-cta {
    display: none;
  }
  .kmm-toggle {
    display: block;
  }
  .kmm-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .kmm-hero-right {
    order: -1;
  }
  .kmm-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kmm-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .kmm-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .kmm-hero {
    padding-top: 72px;
  }
}

@media (max-width: 600px) {
  .kmm-header-inner {
    padding-inline: 14px;
  }
  .kmm-hero {
    padding-inline: 16px;
  }
  .kmm-section {
    padding-inline: 16px;
  }
}
