/*
Theme Name: Rapid Teck
Theme URI: https://rapidteck.com
Author: tahirpatel
Author URI: https://github.com/tahirpatel
Description: A custom WordPress theme for Rapid Teck Network - delivering tailored commercial solutions in IoT, structured cabling, CCTV, and VoIP
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rapidteck
Tags: custom-theme, corporate, animations, responsive
*/

/* ===================================
   CSS Variables - Color Palette
   =================================== */
:root {
  --primary-color: #484169;
  --primary-dark: #342e4d;
  --primary-light: #5e5582;
  --accent-color: #7c73a0;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1625;
  --text-primary: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 6px rgba(72, 65, 105, 0.1);
  --box-shadow-hover: 0 8px 15px rgba(72, 65, 105, 0.2);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

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

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

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

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

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* ===================================
   Header Styles
   =================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  background-color: rgba(72, 65, 105, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(72, 65, 105, 0.2);
}

.site-header.scrolled .site-title a,
.site-header.scrolled .main-navigation a {
  color: var(--text-light);
}

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

/* Main content padding to account for fixed header */
.site-main {
  padding-top: 90px;
  transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.site-title {
  font-size: 1.5rem;
  margin: 0;
}

.site-title a {
  color: var(--primary-color);
  font-weight: 700;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.main-navigation a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

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

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

/* ===================================
   Footer Styles
   =================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

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

.footer-column h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-column p,
.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: var(--accent-color);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-menu a {
  display: inline-block;
  transition: all 0.3s ease;
  padding-left: 1rem;
  position: relative;
}

.footer-menu a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-menu a:hover::before {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom a{
    color: #7666bf;
}
.footer-bottom a:hover{
    color: #60539d;
}
/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--primary-color);
  transition: all var(--transition-speed) ease;
}

.btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

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

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

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

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .site-main {
    padding-top: 80px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--box-shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease;
  }

  .main-navigation.active {
    max-height: 500px;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  .main-navigation li {
    border-bottom: 1px solid rgba(72, 65, 105, 0.1);
  }

  .main-navigation a {
    display: block;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.75rem;
  }
}

/* ===================================
   Form Styles
   =================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e1e4e8;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-speed) ease;
  background-color: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(72, 65, 105, 0.1);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

button[type="submit"],
input[type="submit"] {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.form-message {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===================================
   Logo Styles
   =================================== */
.site-logo {
  max-height: 50px;
  width: auto;
  transition: all var(--transition-speed) ease;
}

.site-header.scrolled .site-logo {
  max-height: 40px;
}

/* ===================================
   Preloader Styles
   =================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #484169 0%, #342e4d 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  max-width: 200px;
  animation: logoFadeIn 1s ease-in-out;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===================================
   Card Styles
   =================================== */
.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: all var(--transition-speed) ease;
}

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

/* ===================================
   Grid System
   =================================== */
.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Badge & Tag Styles
   =================================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 12px;
}

.badge-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

/* ===================================
   Loading States
   =================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 2rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-card {
  height: 300px;
}

/* ===================================
   Accessibility
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ===================================
   Social Media Icons
   =================================== */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-speed) ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(72, 65, 105, 0.3);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* ===================================
   About Page Specific Styles
   =================================== */

/* About Grid - Company Overview */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(72, 65, 105, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
}

/* Mission & Vision */
.mission-vision {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.mv-card {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(72, 65, 105, 0.08);
  transition: transform 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-5px);
}

.mv-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.mv-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.mv-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Why Choose Us - Features Grid */
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

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

.feature-item {
  text-align: center;
  padding: 1rem;
}

.feature-item .feature-content{
    text-align: left;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.feature-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* About Page Responsive */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .site-header,
  .site-footer,
  .cta-section,
  .btn,
  .menu-toggle {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}
