/*
Theme Name: AisoStudio
Theme URI: https://aiso.studio/theme
Author: Code63 Labs
Author URI: https://code63labs.com
Description: The only WordPress theme built by the team that built the scanner. WCAG 2.1 AA compliant out of the box. AEO, SEO, and local search optimized. Works with Elementor. No accessibility plugins needed. No Yoast needed. Everything is built in.
Version: 1.0.0
Requires at least: 6.0
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: aisostudio
Tags: accessibility-ready, custom-colors, custom-logo, elementor, one-column, two-columns, translation-ready, blog, business
*/

/* ============================================
   AisoStudio Base Styles
   WCAG 2.1 AA Compliant
   ============================================ */

:root {
  --aiso-primary: #0f766e;
  --aiso-primary-hover: #115e59;
  --aiso-primary-light: #f0fdfa;
  --aiso-text: #111827;
  --aiso-text-secondary: #374151;
  --aiso-bg: #ffffff;
  --aiso-bg-alt: #f9fafb;
  --aiso-border: #e5e7eb;
  --aiso-radius: 12px;
  --aiso-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- RESET & BASE ---- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--aiso-font);
  color: var(--aiso-text);
  background: var(--aiso-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- ACCESSIBILITY: Skip Link ---- */

.aiso-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--aiso-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 100000;
  text-decoration: none;
  transition: top 0.2s;
}

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

/* ---- ACCESSIBILITY: Focus Indicators (WCAG 2.4.7) ---- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--aiso-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- ACCESSIBILITY: Link Distinguishability (WCAG 1.4.1) ---- */

.aiso-content a:not(.aiso-btn):not(.aiso-nav-link):not([class*="dd-"]) {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--aiso-primary);
}

.aiso-content a:not(.aiso-btn):not(.aiso-nav-link):not([class*="dd-"]):hover {
  text-decoration-thickness: 2px;
  color: var(--aiso-primary-hover);
}

/* ---- TYPOGRAPHY ---- */

h1, h2, h3, h4, h5, h6 {
  color: var(--aiso-text);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }

p {
  color: var(--aiso-text);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ---- LAYOUT ---- */

.aiso-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.aiso-section {
  padding: 64px 0;
}

.aiso-section-alt {
  padding: 64px 0;
  background: var(--aiso-bg-alt);
}

.aiso-section-brand {
  padding: 64px 0;
  background: var(--aiso-primary);
  color: #fff;
}

/* ---- HEADER ---- */

.aiso-topbar {
  background: var(--aiso-primary);
  color: #fff;
  font-size: 14px;
  padding: 6px 0;
}

.aiso-topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.aiso-topbar a:hover {
  text-decoration: underline;
}

.aiso-header {
  background: #fff;
  border-bottom: 1px solid var(--aiso-border);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.aiso-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.aiso-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--aiso-text);
}

