/*
Theme Name: SHNSHN AI Consulting & SaaS
Theme URI: https://shnshn.com
Author: SHNSHN Team
Author URI: https://shnshn.com
Description: A modern, professional WordPress theme for AI consulting and SaaS businesses. Features responsive design, dark mode support, and advanced customization options.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shnshn-theme
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* Import Navigation Styles */
@import url('./css/navigation.css');
@import url('./css/block-editor.css');

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3b82f6;
  --primary-dark: #1e40af;
  --secondary: #8b5cf6;
  --background-light: #f8fafc;
  --background-dark: #0f172a;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: var(--background-dark);
  color: #f1f5f9;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

body.dark-mode a {
  color: #60a5fa;
}

body.dark-mode a:hover {
  color: #93c5fd;
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-lg {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

body.dark-mode .site-header {
  background-color: #1e293b;
  border-bottom-color: var(--border-dark);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.dark-mode .logo {
  color: var(--white);
}

.logo:hover {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

body.dark-mode .nav-menu a {
  color: #e2e8f0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-dark);
}

body.dark-mode .nav-toggle {
  color: var(--white);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

body.dark-mode .btn-secondary {
  background-color: #1e293b;
  color: var(--white);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  background-color: var(--background-light);
  border-color: var(--primary);
}

body.dark-mode .btn-secondary:hover {
  background-color: #334155;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--background-light) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
}

body.dark-mode .hero-text p {
  color: #cbd5e1;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 4rem 0;
}

section.py-12 {
  padding: 3rem 0;
}

section.py-24 {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

body.dark-mode .section-title p {
  color: #cbd5e1;
}

/* ============================================
   FEATURES GRID
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

body.dark-mode .feature-card {
  background-color: #1e293b;
  border-color: var(--border-dark);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

body.dark-mode .feature-card p {
  color: #cbd5e1;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2.5rem;
  border-radius: 1rem;
  background-color: var(--white);
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

body.dark-mode .pricing-card {
  background-color: #1e293b;
  border-color: var(--border-dark);
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

body.dark-mode .pricing-subtitle {
  color: #cbd5e1;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

body.dark-mode .pricing-period {
  color: #cbd5e1;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-light);
  font-size: 0.95rem;
}

body.dark-mode .pricing-features li {
  border-bottom-color: var(--border-dark);
  color: #cbd5e1;
}

.pricing-features li:before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.pricing-cta {
  width: 100%;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

body.dark-mode .team-member {
  background-color: #1e293b;
  border-color: var(--border-dark);
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--background-light);
}

body.dark-mode .team-image {
  background-color: #0f172a;
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.team-experience {
  color: var(--text-light);
  font-size: 0.875rem;
}

body.dark-mode .team-experience {
  color: #cbd5e1;
}

/* ============================================
   CASE STUDIES
   ============================================ */

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-study {
  border-radius: 1rem;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

body.dark-mode .case-study {
  background-color: #1e293b;
  border-color: var(--border-dark);
}

.case-study:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-study-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: var(--background-light);
}

body.dark-mode .case-study-image {
  background-color: #0f172a;
}

.case-study-content {
  padding: 2rem;
}

.case-study-tag {
  display: inline-block;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.case-study-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.case-study-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

body.dark-mode .case-study-description {
  color: #cbd5e1;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

body.dark-mode .site-footer {
  background-color: #0f172a;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
  }

  body.dark-mode .nav-menu {
    background-color: #1e293b;
    border-bottom-color: var(--border-dark);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: block;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  section {
    padding: 2rem 0;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .features-grid,
  .pricing-grid,
  .team-grid,
  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */

.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

body.dark-mode .dark-mode-toggle {
  color: var(--white);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-light {
  background-color: var(--background-light);
}

body.dark-mode .bg-light {
  background-color: #1e293b;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.py-4 { padding: 1rem 0; }
.py-8 { padding: 2rem 0; }
.px-4 { padding: 0 1rem; }
