/*
Theme Name: ASR Finance
Theme URI: https://asrfinance.az
Author: ASR Finance Team
Author URI: https://asrfinance.az
Description: İslam prinsiplərinə uyğun faizsiz lizing şirkəti üçün WordPress mövzusu. ABB Bank dizaynına əsaslanır.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asr-finance
Domain Path: /languages
Tags: finance, leasing, islamic, corporate, responsive, multilingual
*/

/* ================================
   ASR Finance - WordPress Theme
   Islamic Leasing Company Theme
   ================================ */

/* CSS Variables */
:root {
  --asr-green: #00A344;
  --asr-green-light: #00C853;
  --asr-green-dark: #1B5E20;
  --asr-gold: #D4AF37;
  --asr-gold-light: #FFD700;
  --asr-gold-dark: #B8860B;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 163, 68, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 163, 68, 0.15);
  --radius: 0.625rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--asr-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
  background: linear-gradient(135deg, var(--asr-green-light), var(--asr-green), var(--asr-green-dark));
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar a {
  color: var(--white);
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
}

.main-header {
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 40px;
  width: auto;
}

/* Navigation */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.main-nav a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--asr-green);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--asr-green);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher a {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.lang-switcher a.active,
.lang-switcher a:hover {
  background: rgba(0, 163, 68, 0.1);
  color: var(--asr-green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--asr-green-light), var(--asr-green), var(--asr-green-dark));
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
  color: var(--white);
}

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

.btn-outline:hover {
  background: rgba(0, 163, 68, 0.1);
}

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

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #f8f9fa 0%, var(--white) 50%, rgba(0, 163, 68, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 163, 68, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--asr-green-dark);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--asr-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

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

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.hero-feature::before {
  content: '✓';
  color: var(--asr-green);
  font-weight: bold;
}

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

/* Calculator Section */
.calculator {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--white), var(--bg-light));
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calculator-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.calculator-result {
  background: linear-gradient(135deg, rgba(0, 163, 68, 0.05), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(0, 163, 68, 0.2);
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.slider-label {
  font-weight: 500;
  color: var(--text-primary);
}

.slider-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--asr-green);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--asr-green), var(--asr-green-dark));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 163, 68, 0.4);
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.monthly-payment {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.monthly-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.monthly-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--asr-green);
}

.monthly-currency {
  font-size: 1rem;
  color: var(--text-secondary);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.breakdown-row:last-of-type {
  border-bottom: none;
  background: rgba(0, 163, 68, 0.1);
  margin: 0 -1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.breakdown-label {
  color: var(--text-secondary);
}

.breakdown-value {
  font-weight: 500;
}

.breakdown-row:last-of-type .breakdown-value {
  font-weight: 700;
  color: var(--asr-green);
}

.calculator-note {
  background: rgba(212, 175, 55, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.calculator-note::before {
  content: 'ℹ';
  color: var(--asr-gold);
  font-weight: bold;
  flex-shrink: 0;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.service-icon.auto {
  background: linear-gradient(135deg, var(--asr-green), var(--asr-green-dark));
}

.service-icon.equipment {
  background: linear-gradient(135deg, var(--asr-gold), var(--asr-gold-dark));
}

.service-icon.realestate {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.service-icon.islamic {
  background: linear-gradient(135deg, #10b981, #047857);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--asr-green);
  font-weight: 500;
  font-size: 0.875rem;
}

.service-link::after {
  content: '→';
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card:hover .service-link::after {
  opacity: 1;
}

.service-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover .service-accent {
  transform: scaleX(1);
}

.service-accent.auto {
  background: linear-gradient(90deg, var(--asr-green), var(--asr-green-dark));
}

.service-accent.equipment {
  background: linear-gradient(90deg, var(--asr-gold), var(--asr-gold-dark));
}

.service-accent.realestate {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.service-accent.islamic {
  background: linear-gradient(90deg, #10b981, #047857);
}

/* Advantages Section */
.advantages {
  padding: 5rem 0;
  background: var(--bg-light);
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.advantage-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.advantage-icon.fast {
  background: #fef3c7;
  color: #d97706;
}

.advantage-icon.no-interest {
  background: rgba(0, 163, 68, 0.2);
  color: var(--asr-green);
}

.advantage-icon.transparent {
  background: #dbeafe;
  color: #2563eb;
}

.advantage-icon.flexible {
  background: #e9d5ff;
  color: #9333ea;
}

.advantage-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.advantage-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--asr-green-light), var(--asr-green), var(--asr-green-dark));
  border-radius: 1rem;
  padding: 3rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-value.gold {
  color: var(--asr-gold-light);
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Quick Links */
.quick-links {
  padding: 2rem 0;
  background: var(--white);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.quick-links-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.quick-link:hover {
  border-color: currentColor;
}

.quick-link.auto:hover {
  background: rgba(0, 163, 68, 0.1);
  color: var(--asr-green);
}

.quick-link.equipment:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--asr-gold-dark);
}

.quick-link.realestate:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.quick-link.calculator:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.quick-link.apply:hover {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
}

.quick-link.branches:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
}

.contact-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 163, 68, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--asr-green);
}

.contact-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-weight: 600;
  color: var(--text-primary);
}

.map-placeholder {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 1rem;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.map-placeholder-content {
  text-align: center;
}

.map-placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--asr-green);
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: #111827;
  color: var(--white);
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: var(--asr-green);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-column h4 {
  color: var(--asr-gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--white);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.mobile-menu a:hover {
  background: rgba(0, 163, 68, 0.1);
  color: var(--asr-green);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

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

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

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* WordPress Specific */
.wp-block {
  max-width: 100%;
}

.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Admin Bar Fix */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu-toggle {
    display: none;
  }
  
  body {
    padding-top: 0;
  }
}
