/*
Theme Name: Zachery Starter
Theme URI: https://zacmimbs.com/
Author: Zachery Mimbs
Author URI: https://zacmimbs.com/
Description: A clean, content-free starter theme carrying the "Let's Build," Zachery! brand system — colors, type, buttons, nav, footer, and the full WordPress template hierarchy. Build pages on top of it; nothing here assumes any particular content.
Version: 1.0.0
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: zachery-starter
Tags: one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Structural */
  --zm-blue: #1877BD;
  --zm-blue-dark: #16619E;
  --zm-blue-wash: #E8F1FA;
  --zm-navy: #1B4261;
  --zm-paper: #F6F9FE;
  --zm-ink: #3E3E3E;
  --zm-ink-60: #6B6B6E;
  --zm-white: #FFFFFF;

  /* Accents — keep under 6% of any page */
  --zm-green: #00BF63;
  --zm-coral: #F2544B;
  --zm-yellow: #FFDE59;          /* marks + star ratings ONLY */

  --zm-hairline: #DCE4EE;
  --zm-stroke: #4079B5;

  /* Aliases used by exported page markup (see WordPress Export) */
  --font-sans: 'Inter', 'Figtree', 'Greycliff CF', 'Sofia Pro', -apple-system, system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --fs-h1: 56px;
  --fs-h2: 40px;
  --fs-h3: 28px;
  --fs-lede: 22px;
  --fs-body: 16px;
  --fs-body-sm: 15px;
  --fs-small: 14px;
  --fs-eyebrow: 12px;
  --ls-h1: -0.02em;
  --ls-h2: -0.015em;
  --ls-eyebrow: 0.14em;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 999px;
  --motion-fast: 150ms ease;
  --motion-med: 200ms ease;
  --motion-slow: 400ms ease;

  /* Type */
  --zm-font: 'Inter', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --zm-font-hand: 'Caveat', cursive;
  --zm-fs-body: 16px;
  --zm-fs-body-sm: 15px;
  --zm-lh-body: 1.6;
  --zm-lh-heading: 1.25;

  /* Radii */
  --zm-r-button: 10px;
  --zm-r-tile: 10px;
  --zm-r-card: 12px;
  --zm-r-panel: 20px;

  /* Surfaces — never mix the two in one section */
  --zm-shadow-card: 0 4px 18px rgba(27, 66, 97, 0.08);
  --zm-shadow-nav: 0 2px 10px rgba(27, 66, 97, 0.09);

  /* Rhythm */
  --zm-container: 1180px;
  --zm-gutter: 24px;
  --zm-section: 96px;
  --zm-section-mobile: 56px;

  /* Motion — feedback only */
  --zm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zm-t-button: 150ms;
  --zm-t-card: 200ms;
}

/* ==========================================================================
   2. Resets & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--zm-paper);
  color: var(--zm-ink);
  font-family: 'Inter', var(--font-sans);
  font-size: var(--zm-fs-body);
  font-weight: 400;
  line-height: var(--zm-lh-body);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { border: 0; }

a { color: var(--zm-blue); text-decoration: none; }
a:hover, a:focus { color: var(--zm-blue-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', var(--font-sans);
  font-weight: 600;
  line-height: var(--zm-lh-heading);
  letter-spacing: -0.01em;
  color: var(--zm-ink);
  margin: 0 0 0.6em;
}
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5, h6 { font-size: 16px; }

/* The core type move: line one in Ink, line two in Blue. */
h1 .zm-blue, h2 .zm-blue, h3 .zm-blue { color: var(--zm-blue); }

p, ul, ol, dl, blockquote, table, li, td, th, figcaption, label, input, select, textarea {
  font-family: 'Inter', var(--font-sans);
  font-weight: 400;
}
p, ul, ol, dl, blockquote, pre, table { margin: 0 0 1.2em; }
p { max-width: 68ch; }

blockquote {
  border-left: 3px solid var(--zm-blue);
  padding-left: 20px;
  margin-left: 0;
  color: var(--zm-ink);
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
pre {
  background: var(--zm-white);
  border: 1.5px solid var(--zm-hairline);
  border-radius: var(--zm-r-panel);
  padding: 18px 20px;
  overflow-x: auto;
}

hr { border: 0; border-top: 1px solid var(--zm-hairline); margin: 40px 0; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--zm-hairline); text-align: left; }
th { font-weight: 600; }

/* ==========================================================================
   3. Accessibility helpers
   ========================================================================== */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0;
  overflow: hidden; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  padding: 12px 22px; z-index: 100000;
  top: 10px; left: 10px;
  background: var(--zm-blue); color: #fff; border-radius: var(--zm-r-button);
}

