/*
Theme Name: XML Bayilik Corporate
Theme URI: https://xmlbayiilik.com/
Author: Antigravity
Author URI: https://xmlbayiilik.com/
Description: A high-end, corporate B2B SaaS theme tailored for XML Bayilik. Features a clean, professional aesthetic, smooth interactions, and an optimized user experience.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: xmlbayiilik
*/

:root {
  /* Corporate SaaS Palette */
  --primary: #4F46E5;
  /* Indigo */
  --primary-hover: #4338CA;
  --secondary: #10B981;
  /* Emerald Green for success/accents */
  --secondary-hover: #059669;

  --bg-main: #FFFFFF;
  --bg-alt: #F8FAFC;
  /* Slate 50 */
  --bg-card: #FFFFFF;

  --text-dark: #0F172A;
  /* Slate 900 */
  --text-body: #475569;
  /* Slate 600 */
  --text-muted: #64748B;
  /* Slate 500 */

  --border-light: #E2E8F0;
  /* Slate 200 */
  --border-focus: #CBD5E1;
  /* Slate 300 */

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

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

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

.site-branding {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-title span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

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

.btn-nav {
  background-color: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-nav:hover {
  background-color: var(--primary-hover);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: transparent;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border-focus);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: var(--text-muted);
}

/* Hero Section */
.hero {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-main) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-pill {
  display: inline-block;
  padding: 6px 16px;
  background-color: #EEF2FF;
  /* Indigo 50 */
  color: var(--primary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 20px;
  color: var(--text-body);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Features Grid */
.features {
  padding: 80px 0;
  background-color: var(--bg-main);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  padding: 40px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: #EEF2FF;
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* FAQ Section Refined */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-alt);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  background: transparent;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-family: inherit;
  transition: color 0.2s;
}

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

.faq-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-item.active .faq-icon {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(45deg);
  /* Turn plus into cross */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-answer-inner {
  padding: 0 0 32px 0;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background-color: var(--primary);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta-section .btn-primary:hover {
  background-color: var(--bg-alt);
}

/* Footer */
.site-footer {
  padding: 64px 0 32px;
  background-color: var(--text-dark);
  color: var(--border-focus);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-links {
    display: none;
  }

  /* Real menu needed for mobile later */
  .hero-actions {
    flex-direction: column;
  }
}