/*
Theme Name:        Zintra
Theme URI:         https://zintra.com.au
Author:            Faiz E Raza
Author URI:        https://zintra.com.au
Description:       Zintra is a fully custom WordPress theme for the Zintra equipment rental and sale marketplace. Built for performance, SEO, and conversion. Features a custom post type for equipment listings, deep WordPress Customizer integration, mobile-first responsive design, and zero plugin dependencies for core functionality.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           Private — All Rights Reserved
License URI:       https://zintra.com.au
Text Domain:       zintra
Tags:              marketplace, equipment, rental, custom-menu, custom-logo, featured-images, full-width-template, theme-options, threaded-comments, translation-ready

== Zintra Theme ==
Custom marketplace theme. Brand: #207943 green + #111 black. Font: Urbanist.
Built file by file — no page builders, no bloat.
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — ALL BRAND TOKENS
   ============================================================ */
:root {
  /* Brand */
  --z-green:        #207943;
  --z-green-dark:   #185e34;
  --z-green-light:  #e8f4ec;
  --z-green-mid:    #2e9e59;

  /* Neutrals */
  --z-black:        #111111;
  --z-black-soft:   #1a1a1a;
  --z-white:        #ffffff;
  --z-grey-1:       #f5f5f5;
  --z-grey-2:       #e6e6e6;
  --z-grey-3:       #c0c0c0;
  --z-grey-4:       #888888;
  --z-grey-5:       #555555;

  /* Typography */
  --z-font:         'Urbanist', sans-serif;
  --z-size-xs:      11px;
  --z-size-sm:      13px;
  --z-size-base:    15px;
  --z-size-md:      17px;
  --z-size-lg:      20px;
  --z-size-xl:      24px;
  --z-size-2xl:     32px;
  --z-size-3xl:     44px;
  --z-size-4xl:     56px;
  --z-size-5xl:     72px;

  /* Spacing */
  --z-space-xs:     4px;
  --z-space-sm:     8px;
  --z-space-md:     16px;
  --z-space-lg:     24px;
  --z-space-xl:     40px;
  --z-space-2xl:    64px;
  --z-space-3xl:    96px;

  /* Layout */
  --z-container:    1320px;
  --z-radius:       4px;
  --z-radius-md:    8px;
  --z-radius-lg:    12px;

  /* Shadows */
  --z-shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --z-shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --z-shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
  --z-shadow-green: 0 8px 32px rgba(32,121,67,0.18);

  /* Transitions */
  --z-ease:         0.22s ease;
  --z-ease-slow:    0.45s ease;
}

/* ============================================================
   RESET AND BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: var(--z-size-base);
}

body {
  font-family: var(--z-font);
  background: var(--z-white);
  color: var(--z-black);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--z-ease);
}

a:hover {
  color: var(--z-green);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: var(--z-font);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: var(--z-font);
  font-size: var(--z-size-base);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--z-font);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--z-black);
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p {
  margin-bottom: 1rem;
  color: var(--z-grey-5);
  line-height: 1.75;
}

p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--z-black); }

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.z-container {
  max-width: var(--z-container);
  margin: 0 auto;
  padding: 0 var(--z-space-xl);
}

.z-container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--z-space-xl);
}

.z-section {
  padding: var(--z-space-3xl) 0;
}

.z-section-sm {
  padding: var(--z-space-2xl) 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--z-font);
  font-weight: 700;
  font-size: var(--z-size-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--z-radius);
  transition: background var(--z-ease), color var(--z-ease), border-color var(--z-ease), transform var(--z-ease);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: scale(0.98); }

/* Primary — Green fill */
.btn-primary {
  background: var(--z-green);
  color: var(--z-white);
  border-color: var(--z-green);
  padding: 12px 24px;
}
.btn-primary:hover {
  background: var(--z-green-dark);
  border-color: var(--z-green-dark);
  color: var(--z-white);
}

/* Secondary — Black fill */
.btn-secondary {
  background: var(--z-black);
  color: var(--z-white);
  border-color: var(--z-black);
  padding: 12px 24px;
}
.btn-secondary:hover {
  background: var(--z-black-soft);
  color: var(--z-white);
}

/* Outline Black */
.btn-outline {
  background: transparent;
  color: var(--z-black);
  border-color: var(--z-black);
  padding: 10px 22px;
}
.btn-outline:hover {
  background: var(--z-black);
  color: var(--z-white);
}

/* Outline Green */
.btn-outline-green {
  background: transparent;
  color: var(--z-green);
  border-color: var(--z-green);
  padding: 10px 22px;
}
.btn-outline-green:hover {
  background: var(--z-green);
  color: var(--z-white);
}

/* Ghost White — for dark backgrounds */
.btn-ghost {
  background: transparent;
  color: var(--z-white);
  border-color: rgba(255,255,255,0.5);
  padding: 10px 22px;
}
.btn-ghost:hover {
  background: var(--z-white);
  color: var(--z-black);
  border-color: var(--z-white);
}

/* Large modifier */
.btn-lg {
  padding: 16px 36px;
  font-size: var(--z-size-sm);
}

/* Small modifier */
.btn-sm {
  padding: 8px 16px;
  font-size: var(--z-size-xs);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-green  { background: var(--z-green);  color: var(--z-white); }
.badge-black  { background: var(--z-black);  color: var(--z-white); }
.badge-outline-green { background: transparent; color: var(--z-green); border: 1px solid var(--z-green); }
.badge-outline { background: transparent; color: var(--z-black); border: 1px solid var(--z-black); }
.badge-light  { background: var(--z-green-light); color: var(--z-green); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: var(--z-space-xl);
  flex-wrap: wrap;
}

.section-head h2 {
  position: relative;
  padding-bottom: 14px;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--z-green);
}