.aiso-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--aiso-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aiso-logo-text {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.aiso-logo-subtitle {
  font-size: 12px;
  color: var(--aiso-text-secondary);
  font-weight: 500;
}

/* ---- NAVIGATION ---- */

.aiso-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.aiso-nav-link {
  color: var(--aiso-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.aiso-nav-link:hover {
  color: var(--aiso-primary);
}

.aiso-nav-cta {
  display: inline-block;
  background: var(--aiso-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.aiso-nav-cta:hover {
  background: var(--aiso-primary-hover);
  color: #fff;
}

/* Mobile menu toggle */
.aiso-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.aiso-mobile-nav {
  display: none;
  border-top: 1px solid var(--aiso-border);
  padding: 16px;
  background: #fff;
}

.aiso-mobile-nav a {
  display: block;
  padding: 8px 0;
  color: var(--aiso-text);
  text-decoration: none;
  font-weight: 500;
}

.aiso-mobile-nav a:hover {
  color: var(--aiso-primary);
}

@media (max-width: 768px) {
  .aiso-nav { display: none; }
  .aiso-menu-toggle { display: block; }
  .aiso-mobile-nav.is-open { display: block; }
}

/* ---- BUTTONS ---- */

.aiso-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--aiso-radius);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.aiso-btn:hover {
  transform: translateY(-1px);
}

.aiso-btn-primary {
  background: var(--aiso-primary);
  color: #fff;
}

.aiso-btn-primary:hover {
  background: var(--aiso-primary-hover);
  color: #fff;
}

.aiso-btn-white {
  background: #fff;
  color: var(--aiso-primary);
}

.aiso-btn-white:hover {
  background: #f0fdfa;
  color: var(--aiso-primary-hover);
}

.aiso-btn-outline {
  background: transparent;
  color: var(--aiso-primary);
  border: 2px solid var(--aiso-primary);
}

.aiso-btn-outline:hover {
  background: var(--aiso-primary-light);
}

/* ---- CARDS ---- */

.aiso-card {
  background: #fff;
  border: 1px solid var(--aiso-border);
  border-radius: var(--aiso-radius);
  padding: 24px;
}

.aiso-card-elevated {
  background: #fff;
  border: 1px solid var(--aiso-border);
  border-radius: var(--aiso-radius);
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ---- FOOTER ---- */

.aiso-footer {
  background: #111827;
  color: #d1d5db;
  padding: 48px 0 24px;
}

.aiso-footer h3 {
  color: var(--aiso-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.aiso-footer a {
  color: #d1d5db;
  text-decoration: none;
}

.aiso-footer a:hover {
  color: #fff;
}

.aiso-footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 32px;
  padding-top: 16px;
  font-size: 12px;
  color: #9ca3af;
}

/* ---- GRID UTILITIES ---- */

.aiso-grid {
  display: grid;
  gap: 24px;
}

.aiso-grid-2 { grid-template-columns: repeat(2, 1fr); }
.aiso-grid-3 { grid-template-columns: repeat(3, 1fr); }
.aiso-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .aiso-grid-2,
  .aiso-grid-3,
  .aiso-grid-4 {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ---- HERO ---- */

.aiso-hero {
  padding: 80px 0;
  text-align: center;
}

.aiso-hero-brand {
  background: linear-gradient(135deg, var(--aiso-primary), var(--aiso-primary-hover));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.aiso-hero-brand h1 {
  color: #fff;
}

.aiso-hero-brand p {
  color: rgba(255, 255, 255, 0.9);
}

/* ---- FAQ ---- */

.aiso-faq-item {
  background: var(--aiso-bg-alt);
  border: 1px solid var(--aiso-border);
  border-radius: var(--aiso-radius);
  padding: 24px;
  margin-bottom: 16px;
}

.aiso-faq-item h3 {
  margin-bottom: 8px;
}

.aiso-faq-item p {
  margin-bottom: 0;
}

/* ---- STEPS ---- */

.aiso-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.aiso-step-number {
  width: 40px;
  height: 40px;
  background: var(--aiso-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* ---- TESTIMONIALS ---- */

.aiso-testimonial {
  background: var(--aiso-primary-light);
  border: 1px solid var(--aiso-border);
  border-radius: var(--aiso-radius);
  padding: 24px;
}

.aiso-testimonial p {
  font-style: italic;
  margin-bottom: 12px;
}

.aiso-testimonial footer {
  font-weight: 700;
  font-size: 14px;
}

/* ---- CHECKLIST ---- */

.aiso-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aiso-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--aiso-text);
}

.aiso-check-icon {
  width: 20px;
  height: 20px;
  color: var(--aiso-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- AREA TAGS ---- */

.aiso-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.aiso-area-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--aiso-primary-light);
  color: var(--aiso-primary);
  border: 1px solid var(--aiso-primary);
  text-decoration: none;
}

.aiso-area-tag:hover {
  background: var(--aiso-primary);
  color: #fff;
}

/* ---- STICKY PHONE CTA ---- */

.aiso-sticky-phone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--aiso-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  min-height: 44px;
}

.aiso-sticky-phone:hover {
  background: var(--aiso-primary-hover);
  color: #fff;
}

@media (min-width: 769px) {
  .aiso-sticky-phone { display: none; }
}
