/*
Theme Name: allXolution Technologies
Theme URI: https://allxolution.com
Author: allXolution Technologies
Author URI: https://allxolution.com
Description: A modern, professional single-page theme for allXolution Technologies — CCTV, networking, and IT solutions provider.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allxolution
Tags: one-page, custom-menu, responsive-layout, business, technology
*/

/* ===== CSS Variables ===== */
:root {
  --background: #f5f7fa;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #0a2351;
  --primary-foreground: #f1f5f9;
  --secondary: #f0f4f8;
  --secondary-foreground: #0f172a;
  --muted: #f0f4f8;
  --muted-foreground: #64748b;
  --accent: #0ea5e9;
  --accent-foreground: #ffffff;
  --border: #e2e8f0;
  --radius: 0.75rem;
  --gradient-hero: linear-gradient(135deg, #061533 0%, #0a2351 50%, #0d2d66 100%);
  --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  --shadow-soft: 0 4px 20px -2px rgba(10, 35, 81, 0.08);
  --shadow-card: 0 10px 40px -10px rgba(10, 35, 81, 0.12);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Utility Classes ===== */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-accent {
  background: var(--gradient-accent);
}

.grid-pattern {
  background-image:
    linear-gradient(to right, rgba(14,165,233,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,165,233,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.glass-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.2);
}

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-glow { box-shadow: var(--shadow-glow); }

.hover-lift {
  transition: all 0.3s ease-out;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--accent-foreground);
}
.btn-accent:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-foreground);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

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

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

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}
.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}
.top-bar a:hover {
  color: var(--accent);
}
.top-bar .top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar .top-bar-left {
  display: flex;
  gap: 1.5rem;
}
.top-bar .top-bar-right {
  color: rgba(241,245,249,0.7);
}

/* ===== Header / Navbar ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-header .logo img {
  height: 48px;
  width: auto;
}
.site-header nav ul {
  display: flex;
  gap: 2rem;
}
.site-header nav a {
  color: rgba(15,23,42,0.8);
  font-weight: 500;
  transition: color 0.2s;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--accent);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
  padding: 0.5rem;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-section .grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
.hero-section .float-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: float 6s ease-in-out infinite;
}
.hero-section .float-blob-1 {
  top: 80px; right: 40px;
  width: 256px; height: 256px;
  background: rgba(14,165,233,0.1);
}
.hero-section .float-blob-2 {
  bottom: 80px; left: 40px;
  width: 384px; height: 384px;
  background: rgba(14,165,233,0.05);
  animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-inner {
  position: relative;
  z-index: 10;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.15rem;
  color: rgba(241,245,249,0.7);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(241,245,249,0.8);
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-features .feature-item svg {
  color: var(--accent);
}

/* Hero Card */
.hero-card {
  position: relative;
}
.hero-card .main-card {
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.hero-card .card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-card .card-item {
  background: rgba(10,35,81,0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.hero-card .card-item svg {
  width: 48px; height: 48px;
  color: var(--accent);
  margin: 0 auto 0.75rem;
}
.hero-card .card-item p {
  color: var(--primary-foreground);
  font-weight: 600;
}
.hero-card .stats-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-card .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,35,81,0.1);
  border-radius: 0.5rem;
  padding: 1rem;
}
.hero-card .stat-row span:first-child {
  color: rgba(241,245,249,0.8);
}
.hero-card .stat-row span:last-child {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}
.hero-card .floating-badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.hero-wave svg {
  display: block;
  width: 100%;
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--muted-foreground);
}

/* ===== Services ===== */
.services-section {
  background: var(--background);
  position: relative;
  overflow: hidden;
}
.services-section .bg-blob {
  position: absolute;
  top: 0; right: 0;
  width: 384px; height: 384px;
  background: rgba(14,165,233,0.05);
  border-radius: 50%;
  filter: blur(48px);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.service-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(226,232,240,0.5);
}
.service-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s;
}
.service-card:hover .icon-wrap {
  box-shadow: var(--shadow-glow);
}
.service-card .icon-wrap svg {
  width: 28px; height: 28px;
  color: var(--accent-foreground);
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.service-card .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(15,23,42,0.8);
  padding: 0.25rem 0;
}
.service-card .feature-list .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Why Choose Us ===== */
.why-section {
  background: rgba(240,244,248,0.3);
  position: relative;
  overflow: hidden;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.why-stats .stat {
  text-align: center;
}
.why-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}
.why-stats .stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.feature-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(226,232,240,0.5);
}
.feature-card .icon-box {
  width: 48px; height: 48px;
  background: rgba(14,165,233,0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card .icon-box svg {
  width: 24px; height: 24px;
  color: var(--accent);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Brands ===== */
.brands-section {
  background: var(--background);
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.brand-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid rgba(226,232,240,0.5);
  text-align: center;
  cursor: pointer;
}
.brand-card .brand-logo-wrap {
  width: 96px; height: 80px;
  margin: 0 auto 1rem;
  background: var(--secondary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  transition: background 0.3s;
}
.brand-card:hover .brand-logo-wrap {
  background: rgba(14,165,233,0.1);
}
.brand-card .brand-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-card .brand-text-logo {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: rgba(15,23,42,0.7);
  transition: color 0.3s;
}
.brand-card:hover .brand-text-logo {
  color: var(--accent);
}
.brand-card h3 {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.brand-card .brand-cat {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===== Contact ===== */
.contact-section {
  background: rgba(240,244,248,0.3);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item .icon-circle {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon-circle svg {
  width: 20px; height: 20px;
  color: var(--accent-foreground);
}
.contact-info-item h4 {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.contact-info-item p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.contact-form-wrap {
  background: var(--card);
  border-radius: 1rem;
  padding: 2.5rem;
  border: 1px solid rgba(226,232,240,0.5);
}
.contact-form-wrap h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.form-group textarea {
  resize: none;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: var(--primary-foreground);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding: 4rem 0;
}
.footer-about p {
  color: rgba(241,245,249,0.7);
  margin-bottom: 1.5rem;
}
.footer-logo {
  margin-bottom: 1.5rem;
}
.footer-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(241,245,249,0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.footer-social a:hover {
  background: var(--accent);
}
.footer-social a svg {
  width: 20px; height: 20px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 1.5rem;
}
.footer-col ul li {
  margin-bottom: 0.75rem;
}
.footer-col ul li a {
  color: rgba(241,245,249,0.7);
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-contact-item svg {
  width: 20px; height: 20px;
  color: var(--accent);
  margin-top: 0.125rem;
  flex-shrink: 0;
}
.footer-contact-item p {
  color: rgba(241,245,249,0.7);
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(241,245,249,0.1);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  color: rgba(241,245,249,0.6);
  font-size: 0.875rem;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: rgba(241,245,249,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-title { font-size: 2.75rem; }
  .hero-inner { min-height: 70vh; }
  .hero-content { text-align: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-features { justify-content: center; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .site-header nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .section-title { font-size: 2rem; }
  .section { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .top-bar .top-bar-right { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.85rem; }
  .hero-buttons { flex-direction: column; }
  .why-stats { grid-template-columns: 1fr; gap: 1rem; }
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}
.mobile-menu.active {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: rgba(15,23,42,0.8);
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--accent);
}

/* ===== WordPress Specific ===== */
.wp-caption {
  max-width: 100%;
}
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin: 0 auto; }

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