.section-kicker {
  display: block;
  font-size: var(--z-size-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--z-green);
  margin-bottom: 8px;
}

/* ============================================================
   LISTING CARD — GLOBAL
   ============================================================ */
.listing-card {
  background: var(--z-white);
  border: 2px solid var(--z-grey-2);
  border-radius: var(--z-radius-md);
  overflow: hidden;
  transition: transform var(--z-ease), box-shadow var(--z-ease), border-color var(--z-ease);
  position: relative;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--z-shadow-md);
  border-color: var(--z-green);
}

.listing-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--z-grey-1);
}

.listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.listing-card:hover .listing-card__image img {
  transform: scale(1.04);
}

.listing-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.listing-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: var(--z-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--z-ease), color var(--z-ease);
  font-size: 15px;
  color: var(--z-grey-4);
  border: none;
}

.listing-card__wishlist:hover {
  background: var(--z-green);
  color: var(--z-white);
}

.listing-card__body {
  padding: 16px;
}

.listing-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--z-black);
  margin-bottom: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card__location {
  font-size: 12px;
  color: var(--z-grey-4);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-card__pricing {
  border-top: 1px solid var(--z-grey-2);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.listing-card__price {
  font-size: 18px;
  font-weight: 900;
  color: var(--z-green);
  letter-spacing: -0.02em;
  line-height: 1;
}

.listing-card__price-period {
  font-size: 11px;
  font-weight: 500;
  color: var(--z-grey-4);
  display: block;
  margin-top: 2px;
}

.listing-card__seller {
  font-size: 11px;
  color: var(--z-grey-5);
  display: flex;
  align-items: center;
  gap: 5px;
}

.listing-card__seller-verified {
  width: 14px;
  height: 14px;
  background: var(--z-green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8px;
  flex-shrink: 0;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--z-size-sm);
  font-weight: 700;
  color: var(--z-black);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-label span {
  color: var(--z-green);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 2px solid var(--z-grey-2);
  border-radius: var(--z-radius);
  padding: 11px 14px;
  font-family: var(--z-font);
  font-size: var(--z-size-base);
  color: var(--z-black);
  background: var(--z-white);
  transition: border-color var(--z-ease), box-shadow var(--z-ease);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--z-green);
  box-shadow: 0 0 0 3px rgba(32,121,67,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--z-grey-4);
}

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

.form-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-note {
  font-size: 12px;
  color: var(--z-grey-4);
  margin-top: 4px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll reveal */
.z-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--z-ease-slow), transform var(--z-ease-slow);
}

.z-reveal.z-visible {
  opacity: 1;
  transform: translateY(0);
}

.z-reveal-delay-1 { transition-delay: 0.1s; }
.z-reveal-delay-2 { transition-delay: 0.2s; }
.z-reveal-delay-3 { transition-delay: 0.3s; }
.z-reveal-delay-4 { transition-delay: 0.4s; }
.z-reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   GRID SYSTEMS
   ============================================================ */
.z-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.z-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.z-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.z-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--z-grey-4);
  padding: 14px 0;
  flex-wrap: wrap;
}

.z-breadcrumb a {
  color: var(--z-grey-4);
  transition: color var(--z-ease);
}

.z-breadcrumb a:hover {
  color: var(--z-green);
}

.z-breadcrumb__sep {
  color: var(--z-grey-3);
  font-size: 10px;
}

.z-breadcrumb__current {
  color: var(--z-black);
  font-weight: 600;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.z-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--z-space-xl) 0;
  flex-wrap: wrap;
}

.z-pagination a,
.z-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--z-grey-2);
  border-radius: var(--z-radius);
  font-size: var(--z-size-sm);
  font-weight: 700;
  color: var(--z-grey-5);
  transition: all var(--z-ease);
}

.z-pagination a:hover {
  border-color: var(--z-green);
  color: var(--z-green);
}

.z-pagination .current {
  background: var(--z-green);
  border-color: var(--z-green);
  color: var(--z-white);
}

/* ============================================================
   ALERTS AND NOTICES
   ============================================================ */
.z-notice {
  padding: 14px 18px;
  border-radius: var(--z-radius);
  font-size: var(--z-size-sm);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.z-notice-success {
  background: var(--z-green-light);
  color: var(--z-green-dark);
  border: 1px solid rgba(32,121,67,0.2);
}

.z-notice-error {
  background: #fdf0ef;
  color: #922b21;
  border: 1px solid rgba(192,57,43,0.2);
}

.z-notice-info {
  background: var(--z-grey-1);
  color: var(--z-black);
  border: 1px solid var(--z-grey-2);
}

/* ============================================================
   SKIP LINK — ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10000;
  background: var(--z-green);
  color: var(--z-white);
  padding: 10px 20px;
  border-radius: 0 0 var(--z-radius) var(--z-radius);
  font-size: var(--z-size-sm);
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   RESPONSIVE — GRID BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  .z-container { padding: 0 var(--z-space-lg); }
  .z-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .z-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .z-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .z-section { padding: var(--z-space-2xl) 0; }
  .z-section-sm { padding: var(--z-space-xl) 0; }
}

@media (max-width: 640px) {
  .z-container { padding: 0 var(--z-space-md); }
  .z-container-narrow { padding: 0 var(--z-space-md); }
  .z-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .z-grid-3 { grid-template-columns: 1fr; }
  .z-grid-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-lg { padding: 14px 24px; }
}

/* ============================================================
   WORDPRESS CORE CLASSES — DO NOT REMOVE
   ============================================================ */
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { text-align: center; display: block; margin: 0 auto; }
.alignleft  { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 10px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--z-grey-4); margin-top: 6px; text-align: center; }
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
