/*
Theme Name: Family Movers
Theme URI: https://familymoversjax.com
Author: Family Movers LLC
Description: A fast, block-based WordPress theme for Family Movers LLC — a family-run household goods moving company in Jacksonville, Florida. Every section is editable in the block editor.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: family-movers
Tags: block-patterns, full-site-editing, one-column, business, custom-colors
*/

/* ============================================================
   1. Base
   ============================================================ */

html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }

:root {
  --fm-shadow-sm: 0 1px 2px rgba(16, 27, 49, .06), 0 4px 12px rgba(16, 27, 49, .06);
  --fm-shadow-md: 0 2px 4px rgba(16, 27, 49, .06), 0 14px 34px rgba(16, 27, 49, .10);
  --fm-shadow-lg: 0 24px 60px rgba(16, 27, 49, .18);
  --fm-ease: cubic-bezier(.16, .84, .44, 1);
}

*:focus-visible {
  outline: 3px solid var(--wp--preset--color--tape);
  outline-offset: 3px;
}

/* ============================================================
   2. Signature: mono inventory tag
   ============================================================ */

.fm-eyebrow {
  font-family: var(--wp--preset--font-family--mono);
  font-size: .74rem !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0 0 1.1rem;
}

.fm-tag {
  display: inline-block;
  font-family: var(--wp--preset--font-family--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem .85rem;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--tape);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.fm-tag--light {
  background: var(--wp--preset--color--tape);
  color: var(--wp--preset--color--ink);
}

/* Amber tape strip — used under the header and above the footer */
.fm-tape-strip {
  height: 5px;
  background: repeating-linear-gradient(
    -45deg,
    var(--wp--preset--color--tape) 0 12px,
    #e2951a 12px 24px
  );
}

/* ============================================================
   3. Layout helpers
   ============================================================ */

/*
 * Sections run edge to edge no matter how deeply the block editor nests
 * them, and carry their own side padding. WordPress's own constrained-layout
 * rules use :where(), so these plain class selectors win without !important.
 */
.fm-hero,
.fm-section,
.fm-band,
.fm-footer,
.fm-included {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

.fm-header > .wp-block-group {
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

/* Post content itself should never be the thing that limits width. */
main > .wp-block-post-content,
.wp-block-post-content {
  max-width: none;
}

/* Anything the client drops in outside a section still gets safe gutters. */
.wp-block-post-content > *:not(.fm-hero):not(.fm-section):not(.fm-band):not(.fm-included) {
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

.fm-section { padding-block: clamp(4rem, 8vw, 7rem); }
.fm-section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.fm-measure p { max-width: 62ch; }

.fm-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important;
  line-height: 1.6;
}

/* ============================================================
   4. Header
   ============================================================ */

.fm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: box-shadow .25s var(--fm-ease);
}

.fm-scrolled .fm-header { box-shadow: 0 1px 0 #E1E6EE, 0 8px 24px rgba(16, 27, 49, .07); }

.fm-logo {
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  text-decoration: none !important;
  color: var(--wp--preset--color--ink) !important;
  font-size: 1.35rem;
}

.fm-logo span {
  display: block;
  font-family: var(--wp--preset--font-family--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--steel) !important;
  margin-top: .3rem;
}

.fm-header .wp-block-navigation a {
  text-decoration: none;
  font-size: .97rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
}

.fm-header .wp-block-navigation a:hover { color: var(--wp--preset--color--blanket); }

.fm-phone {
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none !important;
  color: var(--wp--preset--color--ink) !important;
  white-space: nowrap;
}

/* ============================================================
   5. Hero
   ============================================================ */

.fm-hero {
  position: relative;
  background: var(--wp--preset--color--ink);
  color: #fff;
  overflow: hidden;
}

.fm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(246, 166, 35, .16), transparent 62%),
    radial-gradient(720px 520px at 8% 96%, rgba(30, 48, 84, .95), transparent 60%);
  pointer-events: none;
}

.fm-hero > * { position: relative; }
.fm-hero h1 { color: #fff; }
.fm-hero p { color: #C4CFE0; }
.fm-hero .fm-eyebrow { color: var(--wp--preset--color--tape); }

/* Faint grid — like a floor plan under the hero */
.fm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 78%);
  pointer-events: none;
}

/* Signature: the manifest card */
.fm-manifest {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--fm-shadow-lg);
  padding: 1.75rem 1.6rem 1.4rem;
  color: var(--wp--preset--color--ink);
  position: relative;
}

