/*
Theme Name: Built By Micah
Theme URI: https://built-by-micah.com
Author: Built By Micah
Author URI: https://built-by-micah.com
Description: Custom multi-page marketing theme for Built By Micah, a Wisconsin freelance web design and AI automation studio. Fully editable from Appearance > Customize, no page builder, no paid plugins.
Version: 4.0.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: built-by-micah
*/


/* =========================================================
   SOURCE: tokens.css
   ========================================================= */
:root {
  /* Brand palette */
  --navy: #1a2b4a;
  --navy-deep: #13203a;
  --gold: #c9a84c;
  --gold-soft: #d9bd6a;
  --cream: #faf7f2;
  --sand: #f0e9dd;
  --ink: #13203a;
  --slate: #5b6678;
  --line: #e3dccf;
  --white: #ffffff;

  /* Typography */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;
  --s-8: 10rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  /* Shadows (layered, color-tinted, low opacity) */
  --shadow-sm: 0 1px 2px rgba(19, 32, 58, 0.06), 0 2px 8px rgba(19, 32, 58, 0.05);
  --shadow-md: 0 6px 16px rgba(19, 32, 58, 0.08), 0 14px 40px rgba(19, 32, 58, 0.08);
  --shadow-lg: 0 12px 28px rgba(19, 32, 58, 0.10), 0 30px 70px rgba(19, 32, 58, 0.12);
  --shadow-gold: 0 10px 30px rgba(201, 168, 76, 0.28);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.cta-band h1, .cta-band h2, .cta-band h3 { color: inherit; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; }
p { color: var(--slate); }

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head { max-width: 60ch; margin-bottom: var(--s-5); }
.section-head h2 { margin: 1rem 0 0.9rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* =========================================================
   SOURCE: components.css
   ========================================================= */
/* ============ LAYOUT PRIMITIVES ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding-top: var(--s-6); padding-bottom: var(--s-6); }
.section--tight { padding-top: var(--s-4); padding-bottom: var(--s-4); }
.eyebrow { display: inline-flex; color: var(--gold); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.lede { font-size: 1.1rem; color: var(--slate); max-width: 40ch; }
h1, h2, h3 { font-family: var(--display); }

/* ============ PING / NOTIFICATION MOTIF ============ */
.ping {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.ping__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .ping__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gold);
    animation: ping-pulse 1.8s var(--ease) infinite;
  }
}
@keyframes ping-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 0.9rem 1.6rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--primary { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow-gold); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn-row.center { justify-content: center; }

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: var(--s-4);
}
.card--featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  position: relative;
}
.card__badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Tighten box padding/whitespace on mobile so text doesn't read as
   squished relative to the amount of room each box gives it. */
@media (max-width: 860px) {
  .section { padding-top: var(--s-5); padding-bottom: var(--s-5); }
  .section--tight { padding-top: var(--s-3); padding-bottom: var(--s-3); }
  .card { padding: var(--s-3); }
  .section-head { margin-bottom: var(--s-4); }
}

/* ============ SITE HEADER / FOOTER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-2) var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--navy); }
.site-nav { display: flex; gap: var(--s-3); align-items: center; }
.site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-header__inner { padding: 0.85rem 1.25rem; }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
    max-height: 100vh;
    overflow-y: auto;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav-list li { border-bottom: 1px solid var(--line); }
  .site-nav-list a { display: block; padding: 1rem 0; }
  .site-nav .btn { margin-top: 1.5rem; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bar, .site-nav { transition: none; }
}

.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: var(--s-6) 0 var(--s-4);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a { color: var(--cream); }
.site-footer__legal {
  max-width: var(--container);
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid rgba(250,247,242,0.14);
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.site-footer__legal a { color: rgba(250,247,242,0.7); }
.site-footer__legal a:hover { color: var(--cream); }
.site-footer__legal span { color: rgba(250,247,242,0.4); }

/* ============ CTA BAND (reused by Home / Automations / Websites / About) ============ */
.cta-band { background: var(--navy-deep); color: var(--cream); text-align: center; }
.cta-band .lede { color: var(--sand); margin: 0 auto; }
.cta-band .btn--ghost { color: var(--cream); border-color: rgba(250,247,242,0.45); }

