/*
Theme Name:   Astra Child
Theme URI:    https://proxi-buy.com
Description:  Astra child theme for Proxi Buy.
Author:       Proxi Buy
Author URI:   https://proxi-buy.com
Template:     astra
Version:      0.3.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* =========================================================
   Proxi Buy — Design Tokens
   ========================================================= */
:root {
  --pb-primary: #2F5BFF;
  --pb-primary-700: #1E40C8;
  --pb-primary-50: #EEF2FF;
  --pb-accent: #E63946;
  --pb-text: #0F172A;
  --pb-text-muted: #475569;
  --pb-text-soft: #64748B;
  --pb-border: #E2E8F0;
  --pb-bg: #FFFFFF;
  --pb-bg-soft: #F8FAFC;
  --pb-bg-alt: #F1F5F9;
  --pb-radius-sm: 6px;
  --pb-radius-md: 10px;
  --pb-radius-lg: 16px;
  --pb-shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --pb-shadow-md: 0 4px 12px rgba(15,23,42,.08);
  --pb-shadow-lg: 0 12px 32px rgba(15,23,42,.10);
}

/* =========================================================
   Layout helpers
   ========================================================= */
.pb-container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.pb-narrow {
  max-width: 760px;
}

.pb-section {
  padding: 56px 0;
}
.pb-section--alt {
  background: var(--pb-bg-soft);
}
.pb-section-title {
  text-align: center;
  margin: 0 0 36px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pb-text);
}
.pb-section-foot {
  text-align: center;
  margin-top: 28px;
}

/* =========================================================
   Buttons
   ========================================================= */
.pb-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--pb-radius-md);
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.pb-btn--primary {
  background: var(--pb-primary);
  color: #fff !important;
  box-shadow: var(--pb-shadow-sm);
}
.pb-btn--primary:hover {
  background: var(--pb-primary-700);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--pb-shadow-md);
}
.pb-btn--ghost {
  background: #fff;
  color: var(--pb-primary) !important;
  border-color: var(--pb-border);
}
.pb-btn--ghost:hover {
  border-color: var(--pb-primary);
}
.pb-btn--lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* =========================================================
   Hero
   ========================================================= */
.pb-hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--pb-primary-50) 0%, #fff 100%);
  text-align: center;
}
.pb-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pb-primary);
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: 999px;
}
.pb-hero h1 {
  margin: 0 auto 18px;
  max-width: 760px;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pb-text);
}
.pb-lead {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--pb-text-muted);
}
.pb-hero-cta {
  margin: 0 0 18px;
}
.pb-hero-meta {
  margin: 0;
  font-size: 14px;
  color: var(--pb-text-soft);
}

/* =========================================================
   Step grid (How it works)
   ========================================================= */
.pb-step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .pb-step-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.pb-step {
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--pb-shadow-sm);
}
.pb-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--pb-primary-50);
  color: var(--pb-primary);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}
.pb-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--pb-text);
}
.pb-step p {
  margin: 0;
  color: var(--pb-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================
   Trust grid (Why us)
   ========================================================= */
.pb-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .pb-trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.pb-trust-item {
  padding: 24px;
  border-radius: var(--pb-radius-lg);
  background: var(--pb-bg-soft);
}
.pb-trust-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--pb-text);
}
.pb-trust-item p {
  margin: 0;
  color: var(--pb-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================
   Category grid
   ========================================================= */
.pb-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .pb-category-grid { grid-template-columns: repeat(3, 1fr); }
}
.pb-category {
  padding: 18px;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-md);
  background: #fff;
  font-weight: 600;
  color: var(--pb-text);
  font-size: 16px;
}
.pb-category span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 13px;
  color: var(--pb-text-soft);
}

/* =========================================================
   CTA band
   ========================================================= */
.pb-cta-band {
  background: var(--pb-primary);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.pb-cta-band h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
}
.pb-cta-band p {
  color: rgba(255,255,255,.92);
  margin: 0 0 24px;
  font-size: 17px;
}
.pb-cta-band .pb-btn--primary {
  background: #fff;
  color: var(--pb-primary) !important;
}
.pb-cta-band .pb-btn--primary:hover {
  background: rgba(255,255,255,.92);
  color: var(--pb-primary-700) !important;
}

