/*
Theme Name: Aapta Solutions
Theme URI: https://aaptasolutions.com
Description: Custom child theme for Aapta Solutions, built on Astra. Optimized for SureCart commerce, Spectra blocks, and the Aapta brand system. Includes pre-built block patterns for hero, pricing, FAQ, and CTA sections.
Author: Aapta Solutions
Author URI: https://aaptasolutions.com
Template: astra
Version: 1.0.0
Requires PHP: 7.4
Requires at least: 6.1
Text Domain: aapta-solutions
Tags: ecommerce, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, block-patterns
*/

/* =========================================================
   AAPTA SOLUTIONS — BRAND OVERRIDES
   Astra provides the base; this layer enforces brand details.
   ========================================================= */

/* Buttons — consistent radius + weight across SureCart, Spectra, core, Astra */
.wp-block-button__link,
.wp-block-button .wp-block-button__link,
.ast-button,
.button,
.sc-button,
.uagb-button__link {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Primary button hover */
.wp-block-button__link:hover,
.ast-button:hover {
  transform: translateY(-1px);
}

/* Headings — tighter line-height for brand */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

/* Body text on dark backgrounds reads slate-400 */
.has-brand-navy-background-color *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(a):not(.wp-block-button__link) {
  color: #94a3b8;
}
.has-brand-navy-background-color h1,
.has-brand-navy-background-color h2,
.has-brand-navy-background-color h3,
.has-brand-navy-background-color h4 {
  color: #ffffff;
}

/* SureCart product/price tweaks */
.sc-price {
  color: #0f172a;
  font-weight: 700;
}
.sc-product-name,
.sc-line-item-name {
  font-weight: 600;
}

/* SureCart checkout polish — tighter form fields */
.sc-form-control {
  border-radius: 8px !important;
}

/* SureCart currency converter dropdown in nav menu */
.sc-locale-selector,
.menu-item-language-switcher {
  margin-left: 1rem;
  font-size: 14px;
}

/* Spectra accordion — softer borders */
.wp-block-uagb-faq .wp-block-uagb-faq-child {
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Card-style group blocks — when you add the "is-style-card" class */
.wp-block-group.is-style-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
}
.wp-block-group.is-style-card-featured {
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

/* "Pill" button style — for the toggle if you build one */
.is-style-pill .wp-block-button__link {
  border-radius: 999px;
}

/* Comparison table — readable, branded */
.wp-block-table.is-style-aapta-compare table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.wp-block-table.is-style-aapta-compare th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
}
.wp-block-table.is-style-aapta-compare td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

/* Mobile typography scale */
@media (max-width: 768px) {
  h1 { font-size: clamp(32px, 8vw, 48px) !important; }
  h2 { font-size: clamp(26px, 6vw, 36px) !important; }
}