.fm-manifest::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.6deg);
  width: 118px;
  height: 26px;
  background: rgba(246, 166, 35, .82);
  box-shadow: 0 2px 6px rgba(16, 27, 49, .18);
}

.fm-manifest h2,
.fm-manifest h3 {
  font-family: var(--wp--preset--font-family--mono);
  font-size: .72rem !important;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--steel);
  margin: 0 0 1.1rem;
}

.fm-manifest ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: fmitem;
}

.fm-manifest li {
  counter-increment: fmitem;
  display: flex;
  gap: .9rem;
  align-items: baseline;
  padding: .72rem 0;
  border-top: 1px solid #E7EBF1;
  font-size: 1rem;
  line-height: 1.45;
}

.fm-manifest li:first-child { border-top: 0; }

.fm-manifest li::before {
  content: counter(fmitem, decimal-leading-zero);
  font-family: var(--wp--preset--font-family--mono);
  font-size: .74rem;
  font-weight: 600;
  color: var(--wp--preset--color--tape);
  letter-spacing: .06em;
  flex: 0 0 auto;
}

/* Hero form card */
.fm-hero-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--fm-shadow-lg);
  padding: 1.9rem 1.7rem 1.6rem;
  color: var(--wp--preset--color--ink);
  position: relative;
}

.fm-hero-card::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.6deg);
  width: 118px;
  height: 26px;
  background: rgba(246, 166, 35, .82);
  box-shadow: 0 2px 6px rgba(16, 27, 49, .18);
}

.fm-hero-card .fm-form-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.15;
  margin: 0 0 .3rem;
}

.fm-hero-card .fm-form-sub {
  font-family: var(--wp--preset--font-family--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--steel);
  margin: 0 0 1.3rem;
}

.fm-hero-card .fm-form { gap: .85rem; }
.fm-hero-card .fm-form .fm-row { gap: .85rem; }
.fm-hero-card .fm-form input { padding: .78rem .9rem; }
.fm-hero-card .fm-form button { width: 100%; }
.fm-hero-card .fm-form-note { font-size: .82rem; text-align: center; }

/* "Included as standard" band under the hero */
.fm-included {
  background: var(--wp--preset--color--ink);
  color: #C4CFE0;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.fm-included .fm-included-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: fmi;
}

.fm-included .fm-included-list li {
  counter-increment: fmi;
  font-size: .92rem;
  line-height: 1.4;
  display: flex;
  gap: .55rem;
  align-items: baseline;
}

.fm-included .fm-included-list li::before {
  content: counter(fmi, decimal-leading-zero);
  font-family: var(--wp--preset--font-family--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--wp--preset--color--tape);
}

/* ============================================================
   6. Cards
   ============================================================ */

.fm-card {
  background: #fff;
  border: 1px solid #E2E7EE;
  border-radius: 5px;
  padding: 1.9rem 1.7rem;
  height: 100%;
  position: relative;
  transition: transform .3s var(--fm-ease), box-shadow .3s var(--fm-ease), border-color .3s var(--fm-ease);
}

.fm-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent #E2E7EE transparent transparent;
  transition: border-color .3s var(--fm-ease);
}

.fm-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--fm-shadow-md);
  border-color: #CFD8E4;
}

.fm-card:hover::after { border-right-color: var(--wp--preset--color--tape); }

.fm-card h3 { margin: .8rem 0 .55rem; }
.fm-card p { font-size: 1rem; color: #46536B; margin: 0; }

.fm-card .fm-eyebrow {
  color: var(--wp--preset--color--steel);
  margin: 0;
}

.fm-card-plain {
  background: #fff;
  border: 1px solid #E2E7EE;
  border-radius: 5px;
  padding: 1.6rem;
  height: 100%;
}

/* ============================================================
   7. Steps
   ============================================================ */

.fm-step { position: relative; padding-top: 1.9rem; }

.fm-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #DCE3EC;
}

.fm-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--wp--preset--color--tape);
}