:focus-visible { outline: 2px solid var(--zm-blue); outline-offset: 2px; }

/* ==========================================================================
   4. Layout
   ========================================================================== */
.zm-container {
  width: 100%;
  max-width: var(--zm-container);
  margin: 0 auto;
  padding-left: var(--zm-gutter);
  padding-right: var(--zm-gutter);
}
.zm-section { padding-top: var(--zm-section); padding-bottom: var(--zm-section); }
.zm-narrow { max-width: 760px; margin: 0 auto; }

/* Graph-paper texture — only ever on a blue fill, never paper/white/navy. */
.zm-grid-on-blue {
  background-color: var(--zm-blue);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  color: #fff;
}
.zm-grid-on-blue h1, .zm-grid-on-blue h2, .zm-grid-on-blue h3, .zm-grid-on-blue a { color: #fff; }

/* ==========================================================================
   5. Surfaces
   ========================================================================== */
.zm-shadow-card {
  background: var(--zm-white);
  border-radius: var(--zm-r-card);
  box-shadow: var(--zm-shadow-card);
  border: 0;
  transition: box-shadow var(--zm-t-card) ease;
}
.zm-shadow-card:hover { box-shadow: 0 8px 26px rgba(27, 66, 97, 0.12); }

.zm-stroke-panel {
  background: var(--zm-white);
  border: 1.5px solid var(--zm-hairline);
  border-radius: var(--zm-r-panel);
  box-shadow: none;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.zm-btn,
.wp-block-button__link,
button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', var(--font-sans);
  font-size: var(--zm-fs-body);
  font-weight: 400;
  line-height: 1;
  padding: 13px 30px;
  border-radius: var(--zm-r-button);
  border: none;
  background: var(--zm-blue);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--zm-t-button) ease, transform var(--zm-t-button) ease;
}
.zm-btn:hover,
.wp-block-button__link:hover,
button:hover, input[type="submit"]:hover {
  background: var(--zm-blue-dark);
  color: #fff;
  transform: translateY(-2px);
}

.zm-btn--ghost {
  background: transparent;
  color: var(--zm-blue);
  border: 1.5px solid var(--zm-blue);
  padding: 11.5px 30px;
}
.zm-btn--ghost:hover { background: var(--zm-blue); color: #fff; }

.zm-btn--light { background: #fff; color: var(--zm-blue); }
.zm-btn--light:hover { background: #fff; color: var(--zm-blue-dark); }

.zm-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--zm-blue-wash);
  color: var(--zm-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   7. Forms
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="password"], input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--zm-font);
  font-size: var(--zm-fs-body);
  color: var(--zm-ink);
  background: #fff;
  border: 1.5px solid var(--zm-hairline);
  border-radius: 6px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--zm-blue); }
label { display: block; font-size: 14px; margin-bottom: 8px; }
textarea { resize: vertical; line-height: 1.5; }

/* ==========================================================================
   8. Header & navigation
   ========================================================================== */
