/*
Theme Name: Omaha Estate Cleanout
Theme URI: https://example.com
Author: Omaha Estate Cleanout
Author URI: https://example.com
Description: A calm, trustworthy block theme for a local estate cleanout and junk removal business, in the "Kitchen Table Comfort" style — warm cream, sage, charcoal and terracotta, Fraunces and Karla type.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omaha-estate-cleanout
*/

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Reset default top margin on direct children of the site blocks so full-bleed
   sections sit flush against each other and the footer never gets a gap. */
.wp-site-blocks > * {
  margin-block-start: 0;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ---------- Paper-grain / quilted texture background ---------- */
.paper-bg {
  position: relative;
  background-color: var(--wp--preset--color--cream);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% 8%, rgba(124,139,111,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 88% 18%, rgba(201,123,74,0.06), transparent 55%),
    radial-gradient(ellipse 1000px 700px at 50% 100%, rgba(124,139,111,0.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(58,54,46,0.015) 0px, rgba(58,54,46,0.015) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, var(--wp--preset--color--cream) 0%, var(--wp--preset--color--cream-deep) 100%);
}

.deep-bg {
  background-color: var(--wp--preset--color--cream-deep);
}

/* soft vignette frame for a keepsake-label feel */
.vignette-frame {
  position: relative;
}

.vignette-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(124, 139, 111, 0.22);
  border-radius: 28px;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 782px) {
  .vignette-frame::before {
    inset: 10px;
    border-radius: 18px;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Near-opaque rather than the original 0.92 alpha — text sitting on this
     header needs a reliably solid cream backdrop for contrast, regardless
     of what scrolls behind it. */
  background: rgba(247, 241, 230, 0.98);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(124, 139, 111, 0.28);
}

.brand-mark {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--wp--preset--color--charcoal);
  text-decoration: none;
}

.brand-mark em {
  font-style: italic;
  color: var(--wp--preset--color--sage-deep);
  font-weight: 500;
}

.primary-nav a {
  position: relative;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--wp--preset--color--charcoal);
  text-decoration: none;
  padding: 0.35rem 0.05rem;
  transition: color 0.25s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--wp--preset--color--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--wp--preset--color--sage-deep);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.phone-link {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--wp--preset--color--charcoal);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px dashed rgba(58, 54, 46, 0.35);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.phone-link:hover,
.phone-link:focus-visible {
  color: var(--wp--preset--color--sage-deep);
  border-color: var(--wp--preset--color--sage-deep);
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
  box-shadow: 0 2px 8px rgba(124, 139, 111, 0.28);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s ease,
              background-color 0.28s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(124, 139, 111, 0.4);
}

.btn-hero .wp-block-button__link {
  font-size: 1.15rem;
  padding: 1.05rem 2.6rem !important;
  box-shadow: 0 4px 18px rgba(124, 139, 111, 0.35);
}

.btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--charcoal) !important;
  border: 1.5px solid var(--wp--preset--color--sage);
  box-shadow: none;
}

.btn-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--sage-pale) !important;
  border-color: var(--wp--preset--color--sage-deep);
}

/* ---------- Hero ---------- */
.hero-eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--sage-deep);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--wp--preset--color--sage);
}

.hero-headline .accent-word {
  font-style: italic;
  color: var(--wp--preset--color--sage-deep);
}

.hero-subnote {
  font-size: 0.88rem;
  color: var(--wp--preset--color--sage-deep);
  font-weight: 500;
}

/* ---------- Dust motes (ambient motion) ---------- */
.motes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mote {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(124, 139, 111, 0.55), rgba(124, 139, 111, 0));
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite;
}

.mote.terra {
  background: radial-gradient(circle at 35% 35%, rgba(201, 123, 74, 0.45), rgba(201, 123, 74, 0));
}

