/*
Theme Name: Ashvix
Theme URI: https://ashvix.com
Author: Ashvix IT Solutions
Author URI: https://ashvix.com
Description: Secure & Scalable IT Solutions - Production-ready, Elementor-integrated WordPress Theme. Fully customizable with Elementor Page Builder and Elementor Theme Builder.
Version: 1.0.0
Text Domain: ashvix
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ==========================================================================
   ASHVIX - BRAND DESIGN SYSTEM & STYLESHEET
   Brand Colors: Burgundy (#800020), Blush (#f2c7d3), Dark (#161616), White (#ffffff)
   Font: Montserrat
   ========================================================================== */

:root {
  --primary: #800020;
  --primary-hover: #5d0017;
  --primary-light: rgba(128, 0, 32, 0.08);
  --primary-gradient: linear-gradient(135deg, #800020 0%, #4a0013 100%);
  --accent-blush: #f2c7d3;
  --accent-blush-light: #fbf0f3;
  --dark: #161616;
  --dark-surface: #222222;
  --text-dark: #161616;
  --text-muted: #555555;
  --text-light: #666666;
  --bg-light: #faf7f8;
  --bg-card: #ffffff;
  --white: #ffffff;
  --border-color: #eee4e7;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(128, 0, 32, 0.08);
  --shadow-lg: 0 20px 40px rgba(22, 22, 22, 0.12);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-family: 'Montserrat', sans-serif;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* ==========================================================================
   TYPOGRAPHY & BADGES
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-blush-light);
  color: var(--primary);
  border: 1px solid var(--accent-blush);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--dark);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

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

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

.btn-blush {
  background-color: var(--accent-blush);
  color: var(--dark);
  font-weight: 700;
}

.btn-blush:hover {
  background-color: #eab1c1;
  transform: translateY(-2px);
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

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

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: var(--transition);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }
}

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

.hero {
  padding-top: 160px;
  padding-bottom: 90px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(242, 199, 211, 0.35) 0%, rgba(250, 247, 248, 0) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card-preview {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.hero-badge-float {
  position: absolute;
  top: -18px;
  right: 30px;
  background: var(--dark);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.preview-box {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.preview-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.preview-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
}

/* ==========================================================================
   TRUST / STATS SECTION
   ========================================================================== */

.stats-section {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

.stat-card {
  padding: 20px;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-blush);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.95rem;
  color: #cccccc;
  font-weight: 600;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-card:not(:last-child)::after {
    display: none;
  }
}

/* ==========================================================================
   SERVICES GRID & TAB VIEW
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blush);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  background: var(--accent-blush-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.service-link:hover {
  gap: 12px;
  color: var(--primary-hover);
}

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

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SERVICE DETAIL MODAL & INTERACTIVE TABS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 22, 22, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 40px;
  transform: scale(0.92);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: var(--white);
}

.modal-badge {
  display: inline-block;
  background: var(--accent-blush-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.service-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.highlight-item {
  background: var(--bg-light);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  border-left: 3px solid var(--primary);
}

.included-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.included-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
}

.included-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.included-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.risk-box {
  background: #fff5f7;
  border: 1px solid var(--accent-blush);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-top: 24px;
}

.risk-box h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ==========================================================================
   ABOUT US & CORE VALUES
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.value-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WHY CHOOSE US & VALUE PROPOSITION
   ========================================================================== */

.why-section {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.diff-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.diff-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 40px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px;
  max-height: 300px;
}

/* ==========================================================================
   CTA BANNER & CONTACT FORM
   ========================================================================== */

.cta-banner {
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 32px;
  color: var(--accent-blush);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

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

.footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid #2a2a2a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blush);
  margin-bottom: 20px;
}

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

.footer-links a {
  color: #aaaaaa;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: #777777;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WORDPRESS & ELEMENTOR COMPATIBILITY STYLES
   ========================================================================== */

/* WP Admin Bar Offset */
body.admin-bar .header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

/* Elementor Canvas & Container Resets */
.elementor-page .elementor-section-wrap {
  width: 100%;
}

.elementor-widget-ashvix-hero,
.elementor-widget-ashvix-stats,
.elementor-widget-ashvix-services-grid,
.elementor-widget-ashvix-section-header,
.elementor-widget-ashvix-differentiators,
.elementor-widget-ashvix-faq,
.elementor-widget-ashvix-values,
.elementor-widget-ashvix-cta-banner,
.elementor-widget-ashvix-contact,
.elementor-widget-ashvix-mission-vision,
.elementor-widget-ashvix-service-detail {
  width: 100%;
}

/* WordPress Alignment Classes */
.alignwide {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* WordPress Post Navigation & Pagination */
.pagination, .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.page-numbers {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-weight: 600;
}
.page-numbers.current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