.zm-header {
  padding: 24px var(--zm-gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.zm-header-top { width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.zm-logo img { display: block; width: 200px; height: auto; }

.zm-header-rule { width: 100%; max-width: 300px; height: 1px; background: var(--zm-hairline); }

.zm-navbar {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.zm-nav {
  background: var(--zm-paper);
  border-radius: 999px;
  box-shadow: var(--zm-shadow-nav);
  padding: 0 10px;
}
.zm-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.zm-nav li { position: relative; }
.zm-nav a {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--zm-ink);
  border-radius: 999px;
  white-space: nowrap;
}
.zm-nav a:hover { background: var(--zm-blue-wash); color: var(--zm-ink); }

/* Dropdowns */
.zm-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  background: #fff;
  border-radius: var(--zm-r-tile);
  box-shadow: var(--zm-shadow-nav);
  padding: 8px;
  display: none;
  z-index: 40;
}
.zm-nav li:hover > .sub-menu,
.zm-nav li:focus-within > .sub-menu { display: flex; }
.zm-nav .sub-menu a { height: 38px; border-radius: 8px; }

.zm-menu-item-has-children > a::after {
  content: '\2304';
  margin-left: 6px;
  font-size: 15px;
  line-height: 0;
  position: relative;
  top: -3px;
}

.zm-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0 26px;
  background: var(--zm-blue);
  color: #fff;
  font-size: 15px;
  border-radius: var(--zm-r-button);
  box-shadow: var(--zm-shadow-nav);
  transition: background var(--zm-t-button) ease, transform var(--zm-t-button) ease;
}
.zm-nav-cta:hover { background: var(--zm-blue-dark); color: #fff; transform: translateY(-2px); }

/* Mobile menu (hidden on desktop) */
.zm-nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.zm-burger, .zm-mobile-menu { display: none; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.zm-footer { margin-top: var(--zm-section); padding: 64px var(--zm-gutter) 56px; }
.zm-footer__inner {
  max-width: var(--zm-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.zm-footer__brand img { width: 74px; height: auto; display: block; margin-bottom: 14px; }
.zm-footer__copy { font-size: var(--zm-fs-body-sm); color: #fff; }
.zm-footer__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; margin-bottom: 14px; opacity: 0.9;
}
.zm-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.zm-footer a { color: #fff; font-size: var(--zm-fs-body-sm); }
.zm-footer a:hover { color: #fff; text-decoration: underline; }
.zm-footer__btns { display: flex; flex-direction: column; gap: 12px; }
.zm-footer__btns a {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--zm-blue);
  padding: 11px 20px; border-radius: var(--zm-r-button); text-align: center;
}
.zm-footer__btns a:hover { text-decoration: none; transform: translateY(-2px); }

/* ==========================================================================
   10. Blog / archive scaffolding (unstyled beyond the brand basics)
   ========================================================================== */
.zm-entry { margin-bottom: 56px; }
.zm-entry__title { margin-bottom: 10px; }
.zm-entry__meta { font-size: 14px; color: var(--zm-ink-60); margin-bottom: 16px; }
.zm-entry__thumb { margin-bottom: 20px; }
.zm-entry__thumb img { border-radius: 5px; display: block; }

.zm-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0; }
.zm-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--zm-hairline); border-radius: 8px;
  color: var(--zm-ink);
}
.zm-pagination .current { background: var(--zm-blue); border-color: var(--zm-blue); color: #fff; }

.zm-sidebar { margin-top: 56px; }
.zm-widget { margin-bottom: 32px; }
.zm-widget__title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }

/* WordPress core classes the review guidelines expect */
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1180px; }
.alignfull { max-width: none; width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption { font-size: 14px; color: var(--zm-ink-60); }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.comment-list { list-style: none; padding: 0; }
.comment-list ul.children { list-style: none; padding-left: 28px; }

/* ==========================================================================
   11. Mobile — hamburger nav replaces the pill nav
   ========================================================================== */
@media (max-width: 820px) {
  :root { --zm-section: var(--zm-section-mobile); }

  .zm-navbar { display: none !important; }
  .zm-header { padding: 20px 20px 0; }
  .zm-logo img { width: 168px; }

  .zm-burger {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; font-size: 28px; color: var(--zm-ink); cursor: pointer;
  }
  .zm-burger-close { display: none; }
  .zm-nav-toggle:checked ~ .zm-header-top .zm-burger-open { display: none; }
  .zm-nav-toggle:checked ~ .zm-header-top .zm-burger-close { display: inline; }
  .zm-nav-toggle:checked ~ .zm-mobile-menu { display: flex; }

  .zm-mobile-menu {
    flex-direction: column; gap: 2px; width: 100%;
    background: #fff; border-radius: var(--zm-r-tile);
    box-shadow: var(--zm-shadow-nav); padding: 10px;
  }
  .zm-mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .zm-mobile-menu a {
    display: flex; align-items: center; min-height: 46px; padding: 0 14px;
    color: var(--zm-ink); font-size: 17px; border-radius: 8px;
  }
  .zm-mobile-menu a:active { background: var(--zm-blue-wash); }
  .zm-mobile-menu .sub-menu { padding-left: 12px; }
  .zm-mobile-cta {
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; margin-top: 8px;
    background: var(--zm-blue); color: #fff; font-size: 16px; border-radius: var(--zm-r-button);
  }
  .zm-mobile-cta:hover { color: #fff; }

  .zm-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }
}

/* ==========================================================================
   12. Full-bleed pasted pages
   --------------------------------------------------------------------------
   Pages exported from the design tool are one root <div data-screen-label>.
   Their blue bands are designed to run edge to edge, so the root breaks out
   of whatever container the page template or block editor puts around it.
   ========================================================================== */
body { overflow-x: hidden; }

[data-screen-label] {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Sections inside still hold the 1180px reading measure themselves. */
[data-screen-label] > section,
[data-screen-label] > div { max-width: 100%; }

/* ==========================================================================
   13. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
