/*
Theme Name: Miss Pepper
Theme URI: https://misspepper.ai
Author: Miss Pepper AI
Author URI: https://misspepper.ai
Description: Custom block theme for Miss Pepper AI — Tampa website design agency. Warm, precise, inevitable. Built on the brand's Heat Map gradient and Pepper accent system.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
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: miss-pepper
Tags: full-site-editing, block-theme, blog, business, portfolio
*/

/* All design tokens are defined in theme.json. This file holds only declarations
   that theme.json cannot express: gradient buttons, motion easings, focus rings,
   and a few component-level rules used across the homepage and service pages. */

:root {
  --ease-brand: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-micro: 200ms;
  --duration-macro: 400ms;
}

/* === Layout overrides — apply SITE-WIDE (not just homepage) === */
.wp-block-post-content > *,
.wp-block-post-content.is-layout-constrained > *,
main.wp-block-group > *,
main.wp-block-group.is-layout-flow > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.wp-block-post-content,
main.wp-block-group {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.wp-block-post-content > .alignfull,
main.wp-block-group > .alignfull,
.wp-block-post-content .wp-block-cover.alignfull,
main.wp-block-group .wp-block-cover.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* === Sticky header with backdrop blur === */
.wp-site-blocks > header,
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

/* === Footer link colors on Ink surface === */
footer.wp-block-template-part a:not(.wp-element-button),
footer.wp-block-group a:not(.wp-element-button) {
  color: var(--wp--preset--color--paper) !important;
  text-decoration: none;
}
footer.wp-block-template-part a:not(.wp-element-button):hover,
footer.wp-block-group a:not(.wp-element-button):hover {
  color: var(--wp--preset--color--pepper-soft) !important;
}
footer.wp-block-template-part .wp-block-separator {
  border-color: #1a1f30 !important;
  opacity: 1;
}

/* === Body link styling — no default underline, only on hover === */
a:where(:not(.wp-element-button)) { text-decoration: none; }
a:where(:not(.wp-element-button)):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* === Logo strip mobile responsive === */
@media (max-width: 860px) {
  body.is-front-page div[style*="grid-template-columns:repeat(6"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip link — accessibility */
.skip-link.screen-reader-text {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link.screen-reader-text:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  padding: 12px 16px; background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper); border-radius: 10px;
  z-index: 10000;
}

/* Tide signature surface — replaces the retired Heat Map gradient.
   Used on hero, signature CTAs, brand mark. Solid plane, no multi-stop gradient. */
.has-tide-signature-background {
  background: var(--wp--preset--color--tide) !important;
}

/* Buttons — overrides theme.json defaults to add brand variants + transitions */
.wp-block-button .wp-block-button__link {
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 10px;
  padding: 14px 24px;
  transition: transform var(--duration-micro) var(--ease-brand),
              background-color var(--duration-micro) var(--ease-brand),
              filter var(--duration-micro) var(--ease-brand);
}
.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-1px);
}
.wp-block-button.is-style-pepper .wp-block-button__link {
  background: var(--wp--preset--color--pepper);
  color: var(--wp--preset--color--paper);
}
.wp-block-button.is-style-pepper .wp-block-button__link:hover {
  background: var(--wp--preset--color--pepper-deep);
}
.wp-block-button.is-style-tide .wp-block-button__link {
  background: var(--wp--preset--color--tide);
  color: var(--wp--preset--color--paper);
  padding: 18px 32px;
}
.wp-block-button.is-style-tide .wp-block-button__link:hover {
  background: var(--wp--preset--color--tide-deep);
}
.wp-block-button.is-style-secondary .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--ink);
  border: 1px solid var(--wp--preset--color--ink);
}
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--pepper);
  padding: 14px 0;
}

/* Focus ring — Pepper with halo */
:where(a, button, input, select, textarea, .wp-block-button__link):focus-visible {
  outline: 2px solid var(--wp--preset--color--pepper);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(187, 107, 27, 0.15);
}

/* Card hover (for is-style-card group blocks) */
.wp-block-group.is-style-card {
  background: var(--wp--preset--color--cream);
  border: 1px solid var(--wp--preset--color--sand);
  border-radius: 16px;
  padding: 32px;
  transition: transform var(--duration-micro) var(--ease-brand),
              box-shadow var(--duration-micro) var(--ease-brand);
}
.wp-block-group.is-style-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 14, 26, 0.06);
}

/* Eyebrow text style */
.has-eyebrow-style {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--pepper);
}

/* Headings — negative tracking signature */
h1, h2, h3, h4, .has-display-xl, .has-display-lg, .has-display-md {
  letter-spacing: -0.025em;
}
.has-display-xl { letter-spacing: -0.04em; }
.has-display-lg { letter-spacing: -0.035em; }
.has-display-md { letter-spacing: -0.03em; }
.has-h1 { letter-spacing: -0.025em; }
.has-h2 { letter-spacing: -0.02em; }

/* Body link styling — Pepper, underline on hover */
.entry-content a:not(.wp-block-button__link),
.wp-block-post-content a:not(.wp-block-button__link) {
  color: var(--wp--preset--color--pepper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-micro) var(--ease-brand);
}
.entry-content a:not(.wp-block-button__link):hover,
.wp-block-post-content a:not(.wp-block-button__link):hover {
  border-bottom-color: var(--wp--preset--color--pepper);
}

/* Image radius — site-wide */
.wp-block-image img {
  border-radius: 16px;
}
.wp-block-image.size-hero img,
.wp-block-cover {
  border-radius: 24px;
}
.wp-block-image.is-style-square img {
  border-radius: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