/* =========================================================
   Notice / Callout
   ========================================================= */
.pb-notice {
  padding: 16px 20px;
  border-radius: var(--pb-radius-md);
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}
.pb-notice--warn {
  background: #FEF0F1;
  border-left: 4px solid var(--pb-accent);
  color: #7F1D1D;
}
.pb-notice strong { color: var(--pb-accent); }

/* =========================================================
   FAQ details
   ========================================================= */
.pb-narrow details {
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-md);
  padding: 14px 18px;
  margin: 10px 0;
  background: #fff;
}
.pb-narrow details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pb-text);
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.pb-narrow details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--pb-primary);
  font-weight: 400;
}
.pb-narrow details[open] summary::after { content: "−"; }
.pb-narrow details > p { margin: 12px 0 0; color: var(--pb-text-muted); font-size: 15px; }

/* =========================================================
   How-to ordered list
   ========================================================= */
.pb-howto {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.pb-howto > li {
  position: relative;
  padding: 16px 16px 16px 56px;
  margin: 0 0 12px;
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-md);
  counter-increment: step;
  line-height: 1.6;
  color: var(--pb-text-muted);
}
.pb-howto > li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--pb-primary-50);
  color: var(--pb-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* =========================================================
   Astra footer override — Proxi Buy company info bar
   ========================================================= */
.pb-footer-info {
  background: var(--pb-text);
  color: rgba(255,255,255,.85);
  padding: 40px 0 24px;
  font-size: 14px;
  line-height: 1.7;
}
.pb-footer-info .pb-container { max-width: 1100px; }
.pb-footer-info .pb-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .pb-footer-info .pb-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.pb-footer-info h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.pb-footer-info a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.pb-footer-info a:hover {
  color: #fff;
  text-decoration: underline;
}
.pb-footer-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pb-footer-info ul li { margin: 4px 0; }
.pb-footer-info .pb-footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-align: center;
}

/* Suppress Astra default footer copyright bar to avoid double */
.ast-small-footer { display: none; }

/* =========================================================
   Proxi submit form
   ========================================================= */
.proxi-form {
  margin: 24px 0 0;
}
.proxi-fieldset {
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-md);
  padding: 18px 18px 4px;
  margin: 20px 0;
  background: #fff;
}
.proxi-fieldset > legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--pb-text);
  letter-spacing: 0.01em;
}
.proxi-field {
  margin-bottom: 16px;
}
.proxi-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pb-text);
}
.proxi-field > small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--pb-text-soft);
  line-height: 1.5;
}
.proxi-field input[type=text],
.proxi-field input[type=email],
.proxi-field input[type=url],
.proxi-field input[type=number],
.proxi-field select,
.proxi-field textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius-sm);
  background: #fff;
  color: var(--pb-text);
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.proxi-field input:focus,
.proxi-field select:focus,
.proxi-field textarea:focus {
  outline: none;
  border-color: var(--pb-primary);
  box-shadow: 0 0 0 3px rgba(47,91,255,.15);
}
.proxi-req {
  color: var(--pb-accent);
  font-weight: 700;
}
.proxi-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}
@media (min-width: 600px) {
  .proxi-row { grid-template-columns: 1fr 1fr; }
}
.proxi-check {
  display: flex;
  align-items: flex-start;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pb-text-muted);
}
.proxi-check input[type=checkbox] {
  margin: 4px 10px 0 0;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--pb-primary);
}
.proxi-check label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}
.proxi-confirm legend { color: var(--pb-accent); }
.proxi-submit-row {
  margin: 24px 0 8px;
  text-align: center;
}
.proxi-foot {
  text-align: center;
  color: var(--pb-text-soft);
}

/* =========================================================
   Minor: site-wide tweaks
   ========================================================= */
body { color: var(--pb-text-muted); }
h1, h2, h3, h4 { color: var(--pb-text); letter-spacing: -0.01em; }
a { color: var(--pb-primary); }
a:hover { color: var(--pb-primary-700); }