/* ============ REVEAL ANIMATION (matches v3 pattern) ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   SOURCE: home.css
   ========================================================= */
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-5); align-items: center; }
.hero__heading { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; margin: 1rem 0; }
.hero__accent { color: var(--gold); }

.hero-mock { background: var(--navy-deep); border-radius: var(--r-lg); padding: var(--s-3); box-shadow: var(--shadow-lg); }
.hero-mock__label { display: flex; align-items: center; gap: var(--s-1); color: var(--cream); opacity: 0.7; font-size: 0.85rem; margin-bottom: 1rem; }
.bubble { padding: 0.75rem 1rem; border-radius: var(--r-sm); max-width: 82%; margin-bottom: 0.75rem; opacity: 0; transition: opacity 0.4s var(--ease); }
.bubble--visible { opacity: 1; }
.bubble--in { background: rgba(255,255,255,0.08); color: var(--cream); }
.bubble--out { background: var(--gold); color: var(--navy-deep); margin-left: auto; font-weight: 600; }

.proof { background: var(--navy); color: var(--cream); }
.proof p { color: inherit; }
.proof .lede { color: var(--sand); }
.proof__stat { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0; }
.proof__stat [data-count-to] { color: var(--gold); }

.auto-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: 2rem; }

.bundle-pitch { background: var(--sand); }
.bundle-pitch .proof__stat { color: var(--navy); }

.site-mention { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 860px) {
  .hero__grid, .auto-cards { grid-template-columns: 1fr; }
}

/* =========================================================
   SOURCE: automations.css
   ========================================================= */
.bundle-block { max-width: 680px; margin: 0 auto; text-align: center; }
.bundle-block__name { font-family: var(--display); font-size: 2.6rem; margin: 0.75rem 0 0; }
.bundle-block__price { font-family: var(--display); font-size: 1.6rem; color: var(--gold); }
.bundle-block__period { font-size: 1.1rem; color: var(--slate); font-family: var(--body); }

.svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: center; }
.svc__index { font-family: var(--display); font-size: 2.5rem; color: var(--gold); }
.svc__price { font-family: var(--display); font-size: 1.4rem; color: var(--gold); }
.svc--alt { background: var(--sand); }
.svc__mock { background: var(--navy-deep); color: var(--cream); }
.svc__mock p { color: inherit; }
.svc__mock-caption { opacity: 0.7; font-size: 0.85rem; color: var(--cream); }
.svc__mock-bubble { margin-top: 0.75rem; background: rgba(255,255,255,0.08); padding: 0.75rem; border-radius: var(--r-sm); color: var(--cream); }
.svc__stat { font-family: var(--display); font-size: 1.8rem; margin: 0.5rem 0; }

.alacarte { width: 100%; margin-top: 1.5rem; border-collapse: collapse; }
.alacarte td { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.alacarte td:last-child { text-align: right; }
.alacarte__total td { font-weight: 700; border-bottom: 0; }

.faq { background: var(--sand); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.1rem 2.2rem 1.1rem 0;
  position: relative;
  list-style: none;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding-bottom: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}

@media (max-width: 860px) {
  .svc__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SOURCE: websites.css
   ========================================================= */
/* =========================================================
   PRICING
   ========================================================= */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); align-items: stretch; }