.fm-step .fm-eyebrow { color: var(--wp--preset--color--steel); margin-bottom: .6rem; }
.fm-step h3 { margin: 0 0 .5rem; font-size: 1.2rem !important; }
.fm-step p { font-size: 1rem; color: #46536B; margin: 0; }

/* ============================================================
   8. Dark band + stats
   ============================================================ */

.fm-band {
  background: var(--wp--preset--color--blanket);
  color: #fff;
}

.fm-band h2, .fm-band h3 { color: #fff; }
.fm-band p { color: #C4CFE0; }
.fm-band .fm-eyebrow { color: var(--wp--preset--color--tape); }

.fm-stat { border-left: 2px solid rgba(246, 166, 35, .55); padding-left: 1.1rem; }

.fm-stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
}

.fm-stat span {
  display: block;
  margin-top: .55rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #A8B7CE;
}

/* ============================================================
   9. Quotes
   ============================================================ */

.fm-quote {
  background: #fff;
  border: 1px solid #E2E7EE;
  border-radius: 5px;
  padding: 1.8rem 1.6rem;
  height: 100%;
}

.fm-quote p {
  font-size: 1.03rem;
  line-height: 1.6;
  margin: 0 0 1.1rem;
}

.fm-quote cite {
  font-family: var(--wp--preset--font-family--mono);
  font-style: normal;
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--wp--preset--color--steel);
}

.fm-stars { color: var(--wp--preset--color--tape); letter-spacing: .18em; font-size: .95rem; }

/* ============================================================
   10. Areas list
   ============================================================ */

.fm-areas {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-areas li {
  font-family: var(--wp--preset--font-family--mono);
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .55rem .9rem;
  background: #fff;
  border: 1px solid #DDE3EB;
  border-radius: 3px;
  color: #33405A;
}

.fm-band .fm-areas li {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #DCE4F0;
}

/* ============================================================
   11. FAQ (core/details)
   ============================================================ */

.fm-faq .wp-block-details {
  background: #fff;
  border: 1px solid #E2E7EE;
  border-radius: 5px;
  padding: 1.15rem 1.4rem;
  margin-bottom: .8rem;
}

.fm-faq .wp-block-details summary {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.012em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.fm-faq .wp-block-details summary::-webkit-details-marker { display: none; }

.fm-faq .wp-block-details summary::after {
  content: "+";
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--wp--preset--color--tape);
  transition: transform .25s var(--fm-ease);
  flex: 0 0 auto;
}

.fm-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }

.fm-faq .wp-block-details p {
  font-size: 1rem;
  color: #46536B;
  margin: .9rem 0 .2rem;
}

/* ============================================================
   12. Quote form
   ============================================================ */

.fm-form { display: grid; gap: 1rem; }
.fm-form .fm-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }

.fm-form label {
  display: block;
  font-family: var(--wp--preset--font-family--mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--wp--preset--color--steel);
  margin-bottom: .45rem;
}

.fm-form input,
.fm-form select,
.fm-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .85rem .95rem;
  border: 1px solid #D3DAE4;
  border-radius: 4px;
  background: #fff;
  color: var(--wp--preset--color--ink);
  transition: border-color .2s var(--fm-ease), box-shadow .2s var(--fm-ease);
}

.fm-form textarea { min-height: 120px; resize: vertical; }

.fm-form input:focus,
.fm-form select:focus,
.fm-form textarea:focus {
  border-color: var(--wp--preset--color--tape);
  box-shadow: 0 0 0 3px rgba(246, 166, 35, .18);
  outline: none;
}

.fm-form button {
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: 3px;
  background: var(--wp--preset--color--tape);
  color: var(--wp--preset--color--ink);
  cursor: pointer;
  transition: background .2s var(--fm-ease), transform .2s var(--fm-ease);
}