.mote:nth-child(1)  { width: 10px; height: 10px; left: 12%; top: 68%; animation-duration: 26s; animation-delay: 0s; }
.mote:nth-child(2)  { width: 6px;  height: 6px;  left: 22%; top: 30%; animation-duration: 20s; animation-delay: -3s; }
.mote:nth-child(3)  { width: 14px; height: 14px; left: 8%;  top: 20%; animation-duration: 30s; animation-delay: -8s; }
.mote:nth-child(4)  { width: 8px;  height: 8px;  left: 85%; top: 22%; animation-duration: 24s; animation-delay: -5s; }
.mote:nth-child(5)  { width: 12px; height: 12px; left: 90%; top: 62%; animation-duration: 28s; animation-delay: -12s; }
.mote:nth-child(6)  { width: 7px;  height: 7px;  left: 78%; top: 80%; animation-duration: 19s; animation-delay: -2s; }
.mote:nth-child(7)  { width: 5px;  height: 5px;  left: 48%; top: 12%; animation-duration: 23s; animation-delay: -9s; }
.mote:nth-child(8)  { width: 9px;  height: 9px;  left: 60%; top: 85%; animation-duration: 25s; animation-delay: -14s; }
.mote:nth-child(9)  { width: 6px;  height: 6px;  left: 34%; top: 82%; animation-duration: 21s; animation-delay: -6s; }
.mote:nth-child(10) { width: 11px; height: 11px; left: 68%; top: 10%; animation-duration: 27s; animation-delay: -10s; }

@keyframes drift {
  0%   { transform: translate(0, 0); opacity: 0.35; }
  25%  { transform: translate(10px, -16px); opacity: 0.6; }
  50%  { transform: translate(-6px, -30px); opacity: 0.4; }
  75%  { transform: translate(-14px, -10px); opacity: 0.55; }
  100% { transform: translate(0, 0); opacity: 0.35; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  border-top: 1px solid rgba(124, 139, 111, 0.22);
  border-bottom: 1px solid rgba(124, 139, 111, 0.22);
}

.trust-item {
  text-align: center;
}

.trust-item .wp-block-heading {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

/* ---------- Cards ---------- */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

.service-card {
  background: var(--wp--preset--color--cream);
  border: 1px solid rgba(124, 139, 111, 0.25);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(58, 54, 46, 0.06);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(58, 54, 46, 0.12);
  border-color: var(--wp--preset--color--sage);
}

.service-card .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--wp--preset--color--sage-pale);
  color: var(--wp--preset--color--sage-deep);
  font-family: var(--wp--preset--font-family--display);
  font-style: italic;
  font-size: 1.25rem;
}

/* ---------- Step numbers (How It Works) ---------- */
.step-card {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--wp--preset--color--charcoal);
  color: var(--wp--preset--color--cream);
  font-family: var(--wp--preset--font-family--display);
  font-style: italic;
  font-size: 1.35rem;
  margin: 0 auto 1rem;
}

.step-connector {
  position: relative;
}

@media (min-width: 783px) {
  .step-connector::after {
    content: "";
    position: absolute;
    top: 1.6rem;
    left: calc(50% + 2.2rem);
    width: calc(100% - 4.4rem);
    height: 1px;
    background: repeating-linear-gradient(to right, var(--wp--preset--color--sage) 0, var(--wp--preset--color--sage) 6px, transparent 6px, transparent 12px);
  }

  .step-connector:last-child::after {
    display: none;
  }
}

/* ---------- Testimonial cards ---------- */
.testimonial-card {
  background: var(--wp--preset--color--cream-deep);
  border-radius: 20px;
  border: 1px solid rgba(124, 139, 111, 0.2);
  position: relative;
}

.testimonial-card .quote-mark {
  font-family: var(--wp--preset--font-family--display);
  font-style: italic;
  font-size: 3rem;
  line-height: 1;
  color: var(--wp--preset--color--sage);
  display: block;
  margin-bottom: 0.5rem;
}

.placeholder-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--terracotta);
  border: 1px dashed var(--wp--preset--color--terracotta);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid rgba(124, 139, 111, 0.25);
}

