/*
Theme Name: OneClick
Theme URI: https://github.com/waldofootprint/oneclick-clone
Author: RuufPro
Description: Renders the oneclick-clone content model as a real WordPress site. Same content JSON, same skins, same sections as the Astro output — but editable by the client and portable to any WordPress host.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License: GPLv2 or later
Text Domain: oneclick
*/

/* Design tokens are written per site by the build (assets/tokens.css) and
   enqueued ahead of this file, so every rule here is skin-agnostic. This
   mirrors site-template/src/styles/base.css, which stays the source of
   truth for the visual system. */

/* ---------------------------------------------------------------------------
   WordPress-only corrections.

   base.css is shared verbatim with the Astro build and stays the source of
   truth. These rules exist solely because WordPress emits different markup for
   the same thing -- they are not design decisions, and nothing here should
   change how the Astro output looks.
   --------------------------------------------------------------------------- */

/* wp_nav_menu wraps links in <ul><li>; the Astro nav has bare <a> children, so
   base.css's .site-nav rules never see a list to reset. */
.site-nav .nav-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav .nav-list li { margin: 0; }
.site-nav .nav-list a { color: var(--color-body); font-weight: 500; white-space: nowrap; }
.site-nav .nav-list a:hover,
.site-nav .nav-list .current-menu-item > a { color: var(--color-accent); }

/* The Astro hero uses .btn-outline only over a darkened hero image, where
   light-on-dark is correct. The generated WordPress home has no hero image
   yet (images are parked), so the same class rendered near-invisible on the
   light ground. This variant is legible on a light hero. */
.hero:not(.hero-image) .btn-outline {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.hero:not(.hero-image) .btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

/* The Astro form's honeypot style lives in its component; here it belongs with
   the other WordPress-only rules. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field-optional { font-weight: 400; opacity: 0.65; }