.price {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-4); display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price--featured { background: var(--navy); border-color: var(--navy); color: var(--cream); position: relative; }
.price--featured .price__name, .price--featured .price__amount { color: var(--cream); }
.price--featured .price__period, .price--featured .price__desc { color: rgba(250,247,242,0.72); }
.price--featured .price__features li { color: rgba(250,247,242,0.9); border-color: rgba(250,247,242,0.14); }
.price__tag { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--gold); color: var(--navy-deep); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; }
.price__name { font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--navy); }
.price__amount { font-family: var(--display); font-size: 3rem; font-weight: 600; color: var(--navy); letter-spacing: -0.03em; margin-top: 0.6rem; line-height: 1; }
.price__period { font-size: 0.9rem; color: var(--slate); font-weight: 500; }
.price__desc { font-size: 0.94rem; margin: 0.9rem 0 1.4rem; }
.price__features { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.6rem; flex: 1; }
.price__features li { font-size: 0.92rem; color: var(--navy); padding: 0.7rem 0; border-top: 1px solid var(--line); display: flex; align-items: flex-start; gap: 0.6rem; }
.price__features li::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 0.28em; border-radius: 50%; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.7 5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.7 5z'/%3E%3C/svg%3E") center/contain no-repeat; background-color: var(--gold); }
.price--featured .price__features li::before { background-color: var(--gold); }

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4) var(--s-4); margin-top: var(--s-2); }
.step { position: relative; padding-top: 1.6rem; }
.step__num { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--navy-deep); background: var(--gold); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step__line { position: absolute; top: 1.6rem; left: 38px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step h3 { font-size: 1.2rem; margin: 1.1rem 0 0.5rem; }
.step p { font-size: 0.95rem; }

/* =========================================================
   WORK
   ========================================================= */
.work { background: var(--cream); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.work-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-card__img { aspect-ratio: 16/10; background: var(--sand); overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__body { padding: var(--s-3); }
.work-card__tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.work-card__body h3 { font-size: 1.25rem; margin: 0.4rem 0 0.3rem; }
.work-card__body p { font-size: 0.92rem; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quotes-section { background: var(--sand); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote__mark { font-family: var(--display); font-size: 3rem; line-height: 0.6; color: var(--gold); height: 1.4rem; }
.quote p { color: var(--navy); font-size: 1.02rem; flex: 1; }
.quote__who { margin-top: 1.3rem; display: flex; align-items: center; gap: 0.8rem; }
.quote__who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; }
.quote__who strong { color: var(--navy); font-size: 0.95rem; display: block; }
.quote__who small { color: var(--slate); font-size: 0.82rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .price-grid, .steps, .work-grid, .quotes { grid-template-columns: 1fr; }
}

/* =========================================================
   SOURCE: about.css
   ========================================================= */
.about-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-5); align-items: center; }
.about__photo { aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; color: var(--slate); text-align: center; padding: var(--s-4); overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__sign { margin-top: var(--s-3); }
.about__sign-name { font-family: var(--display); font-size: 1.4rem; }

@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; }
}

/* =========================================================
   SOURCE: contact.css
   ========================================================= */
.form { background: var(--cream); border-radius: var(--r-lg); padding: var(--s-4); box-shadow: var(--shadow-lg); }
.form .field { margin-bottom: 1.1rem; }
.form label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 0.45rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: inherit; color: var(--ink); background: var(--white); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.18); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; top: -9999px; }
.form button { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form__note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--slate); text-align: center; }
.form__alert { padding: 0.9rem 1rem; border-radius: var(--r-sm); font-size: 0.92rem; margin-bottom: 1.2rem; font-weight: 500; }
.form__alert--ok { background: rgba(41,185,107,0.14); color: #1d7a47; border: 1px solid rgba(41,185,107,0.3); }
.form__alert--err { background: rgba(201,76,76,0.12); color: #9e3636; border: 1px solid rgba(201,76,76,0.3); }

/* =========================================================
   WORDPRESS MENU COMPATIBILITY (v4 theme port addition)
   wp_nav_menu() outputs <ul><li><a>; the static preview used flat
   <a> links inside .site-nav. This keeps the same flex layout and
   active-page color for menu markup.
   ========================================================= */
.site-nav-list {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-list a[aria-current="page"],
.site-nav-list .current-menu-item > a {
  color: var(--gold);
}