.faq-item .wp-block-heading {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* ---------- Contact / form ---------- */
.contact-panel {
  background: var(--wp--preset--color--charcoal);
  border-radius: 24px;
  color: var(--wp--preset--color--cream);
}

.contact-panel .wp-block-heading,
.contact-panel p {
  color: var(--wp--preset--color--cream);
}

/* The site-wide link color (sage-deep) is too dark against this panel's
   charcoal background — override to cream/underline, with a lighter accent
   on hover so it stays legible instead of inheriting the global link color. */
.contact-panel a {
  color: var(--wp--preset--color--cream);
  text-decoration: underline;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  color: var(--wp--preset--color--terracotta-pale);
}

.contact-panel .wp-block-separator {
  border-color: rgba(247, 241, 230, 0.25);
}

.form-field-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--wp--preset--color--charcoal);
  display: block;
  margin-bottom: 0.3rem;
}

/* ---------- Page title band (page.html) ---------- */
.page-title-band {
  text-align: center;
}

.page-title-band h1 {
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wp--preset--color--charcoal);
  color: var(--wp--preset--color--cream);
}

.site-footer a {
  color: var(--wp--preset--color--cream);
}

.site-footer a:hover {
  color: var(--wp--preset--color--terracotta);
}

.site-footer .wp-block-heading {
  color: var(--wp--preset--color--cream);
  font-size: 1.1rem;
}

.site-footer .wp-block-separator {
  border-color: rgba(247, 241, 230, 0.2);
}

.footer-bottom {
  font-size: 0.85rem;
  color: rgba(247, 241, 230, 0.65);
}

/* ==================== Animation & Motion ==================== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease-out forwards;
}

.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.35s; }
.fade-up.delay-3 { animation-delay: 0.55s; }

.fade-in {
  opacity: 0;
  animation: fadeIn 0.9s ease-out forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.18s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.31s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.44s; }

.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
}

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

  .animate-on-scroll,
  .fade-up,
  .fade-in,
  .stagger-children > *,
  .mote {
    opacity: 1 !important;
    transform: none !important;
  }

  .service-card:hover,
  .wp-block-button__link:hover,
  .hover-lift:hover {
    transform: none !important;
  }
}

/* === Editor: keep animated content visible while editing === */
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .fade-in,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

@media (max-width: 782px) {
  .step-connector::after {
    display: none;
  }
}

/* ---------- Contact Form 7 (Free Estimate page) ---------- */
.contact-panel .wpcf7-form p {
  margin-bottom: var(--wp--preset--spacing--small, 1rem);
}

.contact-panel .wpcf7-form label {
  display: block;
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--wp--preset--color--cream);
  margin-bottom: 0.3rem;
}

.contact-panel .wpcf7-form input[type="text"],
.contact-panel .wpcf7-form input[type="tel"],
.contact-panel .wpcf7-form input[type="email"],
.contact-panel .wpcf7-form select,
.contact-panel .wpcf7-form textarea {
  width: 100%;
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  color: var(--wp--preset--color--charcoal);
  background-color: var(--wp--preset--color--cream);
  border: 1px solid var(--wp--preset--color--sage);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-top: 0.2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-panel .wpcf7-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-panel .wpcf7-form input:focus,
.contact-panel .wpcf7-form select:focus,
.contact-panel .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--terracotta);
  box-shadow: 0 0 0 3px rgba(201, 123, 74, 0.25);
}

.contact-panel .wpcf7-form .wpcf7-submit {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--wp--preset--color--cream);
  /* terracotta-deep, not terracotta — the base preset only hits ~2.9:1 against cream text. */
  background-color: var(--wp--preset--color--terracotta-deep);
  border: none;
  border-radius: 999px;
  padding: 1.05rem 2.6rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124, 139, 111, 0.35);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background-color 0.28s ease;
}

.contact-panel .wpcf7-form .wpcf7-submit:hover,
.contact-panel .wpcf7-form .wpcf7-submit:focus-visible {
  background-color: var(--wp--preset--color--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(124, 139, 111, 0.4);
}

.contact-panel .wpcf7-form .wpcf7-not-valid-tip {
  color: var(--wp--preset--color--terracotta-pale);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.contact-panel .wpcf7-form .wpcf7-response-output {
  color: var(--wp--preset--color--cream);
  border-color: rgba(247, 241, 230, 0.35) !important;
  border-radius: 12px;
  font-size: 0.92rem;
}

.contact-panel .wpcf7-spinner {
  filter: invert(1) brightness(1.4);
}
