/*
Theme Name: GZ Delivery Assistance
Theme URI: https://example.com
Author: GZ Delivery Assistance
Author URI: https://example.com
Description: A clean, official, document-inspired block theme for GZ Delivery Assistance — passport collection, document delivery, and authorisation assistance services.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gz-delivery-assistance
*/

/* === Header === */
.gz-header {
  border-bottom: 1.5px solid var(--wp--preset--color--contrast);
}

.gz-mark a {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -1px;
  font-size: 1.5rem;
}

.gz-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.gz-nav a:hover {
  color: var(--wp--preset--color--accent);
}

/* === Hero === */
.gz-hero-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--stone);
}

.gz-hero-badge::before,
.gz-hero-badge::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: var(--wp--preset--color--border);
}

/* === Document cards === */
.gz-doc-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
}

.gz-doc-card .gz-card-stamp {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wp--preset--color--stone);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 2px;
  padding: 0.3rem 0.9rem;
  width: fit-content;
}

/* === Ruled rows (official-form feel) === */
.gz-ruled > * {
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding-bottom: 1rem;
}

.gz-ruled > *:last-child {
  border-bottom: none;
}

/* === Step numbers === */
.gz-step-num {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--wp--preset--color--stone);
  line-height: 1;
}

/* === Section labels === */
.gz-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--stone);
}

/* === Equal-height 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;
}

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

/* === Footer === */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

.gz-footer a {
  text-decoration: none;
}

.gz-footer a:hover {
  color: var(--wp--preset--color--accent);
}

/* === Entrance animations === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: gzFadeUp 0.6s ease forwards;
}

.fade-in {
  opacity: 0;
  animation: gzFadeIn 0.6s ease forwards;
}

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

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: gzFadeUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }

/* === Scroll reveals === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === Hover === */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(26, 26, 26, 0.1);
}

/* === 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;
}

/* === Reduced motion === */
@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 > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
