/*
Theme Name: Proof-Led Property Readiness
Theme URI: https://proof-led.com
Author: Proof-Led Team
Author URI: https://proof-led.com
Description: A custom WordPress theme that replicates the Proof-Led Property Readiness marketing site. Pages, front page and menu auto-populate on activation.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: proofled
*/

/*
 * Styling is handled by a precompiled Tailwind stylesheet (assets/theme.css),
 * enqueued in functions.php. No runtime CDN is used. The rules below cover
 * stateful navbar theming, the mobile menu, scroll reveals and the hero
 * ken-burns animation — behaviour the React app handled in JS/Tailwind config.
 */

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

/* --- Navbar theming (mirrors the React Navbar) --- */
.site-nav {
  color: #1f2937; /* ink */
}
.site-nav .brand-badge {
  background-color: #1f2937;
  color: #ffffff;
}
.site-nav .nav-link {
  color: inherit;
}
.site-nav .nav-link:hover {
  color: #3b82f6; /* review */
}
.site-nav .nav-divider {
  border-color: #e5e7eb;
}
.site-nav .nav-signin {
  background-color: #1f2937;
  color: #ffffff;
}
.site-nav .nav-signin:hover {
  background-color: #1e293b;
}

/* Solid background once scrolled, or whenever the page has no dark hero. */
.site-nav.is-scrolled,
body:not(.has-dark-hero) .site-nav {
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Transparent over a dark hero (white text) until scrolled. */
body.has-dark-hero .site-nav:not(.is-scrolled) {
  color: #ffffff;
}
body.has-dark-hero .site-nav:not(.is-scrolled) .brand-badge {
  background-color: #ffffff;
  color: #1f2937;
}
body.has-dark-hero .site-nav:not(.is-scrolled) .nav-link:hover {
  color: rgba(255, 255, 255, 0.7);
}
body.has-dark-hero .site-nav:not(.is-scrolled) .nav-divider {
  border-color: rgba(255, 255, 255, 0.2);
}
body.has-dark-hero .site-nav:not(.is-scrolled) .nav-signin {
  background-color: #ffffff;
  color: #1f2937;
}
body.has-dark-hero .site-nav:not(.is-scrolled) .nav-signin:hover {
  background-color: #e2e8f0;
}

/* --- Mobile menu overlay --- */
.mobile-menu {
  display: none;
}
.mobile-menu.is-open {
  display: flex;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Hero ken-burns (referenced but undefined in the original app) --- */
@keyframes ken-burns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.12) translate(-1.5%, -1.5%);
  }
}
.animate-ken-burns {
  animation: ken-burns 7s ease-out forwards;
}
