/*
Theme Name: MRIT Support Pro
Theme URI: https://mritsupport.co.uk
Description: Modern, professional IT support services theme with responsive design and conversion optimization
Version: 1.0.0
Author: MRIT Support
Author URI: https://mritsupport.co.uk
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mrit-support-pro
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================================================
   Global Styles
   ============================================================================ */

:root {
  --primary-color: #0066cc;
  --secondary-color: #00a8e8;
  --accent-color: #ff6b35;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --spacing-unit: 1rem;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

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

a:hover {
  color: var(--secondary-color);
}

p {
  margin-bottom: 1em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  text-decoration: none;
}

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

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

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

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: #e65b2a;
}

/* ============================================================================
   Header & Navigation
   ============================================================================ */

.site-header {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.default-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.default-featured img,
.entry-thumbnail img,
.service-image img,
.post-header img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

/* Main Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  color: #333;
  position: relative;
}

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

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

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

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  color: white;
  padding: 6rem 2rem 10rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
}

.hero .hero-illustration {
  display: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: 3rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero .btn {
  margin: 0 0.5rem;
  margin-bottom: 1rem;
}

/* ============================================================================
   Services Section
   ============================================================================ */

.services {
  padding: 4rem 2rem;
  background-color: var(--light-color);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #666;
  font-size: 1.1rem;
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

/* ============================================================================
   Features Section
   ============================================================================ */

.features {
  padding: 4rem 2rem;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.feature-item {
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  background-color: var(--light-color);
  border-radius: var(--border-radius);
}

.feature-item h3 {
  margin-bottom: 0.5rem;
}

/* ============================================================================
   Call to Action Section
   ============================================================================ */

.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ============================================================================
   Footer
   ============================================================================ */

.site-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-section h3 {
  color: white;
}

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

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

.footer-section a {
  color: #aaa;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1rem;
  text-align: center;
  color: #aaa;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    display: none;
  }

  .main-nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .header-container {
    padding: 1rem;
  }

  .main-nav ul {
    gap: 0.25rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

.rustdesk-cabinet {
  background-color: #ffffff;
  border: 1px solid #dbe9ff;
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rustdesk-cabinet h2 {
  margin-bottom: 0.75rem;
}

.rustdesk-cabinet p {
  margin-bottom: 1rem;
  color: #33475b;
}

.rustdesk-alert {
  color: #b12d2d;
  background-color: #ffe3e3;
  border: 1px solid #f5c2c2;
  padding: 1rem;
  border-radius: var(--border-radius);
}

.rustdesk-info {
  margin: 1rem 0;
  color: #1f2937;
}

.rustdesk-info p {
  margin-bottom: 0.5rem;
}

.rustdesk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rustdesk-launch,
.rustdesk-download {
  min-width: 210px;
}

@media (max-width: 640px) {
  .rustdesk-actions {
    flex-direction: column;
  }
}