.fm-form button:hover { background: #ffb949; transform: translateY(-1px); }
.fm-form .fm-hp { position: absolute; left: -9999px; opacity: 0; }

.fm-form-note {
  font-size: .88rem;
  color: var(--wp--preset--color--steel);
  margin: 0;
}

.fm-notice {
  padding: 1rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.fm-notice-ok { background: #E8F5EC; border: 1px solid #B9DEC5; color: #1D5B33; }
.fm-notice-err { background: #FCEAE7; border: 1px solid #F0BFB6; color: #8C2C1A; }

@media (max-width: 640px) {
  .fm-form .fm-row { grid-template-columns: 1fr; }
}

/* ============================================================
   13. Footer
   ============================================================ */

.fm-footer { background: var(--wp--preset--color--ink); color: #B7C4D8; }
.fm-footer h3, .fm-footer h4, .fm-footer strong { color: #fff; }
.fm-footer p, .fm-footer li { font-size: .97rem; }

.fm-footer a {
  color: #C9D5E6;
  text-decoration: none;
}

.fm-footer a:hover { color: var(--wp--preset--color--tape); }

.fm-footer .wp-block-navigation a { font-size: .97rem; }

.fm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--wp--preset--font-family--mono);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8496AF;
}

/* ============================================================
   14. Motion
   ============================================================ */

.fm-js .fm-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .6s var(--fm-ease), transform .6s var(--fm-ease);
  will-change: opacity, transform;
}

.fm-js .fm-reveal.fm-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.fm-js .fm-stagger.fm-in > * { animation: fm-rise .55s var(--fm-ease) both; }
.fm-js .fm-stagger.fm-in > *:nth-child(1) { animation-delay: .04s; }
.fm-js .fm-stagger.fm-in > *:nth-child(2) { animation-delay: .12s; }
.fm-js .fm-stagger.fm-in > *:nth-child(3) { animation-delay: .2s; }
.fm-js .fm-stagger.fm-in > *:nth-child(4) { animation-delay: .28s; }
.fm-js .fm-stagger.fm-in > *:nth-child(5) { animation-delay: .36s; }
.fm-js .fm-stagger.fm-in > *:nth-child(6) { animation-delay: .44s; }
.fm-js .fm-stagger.fm-in > *:nth-child(7) { animation-delay: .52s; }
.fm-js .fm-stagger.fm-in > *:nth-child(8) { animation-delay: .6s; }

@keyframes fm-rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}

/* Hero loads immediately, no scroll trigger */
.fm-js .fm-hero-in > * { animation: fm-rise .7s var(--fm-ease) both; }
.fm-js .fm-hero-in > *:nth-child(1) { animation-delay: .05s; }
.fm-js .fm-hero-in > *:nth-child(2) { animation-delay: .14s; }
.fm-js .fm-hero-in > *:nth-child(3) { animation-delay: .23s; }
.fm-js .fm-hero-in > *:nth-child(4) { animation-delay: .32s; }
.fm-js .fm-hero-in > *:nth-child(5) { animation-delay: .41s; }

.fm-js .fm-manifest { animation: fm-card-in .8s var(--fm-ease) .3s both; }
.fm-js .fm-manifest li { animation: fm-rise .5s var(--fm-ease) both; }
.fm-js .fm-manifest li:nth-child(1) { animation-delay: .55s; }
.fm-js .fm-manifest li:nth-child(2) { animation-delay: .65s; }
.fm-js .fm-manifest li:nth-child(3) { animation-delay: .75s; }
.fm-js .fm-manifest li:nth-child(4) { animation-delay: .85s; }
.fm-js .fm-manifest li:nth-child(5) { animation-delay: .95s; }
.fm-js .fm-manifest li:nth-child(6) { animation-delay: 1.05s; }

@keyframes fm-card-in {
  from { opacity: 0; transform: translate3d(0, 26px, 0) rotate(.6deg); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-js .fm-reveal,
  .fm-js .fm-stagger.fm-in > *,
  .fm-js .fm-hero-in > *,
  .fm-js .fm-manifest,
  .fm-js .fm-manifest li {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .fm-card:hover { transform: none; }
}

/* Editor: never hide content behind animations */
.editor-styles-wrapper .fm-reveal,
.editor-styles-wrapper .fm-manifest {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ============================================================
   15. Logo lockup + footer list
   ============================================================ */

.fm-logo-lockup { line-height: 1; }

.fm-logo-title,
.fm-logo-title a {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--wp--preset--color--ink) !important;
  text-decoration: none !important;
  margin: 0;
}

.fm-logo-sub {
  font-family: var(--wp--preset--font-family--mono);
  font-size: .62rem !important;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--steel);
  margin: 0;
  line-height: 1.2;
}

.fm-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-footer-list li {
  padding: .3rem 0;
  color: #B7C4D8;
}

.fm-footer .fm-eyebrow { color: var(--wp--preset--color--tape); }

/* The overlay menu on phones */
.fm-header .wp-block-navigation__responsive-container.is-menu-open a {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ============================================================
   16. Small screens
   ============================================================ */

@media (max-width: 781px) {
  .fm-hero { text-align: left; }
  .fm-manifest::before { width: 92px; }
}

@media (max-width: 480px) {
  .fm-header .fm-phone { font-size: .9rem; }
}
